NumberAnalyzer is an abstract base class. STL container cannot store them directly. This structure is a wrapper to an STL container that stores the pointers to those abstract base classes and take care on the correct object destruction.
Definition at line 322 of file numberanalyzer.h.
typedef List::const_iterator OSB_LIB::NumberAnalyzerList::ConstIterator |
typedef List::iterator OSB_LIB::NumberAnalyzerList::Iterator |
typedef std::list<NumberAnalyzer*> OSB_LIB::NumberAnalyzerList::List |
typedef List::size_type OSB_LIB::NumberAnalyzerList::SizeType |
OSB_LIB::NumberAnalyzerList::NumberAnalyzerList | ( | ) | [inline] |
OSB_LIB::NumberAnalyzerList::NumberAnalyzerList | ( | const NumberAnalyzerList & | rhs | ) |
Copy constructor.
Creates (allocates) a copy of every number analyzer in the STL container.
OSB_LIB::NumberAnalyzerList::~NumberAnalyzerList | ( | ) |
Delete all stored objects.
ConstIterator OSB_LIB::NumberAnalyzerList::begin | ( | ) | const |
Const iterator to the begining of the list.
Iterator OSB_LIB::NumberAnalyzerList::begin | ( | ) |
Iterator to the begining of the list.
void OSB_LIB::NumberAnalyzerList::clear | ( | ) |
Clear the list.
Destructs each item in the list and afterwards calls clear() of the STL container.
ConstIterator OSB_LIB::NumberAnalyzerList::end | ( | ) | const |
Const iterator to the end of the list.
Iterator OSB_LIB::NumberAnalyzerList::end | ( | ) |
Iterator to the end of the list.
Erase a number analyzer object from the list.
Removes a number analyzer object from the internal list and calls its destructor.
pos | Iterator to the number analyzer to be removed. |
NumberAnalyzerList& OSB_LIB::NumberAnalyzerList::operator= | ( | const NumberAnalyzerList & | rhs | ) |
Exception save assignment operator.
void OSB_LIB::NumberAnalyzerList::push_back | ( | NumberAnalyzer::AutoPtr | naPtr | ) |
Add a new number analyzer object to the back of the internal list.
The function get the ownership of the number analyzer auto pointer passed in, and add it to the end of the internal list.
naPtr | Auto pointer of the number analyzer object to be added. |
void OSB_LIB::NumberAnalyzerList::push_back | ( | const NumberAnalyzer & | numAnalyzer | ) |
Add a new number analyzer object to the back of the internal list.
The function uses NumberAnalyzer::clone() to create a copy of the number analyzer object then add it to the end of the list.
numAnalyzer | Number analyzer to be added. |
SizeType OSB_LIB::NumberAnalyzerList::size | ( | ) | const |
The size of the list.
void OSB_LIB::NumberAnalyzerList::swap | ( | NumberAnalyzerList & | rhs | ) |
Swap the content of two lists.