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

◆ Array() [1/4]

template<typename T >
walberla::Array< T >::Array ( )
inline

◆ Array() [2/4]

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

◆ Array() [3/4]

template<typename T >
walberla::Array< T >::Array ( const std::vector< T > &  vector)
inline

◆ Array() [4/4]

template<typename T >
walberla::Array< T >::Array ( const Array< T > &  array)
inline

◆ ~Array()

template<typename T >
walberla::Array< T >::~Array ( )
inline

Member Function Documentation

◆ begin() [1/2]

template<typename T >
T* walberla::Array< T >::begin ( )
inline

◆ begin() [2/2]

template<typename T >
const T* walberla::Array< T >::begin ( ) const
inline

◆ empty()

template<typename T >
bool walberla::Array< T >::empty ( ) const
inline

◆ end() [1/2]

template<typename T >
T* walberla::Array< T >::end ( )
inline

◆ end() [2/2]

template<typename T >
const T* walberla::Array< T >::end ( ) const
inline

◆ operator!=()

template<typename T >
bool walberla::Array< T >::operator!= ( const Array< T > &  array) const
inline

◆ operator==()

template<typename T >
bool walberla::Array< T >::operator== ( const Array< T > &  array) const
inline

◆ operator[]() [1/2]

template<typename T >
T& walberla::Array< T >::operator[] ( const uint_t  index)
inline

◆ operator[]() [2/2]

template<typename T >
const T& walberla::Array< T >::operator[] ( const uint_t  index) const
inline

◆ size()

template<typename T >
uint_t walberla::Array< T >::size ( ) const
inline

◆ swap()

template<typename T >
void walberla::Array< T >::swap ( Array< T > &  array)
inline

◆ toStream()

template<typename T >
void walberla::Array< T >::toStream ( std::ostream &  os) const

◆ toString()

template<typename T >
std::string walberla::Array< T >::toString
inline

Member Data Documentation

◆ array_

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

◆ size_

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

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