RatingFn is an abstract base class. This means that we have to store pointers to the rating function in the list and not the objects themselves. The structure is a wrapper to an STL container that takes care on correct object desstruction.
Definition at line 534 of file ratingfn.h.
typedef List::const_iterator OSB_LIB::RatingFns::ConstIterator |
typedef List::iterator OSB_LIB::RatingFns::Iterator |
typedef std::list<RatingFn*> OSB_LIB::RatingFns::List |
typedef List::size_type OSB_LIB::RatingFns::SizeType |
OSB_LIB::RatingFns::RatingFns | ( | ) | [inline] |
OSB_LIB::RatingFns::RatingFns | ( | const RatingFns & | rhs | ) |
Copy constructor.
Creates (allocates) a copy of every rating function in the STL container.
OSB_LIB::RatingFns::~RatingFns | ( | ) |
Delete all stored objects.
ConstIterator OSB_LIB::RatingFns::begin | ( | ) | const |
Const iterator to the begining of the list.
Iterator OSB_LIB::RatingFns::begin | ( | ) |
Iterator to the begining of the list.
void OSB_LIB::RatingFns::clear | ( | ) |
Clear the list.
Destruct each item in the list and afterwards, call the std::list::clear() of the STL container.
ConstIterator OSB_LIB::RatingFns::end | ( | ) | const |
Const iterator to the end of the list.
Iterator OSB_LIB::RatingFns::end | ( | ) |
Iterator to the end of the list.
void OSB_LIB::RatingFns::erase | ( | const RatingFn & | rf | ) |
Erase a rating function from the list.
Remove a rating function from the list and call its destructor.
rf | Rating function to be removed. |
const RatingFn* OSB_LIB::RatingFns::findRatingFn | ( | const RatingFn::Oid & | id | ) | const |
Find a rating function based on id.
id | Unique id of a rating function. |
List& OSB_LIB::RatingFns::getList | ( | ) | [inline] |
const RatingFn& OSB_LIB::RatingFns::getRatingFn | ( | const RatingFn::Oid & | id | ) | const |
Find a rating function based on id.
id | Unique id of a rating function. |
ObjectNotFound | if rating function not found. |
const List& OSB_LIB::RatingFns::list | ( | ) | const [inline] |
Exception save assignment operator.
void OSB_LIB::RatingFns::pushBack | ( | RatingFn::AutoPtr | rf | ) |
Insert a new rating function.
Adds a rating function at the end of the list. The function uses RatingFn::clone() to create a copy of the rating function.
rf | Auto pointer of rating function to be added. |
void OSB_LIB::RatingFns::pushBack | ( | const RatingFn & | rf | ) |
Insert a new rating function.
Adds a rating function at the end of the list. The function uses RatingFn::clone() to create a copy of the rating function.
rf | Rating function to be added. |
RatingFn* OSB_LIB::RatingFns::ratingFn | ( | const RatingFn::Oid & | id | ) | const |
Find a rating function based on id.
id | Unique id of a rating function. |
long OSB_LIB::RatingFns::read | ( | const OSB_DB::Session & | session | ) |
Read all rating functions from the database.
session | Database session to use, transactions are not commited. |
SizeType OSB_LIB::RatingFns::size | ( | ) | const |
The size of the list.
void OSB_LIB::RatingFns::swap | ( | RatingFns & | rhs | ) |
Swap the content of two lists.
friend struct OSB_DB::RatingFnGw [friend] |
The database gateway needs to populate data members after construction.
Definition at line 539 of file ratingfn.h.
List OSB_LIB::RatingFns::items_ [private] |