#include <RefList.h>
Collaboration diagram for RefList< T >:
Public Types | |
typedef T | value_type |
typedef RefList_iterator< T > | iterator |
typedef const RefList_iterator< T > | const_iterator |
Public Member Functions | |
RefList () | |
bool | empty () const |
iterator | begin () |
iterator | end () |
void | push_front (const Ref< T > &value) |
void | pop_front () |
void | clear () |
iterator | insert_after (iterator it, const Ref< T > &value) |
iterator | erase_after (iterator it) |
RefList (const RefList< T > &) | |
RefList< T > & | operator= (const RefList< T > &X) |
OidType | iopcExport (IopcPersistentObject *_owner) |
void | iopcImport (const OidType _head, IopcPersistentObject *_owner) |
Protected Attributes | |
OidType | head |
Connection * | connection |
IopcPersistentObject * | owner |
Interface of this class is very similar to slist
, single linked list implemented in STL extension STLPort (http://www.sgi.com/tech/stl/Slist.html).
All methods of this class and all methods of iterator RefList_iterator throws exception RefList_exception in case of error.
|
Value type - as in STL.
|
|
Iterator typedef - as in STL.
|
|
Constant iterator typedef - as in STL.
|
|
Creates empty RefList<T>.
|
|
Copy constructor - throws RefList_exception. Suppresses generation of default copy constructor.
|
|
Tests whether the list is empty.
|
|
Returns iterator pointing to the beginning of the list.
|
|
Returns iterator pointing after the last element in the list.
|
|
Adds
|
|
Removes first entry from the list.
|
|
Clears the list.
|
|
Inserts
|
|
Removes element after the position specified by
|
|
Operator = - throws RefList_exception. Suppresses generation of default operator =.
|
|
Method called by IOPC LIB runtime if persistent object containing RefList<T> should be saved into the database. Method returns the head of the list to be stored in the persistent object's table.
|
|
Method called by IOPC LIB runtime if persistent object containing RefList<T> attribute is loaded from the database. Method initializes the list according to given values.
|
|
Head of the list. In user's persistent class's table is RefList<T> mapped to column containing lists' heads. |
|
Connection used to retrieve list entries from the database.
|
|
Persistent object that owns this list. Needed to mark object as dirty if the list was changed.
|