#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 |
Classes | |
| class | const_iterator |
| class | iterator |
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.
| UniversalSet_t::UniversalSet_t | ( | ) |
| UniversalSet_t::~UniversalSet_t | ( | ) |
Destroys a UniveralSet_t and its contained objects.
Definition at line 55 of file universals_AMOS.cc.
| const_iterator AMOS::UniversalSet_t::begin | ( | ) | const [inline] |
| iterator AMOS::UniversalSet_t::begin | ( | ) | [inline] |
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.
Definition at line 136 of file universals_AMOS.hh.
Referenced by begin(), clearAll(), UniversalSet_t(), and ~UniversalSet_t().
| void UniversalSet_t::clearAll | ( | ) |
Issues a clear command to each object in the set.
Definition at line 63 of file universals_AMOS.cc.
| const_iterator AMOS::UniversalSet_t::end | ( | ) | const [inline] |
| iterator AMOS::UniversalSet_t::end | ( | ) | [inline] |
Returns an iterator to the end of the set.
Definition at line 153 of file universals_AMOS.hh.
Referenced by clearAll(), end(), exists(), operator[](), UniversalSet_t(), and ~UniversalSet_t().
| bool AMOS::UniversalSet_t::exists | ( | NCode_t | ncode | ) | [inline] |
Checks if an object with a given NCode exists in the set.
Definition at line 162 of file universals_AMOS.hh.
References end().
| Size_t AMOS::UniversalSet_t::getSize | ( | ) | [inline] |
Returns the number of known universal objects.
Definition at line 173 of file universals_AMOS.hh.
| const Universal_t& AMOS::UniversalSet_t::operator[] | ( | const std::string & | ncode | ) | const [inline] |
| Universal_t& AMOS::UniversalSet_t::operator[] | ( | const std::string & | ncode | ) | [inline] |
| const Universal_t& AMOS::UniversalSet_t::operator[] | ( | NCode_t | ncode | ) | const [inline] |
Definition at line 202 of file universals_AMOS.hh.
References AMOS_THROW_ARGUMENT, AMOS::Decode(), and end().
| Universal_t& AMOS::UniversalSet_t::operator[] | ( | NCode_t | ncode | ) | [inline] |
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.
| ArgumentException_t |
Definition at line 191 of file universals_AMOS.hh.
References AMOS_THROW_ARGUMENT, AMOS::Decode(), and end().
Referenced by operator[]().
1.4.7