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

dbVarray Class Template Reference

Db objects: template <class T> class dbVarray. More...

#include <DbVArray.h>

Inheritance diagram for dbVarray:

std::vector List of all members.

Public Types

typedef _Base::iterator iterator
 Public type definitions. More...

typedef _Base::const_iterator const_iterator

Public Methods

iterator begin ()
 First element of iteration. More...

const_iterator begin () const
 First element of iteration (CONST). More...

iterator end ()
 End-element of iteration. More...

const_iterator end () const
 End-element of iteration (CONST). More...

 dbVarray ()
 Standard constructor. More...

 dbVarray (long siz)
 Standard constructor initialising data to a given size. More...

 dbVarray (const dbVarray<T>& copy)
 Copy constructor. More...

virtual ~dbVarray ()
 Standard destructor. More...

dbVarray& operator= (const dbVarray<T>& copy)
 Assignment operator. More...

T& elem (long i)
 Access to individual elements. More...

void resize (long length)
 Resize data buffer. More...

char* increase (long length)
long cardinality () const
 Size of filled data buffer. More...

const T& retrieve_element_at (long which)
 Access to individual elements. More...

int is_empty () const
 Check if data buffer is empty. More...

void remove_all ()
 Clear data buffer. More...

DbResult extend (const T& val)
 Append element to data buffer. More...

void insert_element (const T& val)
 Insert element into buffer. More...

void replace_element_at (const T& val, long i)
 Change individual elements. More...

void replace_element_at (const T& val, const dbIterator<T>& it)
 Change individual elements. More...

void set (long i, const T& arg)
 Set an individual element and increase size if necessary. More...

T& operator[] (long i)
 Access to individual elements. More...

const T& operator[] (long i) const
 Access to individual elements (CONST). More...

long size () const
 Retrieve data buffer length. More...

long upper_bound () const
 Retrieve data buffer length. More...

dbIterator<T> create_iterator () const
 Create iterator. More...


Private Types

typedef std::vector<T> _Base

Private Methods

const T& elem (long i) const

Detailed Description

template<class T> template class dbVarray

Db objects: template <class T> class dbVarray.

Description: VArray object definition

Dependencies:

History :

    +---------+----------------------------------------------+--------+
    |    Date |                 Comment                      | Who    |
    +---------+----------------------------------------------+--------+
    | 21/09/99| Initial version.                             | MF     |
    +---------+----------------------------------------------+--------+
    
Author: M.Frank Version: 1.0

Definition at line 110 of file DbVArray.h.


Member Typedef Documentation

template<classT>
typedef std::vector<T> dbVarray<T>::_Base [private]
 

Definition at line 112 of file DbVArray.h.

template<classT>
typedef _Base::const_iterator dbVarray<T>::const_iterator
 

Definition at line 120 of file DbVArray.h.

template<classT>
typedef _Base::iterator dbVarray<T>::iterator
 

Public type definitions.

Definition at line 119 of file DbVArray.h.


Constructor & Destructor Documentation

template<classT>
dbVarray<T>::dbVarray<T> ( ) [inline]
 

Standard constructor.

Definition at line 138 of file DbVArray.h.

template<classT>
dbVarray<T>::dbVarray<T> ( long siz ) [inline]
 

Standard constructor initialising data to a given size.

Definition at line 141 of file DbVArray.h.

template<classT>
dbVarray<T>::dbVarray<T> ( const dbVarray< T >& copy ) [inline]
 

Copy constructor.

Definition at line 145 of file DbVArray.h.

template<classT>
dbVarray<T>::~dbVarray<T> ( ) [inline, virtual]
 

Standard destructor.

Definition at line 149 of file DbVArray.h.


Member Function Documentation

template<classT>
const_iterator dbVarray<T>::begin ( ) const [inline]
 

First element of iteration (CONST).

Definition at line 126 of file DbVArray.h.

