lsst.meas.base g62aa8f1a4b+bf10eb883e
|
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. | |
FlagDefinitionList (std::initializer_list< FlagDefinition > const &list) | |
initialize a FlagDefinition list from initializer_list. | |
FlagDefinition | getDefinition (std::size_t index) const |
get a reference to the FlagDefinition with specified index. | |
FlagDefinition | getDefinition (std::string const &name) const |
get a reference to the FlagDefinition with specified name. | |
FlagDefinition | operator[] (std::size_t index) const |
get a reference to the FlagDefinition with specified array index | |
bool | hasDefinition (std::string const &name) const |
See if there is a FlagDefinition with specified name. | |
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. | |
FlagDefinition | add (std::string const &name, std::string const &doc) |
Add a new FlagDefinition to this list. | |
std::size_t | size () const |
return the current size (number of defined elements) of the collection | |
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 |
initialize a FlagDefinition list from initializer_list.
Definition at line 70 of file FlagHandler.h.
|
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 117 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 43 of file FlagHandler.cc.
FlagDefinition lsst::meas::base::FlagDefinitionList::getDefinition | ( | std::size_t | index | ) | const |
get a reference to the FlagDefinition with specified index.
Definition at line 33 of file FlagHandler.cc.
|
inline |
get a reference to the FlagDefinition with specified name.
Definition at line 88 of file FlagHandler.h.
|
inlinestatic |
Definition at line 76 of file FlagHandler.h.
|
inline |
See if there is a FlagDefinition with specified name.
Definition at line 101 of file FlagHandler.h.
|
inline |
get a reference to the FlagDefinition with specified array index
Definition at line 97 of file FlagHandler.h.
|
inline |
return the current size (number of defined elements) of the collection
Definition at line 126 of file FlagHandler.h.