A Discrete-Event Network Simulator
API
Array3D< T > Class Template Reference

3D array used in nix-vector-routing example "nms-p2p-nix.cc" More...

+ Collaboration diagram for Array3D< T >:

Public Member Functions

 Array3D (const size_t x, const size_t y, const size_t z)
 Constructor. More...
 
 ~Array3D (void)
 
Array2D< T > & operator[] (const size_t i)
 Accessor operator. More...
 

Private Attributes

const size_t m_xMax
 maximum number of rows More...
 
Array2D< T > ** p
 Stored elements. More...
 

Detailed Description

template<typename T>
class Array3D< T >

3D array used in nix-vector-routing example "nms-p2p-nix.cc"

Definition at line 117 of file nms-p2p-nix.cc.

Constructor & Destructor Documentation

◆ Array3D()

template<typename T >
Array3D< T >::Array3D ( const size_t  x,
const size_t  y,
const size_t  z 
)
inline

Constructor.

Parameters
xnumber of rows
ynumber of columns
znumber of layers

Definition at line 126 of file nms-p2p-nix.cc.

References Array3D< T >::m_xMax, and Array3D< T >::p.

◆ ~Array3D()

template<typename T >
Array3D< T >::~Array3D ( void  )
inline

Definition at line 132 of file nms-p2p-nix.cc.

References Array3D< T >::m_xMax, and Array3D< T >::p.

Member Function Documentation

◆ operator[]()

template<typename T >
Array2D< T > & Array3D< T >::operator[] ( const size_t  i)
inline

Accessor operator.

Parameters
iindex to be retrieved
Returns
a reference to an Array2D of the indexed element

Definition at line 148 of file nms-p2p-nix.cc.

References Array3D< T >::p.

Member Data Documentation

◆ m_xMax

template<typename T >
const size_t Array3D< T >::m_xMax
private

maximum number of rows

Definition at line 154 of file nms-p2p-nix.cc.

Referenced by Array3D< T >::Array3D(), and Array3D< T >::~Array3D().

◆ p

template<typename T >
Array2D<T>** Array3D< T >::p
private

Stored elements.

Definition at line 153 of file nms-p2p-nix.cc.

Referenced by Array3D< T >::Array3D(), Array3D< T >::~Array3D(), and Array3D< T >::operator[]().


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