A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 
 ~Array3D ()
 
Array2D< T > & operator[] (const size_t i)
 Accessor operator.
 

Private Attributes

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

Detailed Description

template<typename T>
class Array3D< T >

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

Definition at line 105 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 114 of file nms-p2p-nix.cc.

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

◆ ~Array3D()

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

Definition at line 124 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 140 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 147 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 146 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: