FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | Related Functions | List of all members
cpp::FixedArray< T, S > Class Template Reference

Provides a generic fixed-size array of items. More...

#include <cpptools/fixed_array.h>

Public Types

typedef T * pointer
 
typedef T & reference
 
typedef T value_type
 
typedef unsigned size_type
 
typedef const T * const_pointer
 
typedef const T & const_reference
 
typedef std::ptrdiff_t difference_type
 
typedef
std::random_access_iterator_tag 
iterator_category
 
typedef T * iterator
 
typedef const T * const_iterator
 

Public Member Functions

 FixedArray ()
 
 FixedArray (const Self_t &other)
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
bool empty () const
 
size_type max_size () const
 
size_type size () const
 
T & get (unsigned i)
 
const T & get (unsigned i) const
 
T & operator[] (unsigned i)
 
const T & operator[] (unsigned i) const
 
const T * cArray () const
 
T * cArray ()
 
void set (unsigned i, const T &coord)
 
Self_toperator= (const Self_t &other)
 

Protected Attributes

m_vector [S]
 

Related Functions

(Note that these are not member functions.)

template<typename TEXT_STREAM , typename T , unsigned S>
TEXT_STREAM & operator<< (TEXT_STREAM &os, const FixedArray< T, S > &coords)
 

Detailed Description

template<typename T, unsigned S>
class cpp::FixedArray< T, S >

Provides a generic fixed-size array of items.

Member Typedef Documentation

template<typename T, unsigned S>
typedef const T* cpp::FixedArray< T, S >::const_iterator
template<typename T, unsigned S>
typedef const T* cpp::FixedArray< T, S >::const_pointer
template<typename T, unsigned S>
typedef const T& cpp::FixedArray< T, S >::const_reference
template<typename T, unsigned S>
typedef std::ptrdiff_t cpp::FixedArray< T, S >::difference_type
template<typename T, unsigned S>
typedef T* cpp::FixedArray< T, S >::iterator
template<typename T, unsigned S>
typedef std::random_access_iterator_tag cpp::FixedArray< T, S >::iterator_category
template<typename T, unsigned S>
typedef T* cpp::FixedArray< T, S >::pointer
template<typename T, unsigned S>
typedef T& cpp::FixedArray< T, S >::reference
template<typename T, unsigned S>
typedef unsigned cpp::FixedArray< T, S >::size_type
template<typename T, unsigned S>
typedef T cpp::FixedArray< T, S >::value_type

Constructor & Destructor Documentation

template<typename T , unsigned S>
cpp::FixedArray< T, S >::FixedArray ( )
template<typename T , unsigned S>
cpp::FixedArray< T, S >::FixedArray ( const Self_t other)

Member Function Documentation

template<typename T , unsigned S>
FixedArray< T, S >::const_iterator cpp::FixedArray< T, S >::begin ( ) const
template<typename T , unsigned S>
FixedArray< T, S >::iterator cpp::FixedArray< T, S >::begin ( )
template<typename T , unsigned S>
const T * cpp::FixedArray< T, S >::cArray ( ) const
template<typename T , unsigned S>
T * cpp::FixedArray< T, S >::cArray ( )
template<typename T , unsigned S>
bool cpp::FixedArray< T, S >::empty ( ) const
template<typename T , unsigned S>
FixedArray< T, S >::const_iterator cpp::FixedArray< T, S >::end ( ) const
template<typename T , unsigned S>
FixedArray< T, S >::iterator cpp::FixedArray< T, S >::end ( )
template<typename T , unsigned S>
T & cpp::FixedArray< T, S >::get ( unsigned  i)
template<typename T , unsigned S>
const T & cpp::FixedArray< T, S >::get ( unsigned  i) const
template<typename T , unsigned S>
FixedArray< T, S >::size_type cpp::FixedArray< T, S >::max_size ( ) const
template<typename T , unsigned S>
FixedArray< T, S > & cpp::FixedArray< T, S >::operator= ( const Self_t other)
template<typename T , unsigned S>
T & cpp::FixedArray< T, S >::operator[] ( unsigned  i)
template<typename T , unsigned S>
const T & cpp::FixedArray< T, S >::operator[] ( unsigned  i) const
template<typename T , unsigned S>
void cpp::FixedArray< T, S >::set ( unsigned  i,
const T &  coord 
)
template<typename T , unsigned S>
FixedArray< T, S >::size_type cpp::FixedArray< T, S >::size ( ) const

Friends And Related Function Documentation

template<typename TEXT_STREAM , typename T , unsigned S>
TEXT_STREAM & operator<< ( TEXT_STREAM &  os,
const FixedArray< T, S > &  coords 
)
related

Member Data Documentation

template<typename T, unsigned S>
T cpp::FixedArray< T, S >::m_vector[S]
protected

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