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 ()
 
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 116 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 125 of file nms-p2p-nix.cc.

◆ ~Array3D()

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

Definition at line 135 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 151 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 158 of file nms-p2p-nix.cc.

◆ p

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

Stored elements.

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


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