template<classT>
iterator dbVarray<T>::begin ( ) [inline]
 

First element of iteration.

Definition at line 122 of file DbVArray.h.

template<classT>
long dbVarray<T>::cardinality ( ) const [inline]
 

Size of filled data buffer.

Definition at line 179 of file DbVArray.h.

template<classT>
dbIterator< T > dbVarray<T>::create_iterator ( ) const [inline]
 

Create iterator.

Definition at line 235 of file DbVArray.h.

template<classT>
T & dbVarray<T>::elem ( long i ) [inline]
 

Access to individual elements.

Definition at line 157 of file DbVArray.h.

template<classT>
const T & dbVarray<T>::elem ( long i ) const [inline, private]
 

Definition at line 114 of file DbVArray.h.

Referenced by increase(), dbIterator::next(), operator[](), retrieve_element_at(), and set().

template<classT>
const_iterator dbVarray<T>::end ( ) const [inline]
 

End-element of iteration (CONST).

Definition at line 134 of file DbVArray.h.

template<classT>
iterator dbVarray<T>::end ( ) [inline]
 

End-element of iteration.

Definition at line 130 of file DbVArray.h.

template<classT>
DbResult dbVarray<T>::extend ( const T & val ) [inline]
 

Append element to data buffer.

Definition at line 195 of file DbVArray.h.

Referenced by DbObject::addInvalidLink(), and DbObject::addLink().

template<classT>
char * dbVarray<T>::increase ( long length ) [inline]
 

Definition at line 174 of file DbVArray.h.

template<classT>
void dbVarray<T>::insert_element ( const T & val ) [inline]
 

Insert element into buffer.

Definition at line 200 of file DbVArray.h.

template<classT>
int dbVarray<T>::is_empty ( ) const [inline]
 

Check if data buffer is empty.

Definition at line 187 of file DbVArray.h.

template<classT>
dbVarray<T> & dbVarray<T>::operator= ( const dbVarray< T >& copy ) [inline]
 

Assignment operator.

Definition at line 152 of file DbVArray.h.

template<classT>
const T & dbVarray<T>::operator[] ( long i ) const [inline]
 

Access to individual elements (CONST).

Definition at line 223 of file DbVArray.h.

template<classT>
T & dbVarray<T>::operator[] ( long i ) [inline]
 

Access to individual elements.

Definition at line 219 of file DbVArray.h.

template<classT>
void dbVarray<T>::remove_all ( ) [inline]
 

Clear data buffer.

Definition at line 191 of file DbVArray.h.

template<classT>
void dbVarray<T>::replace_element_at ( const T & val,
const dbIterator< T >& it ) [inline]
 

Change individual elements.

Definition at line 208 of file DbVArray.h.

template<classT>
void dbVarray<T>::replace_element_at ( const T & val,
long i ) [inline]
 

Change individual elements.

Definition at line 204 of file DbVArray.h.

template<classT>
void dbVarray<T>::resize ( long length ) [inline]
 

Resize data buffer.

Definition at line 161 of file DbVArray.h.

Referenced by dbVarray(), remove_all(), and set().

template<classT>
const T & dbVarray<T>::retrieve_element_at ( long which ) [inline]
 

Access to individual elements.

Definition at line 183 of file DbVArray.h.

template<classT>
void dbVarray<T>::set ( long i,
const T & arg ) [inline]
 

Set an individual element and increase size if necessary.

Definition at line 212 of file DbVArray.h.

Referenced by extend(), insert_element(), and replace_element_at().

template<classT>
long dbVarray<T>::size ( ) const [inline]
 

Retrieve data buffer length.

Definition at line 227 of file DbVArray.h.

Referenced by cardinality(), extend(), increase(), insert_element(), is_empty(), set(), and upper_bound().

template<classT>
long dbVarray<T>::upper_bound ( ) const [inline]
 

Retrieve data buffer length.

Definition at line 231 of file DbVArray.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:23 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000