utils::DArray< T > Class Template Reference

#include <DArray.h>


Public Member Functions

 DArray ()
 DArray (ushort size, const T *)
 DArray (std::vector< T > vec)
 DArray (const DArray &)
 ~DArray ()
T & get (ushort i)
get (ushort i) const
void put (const T &)
T & operator[] (unsigned short offset)
operator[] (unsigned short offset) const
DArray operator+ (const DArray &) const
void operator+= (const DArray &)
DArrayoperator= (const DArray &)
bool operator== (const DArray &) const
bool operator!= (const DArray &rhs) const
unsigned short size () const
unsigned short length () const
bool contains (const T &) const
T * getArray () const
 Returns the array of object.

Private Member Functions

 DArray (ushort)

Private Attributes

unsigned short itsSize
T * itsArray

template<class T>
class utils::DArray< T >


Constructor & Destructor Documentation

template<class T >
utils::DArray< T >::DArray (  )  [inline]

template<class T >
utils::DArray< T >::DArray ( ushort  size,
const T *  beans 
) [inline]

template<class T >
utils::DArray< T >::DArray ( std::vector< T >  vec  )  [inline]

template<class T >
utils::DArray< T >::DArray ( const DArray< T > &  arr  )  [inline]

template<class T >
utils::DArray< T >::~DArray (  )  [inline]

template<class T >
utils::DArray< T >::DArray ( ushort  len  )  [inline, private]


Member Function Documentation

template<class T >
bool utils::DArray< T >::contains ( const T &  t  )  const [inline]

template<class T >
T utils::DArray< T >::get ( ushort  i  )  const

template<class T >
T& utils::DArray< T >::get ( ushort  i  ) 

template<class T >
T * utils::DArray< T >::getArray (  )  const [inline]

Returns the array of object.

Note: you don't get the actual array, just a copy.

References utils::DArray< T >::itsArray, and utils::DArray< T >::size().

Referenced by utils::DArray< T >::operator==().

template<class T >
unsigned short utils::DArray< T >::length (  )  const [inline]

template<class T >
bool utils::DArray< T >::operator!= ( const DArray< T > &  rhs  )  const [inline]

template<class T >
DArray< T > utils::DArray< T >::operator+ ( const DArray< T > &  arrayTwo  )  const [inline]

template<class T >
void utils::DArray< T >::operator+= ( const DArray< T > &  arrayTwo  )  [inline]

template<class T >
DArray< T > & utils::DArray< T >::operator= ( const DArray< T > &  arrayTwo  )  [inline]

template<class T >
bool utils::DArray< T >::operator== ( const DArray< T > &  arrayTwo  )  const [inline]

template<class T >
T utils::DArray< T >::operator[] ( unsigned short  offset  )  const [inline]

template<class T >
T & utils::DArray< T >::operator[] ( unsigned short  offset  )  [inline]

template<class T >
void utils::DArray< T >::put ( const T &  bean  )  [inline]

template<class T >
unsigned short utils::DArray< T >::size (  )  const [inline]


Field Documentation

template<class T >
T* utils::DArray< T >::itsArray [private]

template<class T >
unsigned short utils::DArray< T >::itsSize [private]


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

Generated on Fri Jun 11 21:02:36 2010 for libdnstd by  doxygen 1.5.7.1