ViennaGrid - The Vienna Grid Library  2.1.0
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
static_array< T, N > Class Template Reference

Reimplementation of std::array<> because we cannot reasonably expect that C++11 is available on all target machines. More...

#include <static_array.hpp>

Data Structures

class  const_iterator
class  iterator

Public Types

typedef const T * const_pointer
typedef const T & const_reference
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
typedef std::ptrdiff_t difference_type
typedef T * pointer
typedef T & reference
typedef std::reverse_iterator
< iterator
reverse_iterator
typedef std::size_t size_type
typedef T value_type

Public Member Functions

void assign (const T &value)
reference at (size_type i)
const_reference at (size_type i) const
reference back ()
const_reference back () const
iterator begin ()
const_iterator begin () const
T * c_array ()
const_iterator cbegin () const
const_iterator cend () const
const_reverse_iterator crbegin () const
const_reverse_iterator crend () const
const T * data () const
T * data ()
iterator end ()
const_iterator end () const
void fill (const T &value)
reference front ()
const_reference front () const
template<typename T2 >
static_array< T, N > & operator= (const static_array< T2, N > &rhs)
reference operator[] (size_type i)
const_reference operator[] (size_type i) const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
 static_array ()
void swap (static_array< T, N > &y)

Static Public Member Functions

static bool empty ()
static size_type max_size ()
static void resize (size_type s)
static size_type size ()

Static Public Attributes

static const int static_size = N

Detailed Description

template<typename T, int N>
class viennagrid::static_array< T, N >

Reimplementation of std::array<> because we cannot reasonably expect that C++11 is available on all target machines.


Member Typedef Documentation

typedef const T* const_pointer
typedef const T& const_reference
typedef std::reverse_iterator<const_iterator> const_reverse_iterator
typedef std::ptrdiff_t difference_type
typedef T* pointer
typedef T& reference
typedef std::reverse_iterator<iterator> reverse_iterator
typedef std::size_t size_type
typedef T value_type

Constructor & Destructor Documentation

static_array ( ) [inline]

Member Function Documentation

void assign ( const T &  value) [inline]
reference at ( size_type  i) [inline]
const_reference at ( size_type  i) const [inline]
reference back ( ) [inline]
const_reference back ( ) const [inline]
iterator begin ( ) [inline]
const_iterator begin ( ) const [inline]
T* c_array ( ) [inline]
const_iterator cbegin ( ) const [inline]
const_iterator cend ( ) const [inline]
const_reverse_iterator crbegin ( ) const [inline]
const_reverse_iterator crend ( ) const [inline]
const T* data ( ) const [inline]
T* data ( ) [inline]
static bool empty ( ) [inline, static]
iterator end ( ) [inline]
const_iterator end ( ) const [inline]
void fill ( const T &  value) [inline]
reference front ( ) [inline]
const_reference front ( ) const [inline]
static size_type max_size ( ) [inline, static]
static_array<T,N>& operator= ( const static_array< T2, N > &  rhs) [inline]
reference operator[] ( size_type  i) [inline]
const_reference operator[] ( size_type  i) const [inline]
reverse_iterator rbegin ( ) [inline]
const_reverse_iterator rbegin ( ) const [inline]
reverse_iterator rend ( ) [inline]
const_reverse_iterator rend ( ) const [inline]
static void resize ( size_type  s) [inline, static]
static size_type size ( ) [inline, static]
void swap ( static_array< T, N > &  y) [inline]

Field Documentation

const int static_size = N [static]

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