Definition at line 379 of file billcycle.h.
typedef List::const_iterator OSB_LIB::BillcycleList::ConstIterator |
typedef List::iterator OSB_LIB::BillcycleList::Iterator |
typedef std::vector<Billcycle*> OSB_LIB::BillcycleList::List |
typedef List::size_type OSB_LIB::BillcycleList::SizeType |
OSB_LIB::BillcycleList::BillcycleList | ( | ) | [inline] |
OSB_LIB::BillcycleList::BillcycleList | ( | const BillcycleList & | rhs | ) |
Copy constructor.
Creates (allocates) a copy for each billcycle in the STL container.
OSB_LIB::BillcycleList::~BillcycleList | ( | ) |
Delete all stored objects.
ConstIterator OSB_LIB::BillcycleList::begin | ( | ) | const [inline] |
Const iterator to the beginning of the list.
Definition at line 423 of file billcycle.h.
References list_.
Iterator OSB_LIB::BillcycleList::begin | ( | ) | [inline] |
Iterator to the beginning of the list.
Definition at line 419 of file billcycle.h.
References list_.
void OSB_LIB::BillcycleList::clear | ( | ) |
Clear the list.
Destructs each item in the list and afterwards calls clear() of the STL container.
ConstIterator OSB_LIB::BillcycleList::end | ( | ) | const [inline] |
Const iterator to the end of the list.
Definition at line 425 of file billcycle.h.
References list_.
Iterator OSB_LIB::BillcycleList::end | ( | ) | [inline] |
Erase a billcycle from the list.
Removes a billcycle from the list and calls its destructor.
pos | iterator to the billcycle to remove. |
Billcycle* OSB_LIB::BillcycleList::findBillcycle | ( | const Billcycle::Oid & | oid | ) | const |
Find the billcycle based on the given oid.
oid | Oid of the billcycle. |
Billcycle& OSB_LIB::BillcycleList::getBillcycle | ( | const Billcycle::Oid & | oid | ) | const |
Find the billcycle based on the given oid.
oid | Oid of the billcycle. |
OsbException | if billcycle can not be found. |
const List& OSB_LIB::BillcycleList::list | ( | ) | const [inline] |
BillcycleList& OSB_LIB::BillcycleList::operator= | ( | const BillcycleList & | rhs | ) |
Exception save assignment operator.
void OSB_LIB::BillcycleList::push_back | ( | Billcycle::AutoPtr | ap | ) |
Insert a new billcycle.
Adds a new billcycle at the end of the internal list. The function takes the ownership of the argument pointer, it is typically called like this:
BillcycleList list; Billcycle::AutoPtr a = createBillcycle(...); // work with a list.push_back(a);
ap | Auto pointer owning billcycle to add. |
void OSB_LIB::BillcycleList::push_back | ( | const Billcycle & | bc | ) |
Insert a new billcycle.
Adds a billcycle at the end of the list. The function uses bc.clone() to create a copy of the billcycle.
bc | billcycle to add. |
long OSB_LIB::BillcycleList::read | ( | const OSB_DB::Session & | session | ) |
Read all billcycles from the database.
session | Database session to use, transactions are not commited. |
SizeType OSB_LIB::BillcycleList::size | ( | ) | const [inline] |
void OSB_LIB::BillcycleList::swap | ( | BillcycleList & | rhs | ) |
Swap the content of two lists.
List OSB_LIB::BillcycleList::list_ [private] |