Electronics and Software
Engineering Innovation
Beam-lib  2.15.1
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

◆ SortFunc

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

Prototype for sorting function.

Constructor & Destructor Documentation

◆ BArray() [1/3]

template<class T>
BArray< T >::BArray ( )
inline

◆ BArray() [2/3]

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

◆ BArray() [3/3]

template<class T>
BArray< T >::BArray ( const BArray< T > &  array)
inline

Member Function Documentation

◆ append() [1/2]

template<class T>
void BArray< T >::append ( const T &  value)
inline

◆ append() [2/2]

template<class T>
void BArray< T >::append ( const BArray< T > &  array)

◆ del()

template<class T>
void BArray< T >::del ( BUInt  pos,
BUInt  num = 1 
)
inline

◆ insert()

template<class T>
void BArray< T >::insert ( BUInt  pos,
const T &  value 
)
inline

◆ number()

template<class T>
BUInt BArray< T >::number ( ) const
inline

◆ rear()

template<class T>
T& BArray< T >::rear ( )
inline

◆ sort()

template<class T>
void BArray< T >::sort ( )
inline

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