LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
vector-type utility class to build a collection of FlagDefinitions More...
#include <FlagHandler.h>
Public Member Functions | |
FlagDefinitionList () | |
initialize a FlagDefinition list with no entries. More... | |
FlagDefinitionList (std::initializer_list< FlagDefinition > const &list) | |
initialize a FlagDefinition list from initializer_list. More... | |
FlagDefinition | getDefinition (std::size_t index) const |
get a reference to the FlagDefinition with specified index. More... | |
FlagDefinition | getDefinition (std::string const &name) const |
get a reference to the FlagDefinition with specified name. More... | |
FlagDefinition | operator[] (std::size_t index) const |
get a reference to the FlagDefinition with specified array index More... | |
bool | hasDefinition (std::string const &name) const |
See if there is a FlagDefinition with specified name. More... | |
FlagDefinition | addFailureFlag (std::string const &doc="General Failure Flag") |
Add a Flag Defintion to act as a "General" failure flag This flag will be set if a Measurement error is thrown. More... | |
FlagDefinition | add (std::string const &name, std::string const &doc) |
Add a new FlagDefinition to this list. More... | |
std::size_t | size () const |
return the current size (number of defined elements) of the collection More... | |
Static Public Member Functions | |
static FlagDefinitionList const & | getEmptyList () |
vector-type utility class to build a collection of FlagDefinitions
Definition at line 60 of file FlagHandler.h.
|
inline |
initialize a FlagDefinition list with no entries.
Definition at line 65 of file FlagHandler.h.
|
inline |
|
inline |
Add a new FlagDefinition to this list.
Return a copy with the FlagDefinition.number set corresponding to its index in the list.
Definition at line 116 of file FlagHandler.h.
FlagDefinition lsst::meas::base::FlagDefinitionList::addFailureFlag | ( | std::string const & | doc = "General Failure Flag" | ) |
Add a Flag Defintion to act as a "General" failure flag This flag will be set if a Measurement error is thrown.
Definition at line 33 of file FlagHandler.cc.
|
inline |
get a reference to the FlagDefinition with specified index.
Definition at line 83 of file FlagHandler.h.
|
inline |
get a reference to the FlagDefinition with specified name.
Definition at line 87 of file FlagHandler.h.
|
inlinestatic |
Definition at line 76 of file FlagHandler.h.
|
inline |
|
inline |
get a reference to the FlagDefinition with specified array index
Definition at line 96 of file FlagHandler.h.
|
inline |
return the current size (number of defined elements) of the collection
Definition at line 125 of file FlagHandler.h.