walberla::Array< T > Class Template Reference

Detailed Description

template<typename T>
class walberla::Array< T >

Fixed size, dynamically allocated array.

#include <Array.h>

Public Member Functions

 Array ()
 
 Array (const uint_t n, const T &t=T())
 
 Array (const std::vector< T > &vector)
 
 Array (const Array &array)
 
 ~Array ()
 
uint_t size () const
 
bool empty () const
 
bool operator== (const Array &array) const
 
bool operator!= (const Array &array) const
 
const T & operator[] (const uint_t index) const
 
T & operator[] (const uint_t index)
 
const T * begin () const
 
T * begin ()
 
const T * end () const
 
T * end ()
 
void swap (Array &array)
 
void toStream (std::ostream &os) const
 
std::string toString () const
 

Protected Attributes

T * array_
 
uint_t size_
 

Constructor & Destructor Documentation

template<typename T>
walberla::Array< T >::Array ( )
inline
template<typename T>
walberla::Array< T >::Array ( const uint_t  n,
const T &  t = T() 
)
inline
template<typename T>
walberla::Array< T >::Array ( const std::vector< T > &  vector)
inline
template<typename T>
walberla::Array< T >::Array ( const Array< T > &  array)
inline
template<typename T>
walberla::Array< T >::~Array ( )
inline

Member Function Documentation

template<typename T>
const T* walberla::Array< T >::begin ( ) const
inline
template<typename T>
T* walberla::Array< T >::begin ( )
inline
template<typename T>
bool walberla::Array< T >::empty ( ) const
inline
template<typename T>
const T* walberla::Array< T >::end ( ) const
inline
template<typename T>
T* walberla::Array< T >::end ( )
inline
template<typename T>
bool walberla::Array< T >::operator!= ( const Array< T > &  array) const
inline
template<typename T >
bool walberla::Array< T >::operator== ( const Array< T > &  array) const
inline
template<typename T>
const T& walberla::Array< T >::operator[] ( const uint_t  index) const
inline
template<typename T>
T& walberla::Array< T >::operator[] ( const uint_t  index)
inline
template<typename T>
uint_t walberla::Array< T >::size ( ) const
inline
template<typename T >
void walberla::Array< T >::swap ( Array< T > &  array)
inline
template<typename T >
void walberla::Array< T >::toStream ( std::ostream &  os) const
template<typename T >
std::string walberla::Array< T >::toString ( ) const
inline

Member Data Documentation

template<typename T>
T* walberla::Array< T >::array_
protected
template<typename T>
uint_t walberla::Array< T >::size_
protected

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