Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Safir::Utilities::Array< T > Class Template Reference

STL-like fixed size array. More...

#include <Safir/Utilities/Array.h>

Inheritance diagram for Safir::Utilities::Array< T >:
Collaboration diagram for Safir::Utilities::Array< T >:

Public Types

typedef T * ArrayPtr
 
typedef T value_type
 
typedef ArrayPtr iterator
 
typedef const ArrayPtr const_iterator
 
typedef T & reference
 
typedef const T & const_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 Array (const size_t size)
 
 ~Array ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
reference operator[] (size_t i)
 
const_reference operator[] (size_t i) const
 
size_type size () const
 
size_type max_size () const
 

Detailed Description

template<typename T>
class Safir::Utilities::Array< T >

STL-like fixed size array.

This type differs from boost::array in that the size is a constructor parameter (and not a template parameter).

Member Typedef Documentation

template<typename T >
typedef T* Safir::Utilities::Array< T >::ArrayPtr
template<typename T >
typedef const ArrayPtr Safir::Utilities::Array< T >::const_iterator
template<typename T >
typedef const T& Safir::Utilities::Array< T >::const_reference
template<typename T >
typedef ptrdiff_t Safir::Utilities::Array< T >::difference_type
template<typename T >
typedef ArrayPtr Safir::Utilities::Array< T >::iterator
template<typename T >
typedef T& Safir::Utilities::Array< T >::reference
template<typename T >
typedef size_t Safir::Utilities::Array< T >::size_type
template<typename T >
typedef T Safir::Utilities::Array< T >::value_type

Constructor & Destructor Documentation

template<typename T >
Safir::Utilities::Array< T >::Array ( const size_t  size)
template<typename T >
Safir::Utilities::Array< T >::~Array ( )

Member Function Documentation

template<typename T >
iterator Safir::Utilities::Array< T >::begin ( )
template<typename T >
const_iterator Safir::Utilities::Array< T >::begin ( ) const
template<typename T >
iterator Safir::Utilities::Array< T >::end ( )
template<typename T >
size_type Safir::Utilities::Array< T >::max_size ( ) const
template<typename T >
reference Safir::Utilities::Array< T >::operator[] ( size_t  i)
template<typename T >
const_reference Safir::Utilities::Array< T >::operator[] ( size_t  i) const
template<typename T >
size_type Safir::Utilities::Array< T >::size ( ) const