#include <universals_AMOS.hh>
Public Member Functions | |
UniversalSet_t () | |
Constructs a UniversalSet_t w/ default objects. | |
~UniversalSet_t () | |
Destroys a UniveralSet_t and its contained objects. | |
iterator | begin () |
Returns an iterator to the beginning of the set. | |
const_iterator | begin () const |
void | clearAll () |
Issues a clear command to each object in the set. | |
iterator | end () |
Returns an iterator to the end of the set. | |
const_iterator | end () const |
bool | exists (NCode_t ncode) |
Checks if an object with a given NCode exists in the set. | |
Size_t | getSize () |
Returns the number of known universal objects. | |
Universal_t & | operator[] (NCode_t ncode) |
Returns a reference to the object with the given NCode. | |
const Universal_t & | operator[] (NCode_t ncode) const |
Universal_t & | operator[] (const std::string &ncode) |
const Universal_t & | operator[] (const std::string &ncode) const |
Provides a non-redundant, complete collection of static Universal objects accessible by their NCode and iteration. Useful when all possible AMOS universal objects are required, but the exact makeup of objects is unknown. Objects stored in this set are static, and only destruced when the class is destructed. Objects are stored in order that will preserve the def-before-ref rule - meaning two objects A,B where B has a link to A will always appear in the order A,B when iterating through the set.
Definition at line 53 of file universals_AMOS.hh.
|
Constructs a UniversalSet_t w/ default objects. Definition at line 21 of file universals_AMOS.cc. |
|
Destroys a UniveralSet_t and its contained objects. Definition at line 55 of file universals_AMOS.cc. |
|
Definition at line 137 of file universals_AMOS.hh. References begin(). |
|
Returns an iterator to the beginning of the set. Iterator on all the objects in the set. Operates just like a std::vector iterator, however it does not support iterator addition/subtraction or reverse iteration. Objects will always be ordered definition-before-reference, meaning if B refers to A, A will always appear before B when iterating forward.
Referenced by begin(), clearAll(), UniversalSet_t(), and ~UniversalSet_t(). |
|
Issues a clear command to each object in the set.
|
|
Definition at line 154 of file universals_AMOS.hh. References end(). |
|
Returns an iterator to the end of the set.
Referenced by clearAll(), end(), exists(), operator[](), UniversalSet_t(), and ~UniversalSet_t(). |
|
Checks if an object with a given NCode exists in the set.
References end(), and AMOS::NCode_t. |
|
Returns the number of known universal objects.
References AMOS::Size_t. |
|
Definition at line 220 of file universals_AMOS.hh. References AMOS::Encode(), and operator[](). |
|
Definition at line 213 of file universals_AMOS.hh. References AMOS::Encode(), and operator[](). |
|
Definition at line 202 of file universals_AMOS.hh. References AMOS_THROW_ARGUMENT, AMOS::Decode(), end(), and AMOS::NCode_t. |
|
Returns a reference to the object with the given NCode. To call object-specific methods, it will be necessary to cast the return reference to the type of object you are expecting to be returned. e.g. `((Read_t &)set["RED"]).setType(Read_t::END)'. However, for virtual methods inherited from Universal_t, this casting is unnecessary.
References AMOS_THROW_ARGUMENT, AMOS::Decode(), end(), and AMOS::NCode_t. Referenced by operator[](). |