LibTmsApi  2.0.0
Public Types | Public Member Functions | List of all members
BArray< T > Class Template Reference

#include <BArray.h>

Inheritance diagram for BArray< T >:

Public Types

typedef int(* SortFunc )(T &a, T &b)
 Prototype for sorting function. More...
 

Public Member Functions

 BArray ()
 
 BArray (BSize size, T value=T())
 
 BArray (const BArray &array)
 
BUInt number () const
 
void append (const T &value)
 
void append (const BArray< T > &array)
 
void insert (BUInt pos, const T &value)
 
void del (BUInt pos, BUInt num=1)
 
T & rear ()
 
void sort ()
 

Detailed Description

template<class T>
class BArray< T >

Template based Array class. This is based on the Standard C++ library vector class and has all of the functionality of that class.

Member Typedef Documentation

template<class T>
typedef int(* BArray< T >::SortFunc)(T &a, T &b)

Prototype for sorting function.

Constructor & Destructor Documentation

template<class T>
BArray< T >::BArray ( )
inline
template<class T>
BArray< T >::BArray ( BSize  size,
value = T() 
)
inline
template<class T>
BArray< T >::BArray ( const BArray< T > &  array)
inline

Member Function Documentation

template<class T>
void BArray< T >::append ( const T &  value)
inline
template<class T>
void BArray< T >::append ( const BArray< T > &  array)
template<class T>
void BArray< T >::del ( BUInt  pos,
BUInt  num = 1 
)
inline
template<class T>
void BArray< T >::insert ( BUInt  pos,
const T &  value 
)
inline
template<class T>
BUInt BArray< T >::number ( ) const
inline
template<class T>
T& BArray< T >::rear ( )
inline
template<class T>
void BArray< T >::sort ( )
inline

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