Definition at line 68 of file anclist.h.
typedef std::auto_ptr<Associate> OSB_LIB::AssociateList::AssociateAutoPtr |
typedef List::const_iterator OSB_LIB::AssociateList::ConstIterator |
typedef List::iterator OSB_LIB::AssociateList::Iterator |
typedef List::key_type OSB_LIB::AssociateList::KeyType |
typedef std::map<Id<Associate>, Associate*> OSB_LIB::AssociateList::List |
typedef List::size_type OSB_LIB::AssociateList::SizeType |
OSB_LIB::AssociateList::AssociateList | ( | ) | [inline] |
OSB_LIB::AssociateList::AssociateList | ( | const AssociateList & | rhs | ) |
Copy constructor.
Creates (allocates) a copy for each associate in the STL container.
OSB_LIB::AssociateList::~AssociateList | ( | ) |
Delete all stored objects.
ConstIterator OSB_LIB::AssociateList::begin | ( | ) | const [inline] |
Iterator OSB_LIB::AssociateList::begin | ( | ) | [inline] |
void OSB_LIB::AssociateList::clear | ( | ) |
Clear the list.
Destructs each item in the list and afterwards calls clear() of the STL container.
ConstIterator OSB_LIB::AssociateList::end | ( | ) | const [inline] |
Iterator OSB_LIB::AssociateList::end | ( | ) | [inline] |
void OSB_LIB::AssociateList::erase | ( | const KeyType & | k | ) |
Erase an associate whose key is k.
Delete an associate from the list and calls its destructor.
k | Key to erase: the id of the associate. |
void OSB_LIB::AssociateList::erase | ( | Iterator | pos | ) |
Erase an associate pointed to by pos.
Delete an associate from the list and calls its destructor.
pos | iterator to the associate to delete. |
ConstIterator OSB_LIB::AssociateList::find | ( | const KeyType & | k | ) | const [inline] |
Find an associate by its object id.
asId | Oid of the associate. |
Find an associate by its object id.
asId | Oid of the associate. |
Get an associate by its object id.
asId | Oid of the associate. |
OsbException |
|
Get an associate by its object id.
asId | Oid of the associate. |
OsbException | if the associate is not found. |
Associate* OSB_LIB::AssociateList::insert | ( | AssociateAutoPtr | ap | ) |
Add a new associate or replace an existing one.
ap | Auto pointer with the associate to add. |
The function takes the ownership of the argument pointer, it is typically called like this:
AssociateList list; Associate::AutoPtr a = createAssociate(...); // work with a list.insert(a);
Add a new associate or replace an existing one.
assoc | Associate to add. |
The function uses ass.clone() to create a copy of the associate.
const List& OSB_LIB::AssociateList::list | ( | ) | const [inline] |
AssociateList& OSB_LIB::AssociateList::operator= | ( | const AssociateList & | rhs | ) |
Exception save assignment operator.
SizeType OSB_LIB::AssociateList::size | ( | ) | const [inline] |
void OSB_LIB::AssociateList::swap | ( | AssociateList & | rhs | ) |
Swap the content of two lists.
List OSB_LIB::AssociateList::list_ [private] |