libMesh::VariationalMeshSmoother::Array2D< T > Struct Template Reference

Public Member Functions

 Array2D (unsigned nx, unsigned ny)
 
std::vector< T > & operator[] (unsigned i)
 
const std::vector< T > & operator[] (unsigned i) const
 

Private Attributes

std::vector< std::vector< T > > _data
 

Detailed Description

template<typename T>
struct libMesh::VariationalMeshSmoother::Array2D< T >

2D array type for interfacing with C APIs.

Definition at line 226 of file mesh_smoother_vsmoother.h.

Constructor & Destructor Documentation

◆ Array2D()

template<typename T>
libMesh::VariationalMeshSmoother::Array2D< T >::Array2D ( unsigned  nx,
unsigned  ny 
)
inline

Definition at line 228 of file mesh_smoother_vsmoother.h.

228  :
229  _data(nx, std::vector<T>(ny)) {}

Member Function Documentation

◆ operator[]() [1/2]

template<typename T>
std::vector<T>& libMesh::VariationalMeshSmoother::Array2D< T >::operator[] ( unsigned  i)
inline

Definition at line 232 of file mesh_smoother_vsmoother.h.

References libMesh::VariationalMeshSmoother::Array2D< T >::_data.

232 {return _data[i];}

◆ operator[]() [2/2]

template<typename T>
const std::vector<T>& libMesh::VariationalMeshSmoother::Array2D< T >::operator[] ( unsigned  i) const
inline

Definition at line 233 of file mesh_smoother_vsmoother.h.

References libMesh::VariationalMeshSmoother::Array2D< T >::_data.

233 {return _data[i];}

Member Data Documentation

◆ _data

template<typename T>
std::vector<std::vector<T> > libMesh::VariationalMeshSmoother::Array2D< T >::_data
private

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