#include <universals_AMOS.hh>
Public Member Functions | |
| BankSet_t () | |
| Constructs a BankSet_t w/ default banks. | |
| ~BankSet_t () | |
| Destroys a UniveralSet_t and closes its contained banks. | |
| iterator | begin () |
| Returns an iterator to the beginning of the set. | |
| const_iterator | begin () const |
| void | clearAll () |
| Issues a clear command to each bank in the set. | |
| void | closeAll () |
| Issues a close command to each bank 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 a bank with a given NCode exists in the set. | |
| Size_t | getSize () |
| Returns the number of known AMOS banks. | |
| Bank_t & | operator[] (NCode_t ncode) |
| Returns a reference to the bank with the given NCode. | |
| const Bank_t & | operator[] (NCode_t ncode) const |
| Bank_t & | operator[] (const std::string &ncode) |
| const Bank_t & | operator[] (const std::string &ncode) const |
Classes | |
| class | const_iterator |
| class | iterator |
Provides a non-redundant, complete collection of static AMOS banks accessible by their NCode and iteration. Useful when all possible AMOS banks are required, but the exact makeup of banks is unknown. Banks stored in this set are static, and only destruced when the class is destructed. Banks are stored in order that will preserve the def-before-ref rule - meaning two banks 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 241 of file universals_AMOS.hh.
| BankSet_t::BankSet_t | ( | ) |
| BankSet_t::~BankSet_t | ( | ) |
Destroys a UniveralSet_t and closes its contained banks.
Definition at line 93 of file universals_AMOS.cc.
| const_iterator AMOS::BankSet_t::begin | ( | ) | const [inline] |
| iterator AMOS::BankSet_t::begin | ( | ) | [inline] |
Returns an iterator to the beginning of the set.
Iterator on all the banks in the set. Operates just like a std::vector iterator, however it does not support iterator addition/subtraction or reverse iteration. Banks 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 324 of file universals_AMOS.hh.
Referenced by BankSet_t(), begin(), clearAll(), closeAll(), and ~BankSet_t().
| void BankSet_t::clearAll | ( | ) |
Issues a clear command to each bank in the set.
Definition at line 104 of file universals_AMOS.cc.
| void BankSet_t::closeAll | ( | ) |
Issues a close command to each bank in the set.
Definition at line 112 of file universals_AMOS.cc.
| const_iterator AMOS::BankSet_t::end | ( | ) | const [inline] |
| iterator AMOS::BankSet_t::end | ( | ) | [inline] |
Returns an iterator to the end of the set.
Definition at line 349 of file universals_AMOS.hh.
Referenced by BankSet_t(), clearAll(), closeAll(), end(), exists(), operator[](), and ~BankSet_t().
| bool AMOS::BankSet_t::exists | ( | NCode_t | ncode | ) | [inline] |
Checks if a bank with a given NCode exists in the set.
Definition at line 358 of file universals_AMOS.hh.
References end().
| Size_t AMOS::BankSet_t::getSize | ( | ) | [inline] |
Returns the number of known AMOS banks.
Definition at line 369 of file universals_AMOS.hh.
| const Bank_t& AMOS::BankSet_t::operator[] | ( | const std::string & | ncode | ) | const [inline] |
| Bank_t& AMOS::BankSet_t::operator[] | ( | const std::string & | ncode | ) | [inline] |
Definition at line 393 of file universals_AMOS.hh.
References AMOS_THROW_ARGUMENT, AMOS::Decode(), and end().
Returns a reference to the bank with the given NCode.
| ArgumentException_t |
Definition at line 382 of file universals_AMOS.hh.
References AMOS_THROW_ARGUMENT, AMOS::Decode(), and end().
Referenced by operator[]().
1.4.7