#include <universals_AMOS.hh>
Public Member Functions | |
| BankStreamSet_t () | |
| Constructs a BankStreamSet_t w/ default banks. | |
| ~BankStreamSet_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. | |
| BankStream_t & | operator[] (NCode_t ncode) |
| Returns a reference to the bank with the given NCode. | |
| const BankStream_t & | operator[] (NCode_t ncode) const |
| BankStream_t & | operator[] (const std::string &ncode) |
| const BankStream_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 432 of file universals_AMOS.hh.
| BankStreamSet_t::BankStreamSet_t | ( | ) |
| BankStreamSet_t::~BankStreamSet_t | ( | ) |
Destroys a UniveralSet_t and closes its contained banks.
Definition at line 142 of file universals_AMOS.cc.
| const_iterator AMOS::BankStreamSet_t::begin | ( | ) | const [inline] |
| iterator AMOS::BankStreamSet_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 515 of file universals_AMOS.hh.
Referenced by BankStreamSet_t(), begin(), clearAll(), closeAll(), and ~BankStreamSet_t().
| void BankStreamSet_t::clearAll | ( | ) |
Issues a clear command to each bank in the set.
Definition at line 153 of file universals_AMOS.cc.
| void BankStreamSet_t::closeAll | ( | ) |
Issues a close command to each bank in the set.
Definition at line 161 of file universals_AMOS.cc.
| const_iterator AMOS::BankStreamSet_t::end | ( | ) | const [inline] |
| iterator AMOS::BankStreamSet_t::end | ( | ) | [inline] |
Returns an iterator to the end of the set.
Definition at line 540 of file universals_AMOS.hh.
Referenced by BankStreamSet_t(), clearAll(), closeAll(), end(), exists(), operator[](), and ~BankStreamSet_t().
| bool AMOS::BankStreamSet_t::exists | ( | NCode_t | ncode | ) | [inline] |
Checks if a bank with a given NCode exists in the set.
Definition at line 549 of file universals_AMOS.hh.
References end().
| Size_t AMOS::BankStreamSet_t::getSize | ( | ) | [inline] |
Returns the number of known AMOS banks.
Definition at line 560 of file universals_AMOS.hh.
| const BankStream_t& AMOS::BankStreamSet_t::operator[] | ( | const std::string & | ncode | ) | const [inline] |
| BankStream_t& AMOS::BankStreamSet_t::operator[] | ( | const std::string & | ncode | ) | [inline] |
| const BankStream_t& AMOS::BankStreamSet_t::operator[] | ( | NCode_t | ncode | ) | const [inline] |
Definition at line 584 of file universals_AMOS.hh.
References AMOS_THROW_ARGUMENT, AMOS::Decode(), and end().
| BankStream_t& AMOS::BankStreamSet_t::operator[] | ( | NCode_t | ncode | ) | [inline] |
Returns a reference to the bank with the given NCode.
| ArgumentException_t |
Definition at line 573 of file universals_AMOS.hh.
References AMOS_THROW_ARGUMENT, AMOS::Decode(), and end().
Referenced by operator[]().
1.4.7