Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKValueList< T > Class Template Reference

provides a templatized double-linked list. More...

#include <value_sem_list.h>

List of all members.

Public Methods


Detailed Description

template<class T>
class VDKValueList< T >

provides a templatized double-linked list.

Overview
VDKValueList has a value semantic, so all managed object are copied from original ones values. VDKValueList can manage all T type object provided that:
Implementation notes
I suggest to use typedef's like:
  typedef VDKValueList<someClass>         SomeClassVDKValueListList;
  typedef VDKValueListIterator<SomeClass> SomeClassVDKValueListIterator;


Constructor & Destructor Documentation

template<class T>
VDKValueList< T >::VDKValueList   [inline]
 

Constructor makes an empty list

template<class T>
VDKValueList< T >::VDKValueList const VDKValueList< T > &    l
 

Copy-initializer

template<class T>
VDKValueList< T >::~VDKValueList   [virtual]
 

Destructor


Member Function Documentation

template<class T>
void VDKValueList< T >::add const T &    t
 

Append a type T to list

template<class T>
int VDKValueList< T >::at T &    t
 

Returns ordinal position of an element

template<class T>
T * VDKValueList< T >::find T &    t
 

membership operator Returns T* NULL if not found

template<class T>
void VDKValueList< T >::flush  
 

Flushes list

template<class T>
int VDKValueList< T >::insert const T &    t,
bool    unique = false
 

Insert in order

Parameters:
unique  if true denies duplicate key

template<class T>
VDKValueList< T > & VDKValueList< T >::operator= const VDKValueList< T > &    l
 

Assignement operator

template<class T>
T & VDKValueList< T >::operator[] int    n
 

Ordinal access

template<class T>
void VDKValueList< T >::push const T &    t
 

Prepend a type T to list

template<class T>
int VDKValueList< T >::size   [inline]
 

Returns list size

template<class T>
bool VDKValueList< T >::unlink int    ndx
 

Unlink an element form list

Parameters:
ndx  ordinal position of the element to be removed


The documentation for this class was generated from the following file:
Generated on Sat May 4 21:58:30 2002 for vdk 2.0.1 by doxygen1.2.15