Tulip  4.4.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
tlp::Array< Obj, SIZE > Struct Template Reference

#include <Array.h>

Public Member Functions

Obj operator[] (const unsigned int i) const
 
Obj & operator[] (const unsigned int i)
 

Public Attributes

Obj array [SIZE]
 

Detailed Description

template<typename Obj, unsigned int SIZE>
struct tlp::Array< Obj, SIZE >

Fixed-size array encapsulation.

In debug mode, a bound check is performed at each access. Stream operators implementations are provided.

Author
: David Auber auber.nosp@m.@tul.nosp@m.ip-so.nosp@m.ftwa.nosp@m.re.or.nosp@m.g

Definition at line 37 of file Array.h.

Member Function Documentation

template<typename Obj , unsigned int SIZE>
Obj tlp::Array< Obj, SIZE >::operator[] ( const unsigned int  i) const
inline

operator [] Read-only accessor.

Parameters
iThe index of the element to read.
Returns
The element at index i.

Definition at line 22 of file Array.cxx.

template<typename Obj , unsigned int SIZE>
Obj & tlp::Array< Obj, SIZE >::operator[] ( const unsigned int  i)
inline

operator [] Write accessor.

Parameters
iThe index at which to write a value.
Returns
A reference to the value at index i.

Definition at line 28 of file Array.cxx.

Member Data Documentation

template<typename Obj, unsigned int SIZE>
Obj tlp::Array< Obj, SIZE >::array[SIZE]

array The underlying array of data.

Definition at line 41 of file Array.h.