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 110 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 119 of file nms-p2p-nix.cc.

◆ ~Array3D()

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

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

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 141 of file nms-p2p-nix.cc.

Member Data Documentation

◆ m_xMax

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

maximum number of rows

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

◆ p

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

Stored elements.

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


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