Choreonoid  1.8
Classes | Public Types | Public Member Functions | List of all members
cnoid::Array2D< ElementType, Allocator > Class Template Reference

#include <Array2D.h>

Classes

class  Column
 
class  Row
 

Public Types

typedef ElementType Element
 
typedef std::vector< ElementType, Allocator > Container
 
typedef Container::iterator iterator
 

Public Member Functions

 Array2D ()
 
 Array2D (int rowSize, int colSize)
 
 Array2D (const Array2DType &org)
 
Array2DTypeoperator= (const Array2DType &rhs)
 
virtual ~Array2D ()
 
bool empty () const
 
void resize (int newRowSize, int newColSize)
 
void clear ()
 
void resizeColumn (int newColSize)
 
int rowSize () const
 
void resizeRow (int newRowSize)
 
int colSize () const
 
const ElementType & operator() (int rowIndex, int colIndex) const
 
ElementType & operator() (int rowIndex, int colIndex)
 
const ElementType & at (int rowIndex, int colIndex) const
 
ElementType & at (int rowIndex, int colIndex)
 
Row operator[] (int rowIndex)
 
const Row operator[] (int rowIndex) const
 
Row row (int rowIndex)
 
const Row row (int rowIndex) const
 
Column column (int colIndex)
 
const Column column (int colIndex) const
 
iterator begin ()
 
iterator end ()
 

Member Typedef Documentation

◆ Container

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
typedef std::vector<ElementType, Allocator> cnoid::Array2D< ElementType, Allocator >::Container

◆ Element

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
typedef ElementType cnoid::Array2D< ElementType, Allocator >::Element

◆ iterator

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
typedef Container::iterator cnoid::Array2D< ElementType, Allocator >::iterator

Constructor & Destructor Documentation

◆ Array2D() [1/3]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
cnoid::Array2D< ElementType, Allocator >::Array2D ( )
inline

◆ Array2D() [2/3]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
cnoid::Array2D< ElementType, Allocator >::Array2D ( int  rowSize,
int  colSize 
)
inline

◆ Array2D() [3/3]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
cnoid::Array2D< ElementType, Allocator >::Array2D ( const Array2DType org)
inline

◆ ~Array2D()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
virtual cnoid::Array2D< ElementType, Allocator >::~Array2D ( )
inlinevirtual

Member Function Documentation

◆ at() [1/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
ElementType& cnoid::Array2D< ElementType, Allocator >::at ( int  rowIndex,
int  colIndex 
)
inline

◆ at() [2/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
const ElementType& cnoid::Array2D< ElementType, Allocator >::at ( int  rowIndex,
int  colIndex 
) const
inline

◆ begin()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
iterator cnoid::Array2D< ElementType, Allocator >::begin ( )
inline

◆ clear()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::clear ( )
inline

◆ colSize()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
int cnoid::Array2D< ElementType, Allocator >::colSize ( ) const
inline

◆ column() [1/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
Column cnoid::Array2D< ElementType, Allocator >::column ( int  colIndex)
inline

◆ column() [2/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
const Column cnoid::Array2D< ElementType, Allocator >::column ( int  colIndex) const
inline

◆ empty()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
bool cnoid::Array2D< ElementType, Allocator >::empty ( ) const
inline

◆ end()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
iterator cnoid::Array2D< ElementType, Allocator >::end ( )
inline

◆ operator()() [1/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
ElementType& cnoid::Array2D< ElementType, Allocator >::operator() ( int  rowIndex,
int  colIndex 
)
inline

◆ operator()() [2/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
const ElementType& cnoid::Array2D< ElementType, Allocator >::operator() ( int  rowIndex,
int  colIndex 
) const
inline

◆ operator=()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
Array2DType& cnoid::Array2D< ElementType, Allocator >::operator= ( const Array2DType rhs)
inline

◆ operator[]() [1/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
Row cnoid::Array2D< ElementType, Allocator >::operator[] ( int  rowIndex)
inline

◆ operator[]() [2/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
const Row cnoid::Array2D< ElementType, Allocator >::operator[] ( int  rowIndex) const
inline

◆ resize()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::resize ( int  newRowSize,
int  newColSize 
)
inline

◆ resizeColumn()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::resizeColumn ( int  newColSize)
inline

◆ resizeRow()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
void cnoid::Array2D< ElementType, Allocator >::resizeRow ( int  newRowSize)
inline

◆ row() [1/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
Row cnoid::Array2D< ElementType, Allocator >::row ( int  rowIndex)
inline

◆ row() [2/2]

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
const Row cnoid::Array2D< ElementType, Allocator >::row ( int  rowIndex) const
inline

◆ rowSize()

template<typename ElementType , typename Allocator = std::allocator<ElementType>>
int cnoid::Array2D< ElementType, Allocator >::rowSize ( ) const
inline

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