Tulip  5.1.0
Large graphs analysis and drawing
tlp::Array< Obj, SIZE > Struct Template Reference

#include <Array.h>

+ Inheritance diagram for tlp::Array< Obj, SIZE >:

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.@lab.nosp@m.ri.fr

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.