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