CLAM-Development  1.4.0
Classes | Public Member Functions
CLAM::List< T > Class Template Reference

#include <List.hxx>

List of all members.

Classes

class  Node

Public Member Functions

const char * GetClassName () const
 Return the class name.
 List ()
Listoperator= (const List &src)
 List (const List &src)
 ~List ()
void AddElem (const T &value)
void InsertElem (const T &value, TIndex i)
void InsertElem (const T &value)
void DeleteElem (TIndex i)
void DeleteElem ()
void Extract (T &value, TIndex i)
void Extract (T &value)
TSize Size () const
bool IsEmpty () const
const T & operator[] (TIndex i) const
T & operator[] (TIndex i)
const T & Current () const
const T & First () const
const T & Last () const
T & Current ()
T & First ()
T & Last ()
void DoFirst ()
void DoLast ()
void DoNext ()
void DoPrevious ()
bool IsLast ()
bool Done (void)
bool IsFirst ()
int CurrentIndex () const
bool FulfillsInvariant (void) const
void StoreOn (Storage &storage) const
 Stores component's subitems on the given Storage.
void LoadFrom (Storage &storage)
 Loads component's subitems from the given Storage.
- Public Member Functions inherited from CLAM::Component
virtual ~Component ()
virtual ComponentShallowCopy () const
virtual ComponentDeepCopy () const

Detailed Description

template<class T>
class CLAM::List< T >

Definition at line 38 of file List.hxx.


Constructor & Destructor Documentation

template<class T>
CLAM::List< T >::List ( )
inline

Definition at line 64 of file List.hxx.

template<class T>
CLAM::List< T >::List ( const List< T > &  src)
inline

Definition at line 93 of file List.hxx.

template<class T>
CLAM::List< T >::~List ( )
inline

Definition at line 101 of file List.hxx.


Member Function Documentation

template<class T>
void CLAM::List< T >::AddElem ( const T &  value)
inline
template<class T>
const T& CLAM::List< T >::Current ( ) const
inline

Definition at line 129 of file List.hxx.

template<class T>
T& CLAM::List< T >::Current ( )
inline

Definition at line 147 of file List.hxx.

template<class T>
int CLAM::List< T >::CurrentIndex ( ) const
inline

Definition at line 203 of file List.hxx.

template<class T >
void CLAM::List< T >::DeleteElem ( TIndex  i)
inline

Definition at line 294 of file List.hxx.

References CLAM_ASSERT, and CLAM_DEBUG_ASSERT.

Referenced by CLAM::Segment::DeleteFrame().

template<class T>
void CLAM::List< T >::DeleteElem ( )
template<class T>
void CLAM::List< T >::DoFirst ( )
inline

Definition at line 165 of file List.hxx.

template<class T>
void CLAM::List< T >::DoLast ( )
inline

Definition at line 170 of file List.hxx.

Referenced by CLAM::List< Frame >::LoadFrom(), and CLAM::List< Frame >::operator=().

template<class T>
bool CLAM::List< T >::Done ( void  )
inline

Definition at line 193 of file List.hxx.

template<class T>
void CLAM::List< T >::DoNext ( )
inline

Definition at line 175 of file List.hxx.

template<class T>
void CLAM::List< T >::DoPrevious ( )
inline

Definition at line 181 of file List.hxx.

template<class T>
void CLAM::List< T >::Extract ( T &  value,
TIndex  i 
)
inline

Definition at line 398 of file List.hxx.

References CLAM_ASSERT, and CLAM_DEBUG_ASSERT.

template<class T>
void CLAM::List< T >::Extract ( T &  value)
inline

Definition at line 410 of file List.hxx.

References CLAM_DEBUG_ASSERT.

template<class T>
const T& CLAM::List< T >::First ( ) const
inline

Definition at line 135 of file List.hxx.

template<class T>
T& CLAM::List< T >::First ( )
inline

Definition at line 153 of file List.hxx.

template<class T >
bool CLAM::List< T >::FulfillsInvariant ( void  ) const
inline
template<class T>
const char* CLAM::List< T >::GetClassName ( ) const
inlinevirtual

Return the class name.

Implements CLAM::Component.

Definition at line 62 of file List.hxx.

template<class T>
void CLAM::List< T >::InsertElem ( const T &  value,
TIndex  i 
)
inline

Definition at line 359 of file List.hxx.

References CLAM_ASSERT, and CLAM_DEBUG_ASSERT.

template<class T>
void CLAM::List< T >::InsertElem ( const T &  value)
template<class T>
bool CLAM::List< T >::IsEmpty ( ) const
inline

Definition at line 123 of file List.hxx.

template<class T>
bool CLAM::List< T >::IsFirst ( )
inline

Definition at line 198 of file List.hxx.

template<class T>
bool CLAM::List< T >::IsLast ( )
inline

Definition at line 188 of file List.hxx.

template<class T>
const T& CLAM::List< T >::Last ( ) const
inline

Definition at line 141 of file List.hxx.

Referenced by CLAM::List< Frame >::LoadFrom().

template<class T>
T& CLAM::List< T >::Last ( )
inline

Definition at line 159 of file List.hxx.

template<class T>
void CLAM::List< T >::LoadFrom ( Storage storage)
inlinevirtual

Loads component's subitems from the given Storage.

Parameters:
storageThe given storage where the subitem will be loaded from
See also:
Storage

Implements CLAM::Component.

Definition at line 240 of file List.hxx.

template<class T>
List& CLAM::List< T >::operator= ( const List< T > &  src)
inline

Definition at line 74 of file List.hxx.

template<class T >
const T & CLAM::List< T >::operator[] ( TIndex  i) const
inline

Definition at line 444 of file List.hxx.

References CLAM_DEBUG_ASSERT.

template<class T >
T & CLAM::List< T >::operator[] ( TIndex  i)
inline

Definition at line 501 of file List.hxx.

References CLAM_DEBUG_ASSERT.

template<class T>
TSize CLAM::List< T >::Size ( void  ) const
inline

Definition at line 119 of file List.hxx.

Referenced by CLAM::Segment::GetnFrames(), and CLAM::List< Frame >::operator=().

template<class T>
void CLAM::List< T >::StoreOn ( Storage storage) const
inlinevirtual

Stores component's subitems on the given Storage.

Parameters:
storageThe given storage where the subitem will be stored
See also:
Storage

Implements CLAM::Component.

Definition at line 224 of file List.hxx.


The documentation for this class was generated from the following file: