The class TcsVersion is an abstract base class. Thus we have to use pointers to tariff classification system version in the list and not the objects themselves. The structure is a wrapper to an STL container that takes care on correct object destruction.
Definition at line 781 of file tariffclass.h.
typedef List::const_iterator OSB_LIB::TcsVersions::ConstIterator |
typedef List::iterator OSB_LIB::TcsVersions::Iterator |
typedef std::list<TcsVersion*> OSB_LIB::TcsVersions::List |
Define a list of tariff classification system version pointer as List.
Definition at line 787 of file tariffclass.h.
typedef List::size_type OSB_LIB::TcsVersions::SizeType |
OSB_LIB::TcsVersions::TcsVersions | ( | ) |
Empty constructor.
OSB_LIB::TcsVersions::TcsVersions | ( | const TcsVersions & | rhs | ) |
Copy constructor.
Creates (allocates) a copy of every tariff classification system version in the STL container.
OSB_LIB::TcsVersions::~TcsVersions | ( | ) |
Delete all stored objects.
ConstIterator OSB_LIB::TcsVersions::begin | ( | ) | const |
Constant iterator to the begining of the list.
Iterator OSB_LIB::TcsVersions::begin | ( | ) |
Iterator to the begining of the list.
void OSB_LIB::TcsVersions::clear | ( | ) |
Clear the list.
Destruct each item in the list and afterwards, call the std::list::clear() of the STL constainer.
ConstIterator OSB_LIB::TcsVersions::end | ( | ) | const |
Constant iterator to the end of the list.
Iterator OSB_LIB::TcsVersions::end | ( | ) |
Iterator to the end of the list.
void OSB_LIB::TcsVersions::erase | ( | const TcsVersion::Oid & | tcsVs | ) |
Erase a tariff classification system version from the list.
Remove a tariff classification system version from the list and call its destructor.
tcsVs | Iterator to the tariff classification system version in the list. |
TcsVersions& OSB_LIB::TcsVersions::operator= | ( | const TcsVersions & | rhs | ) |
Exception save assignment operator.
void OSB_LIB::TcsVersions::pushBack | ( | TcsVersion::AutoPtr | tcsVs | ) |
Insert a new tariff classification system version.
Add a tariff classification system version at the end of the list. The function take over the ownership of the tariff classification system version object from the auto pointer passed in parameter argument.
tcsVs | Auto pointer of tariff classification system version to be added. |
void OSB_LIB::TcsVersions::pushBack | ( | const TcsVersion & | tcsVs | ) |
Insert a new tariff classification system version.
Add a tariff classification system version object at the end of the list. The function uses TcsVersion::clone() to create a copy of the tariff classification system version.
tcsVs | Tariff classification system version to be added. |
SizeType OSB_LIB::TcsVersions::size | ( | ) | const |
The size of the list.
void OSB_LIB::TcsVersions::swap | ( | TcsVersions & | rhs | ) |
Swap the content of two lists.
STL container for tariff classification system versions.
Definition at line 875 of file tariffclass.h.