Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SparseArray< I, D > Class Template Reference

#include <sparsearray.h>

Inheritance diagram for SparseArray< I, D >:
Collaboration diagram for SparseArray< I, D >:

Classes

class  ArrayElement
 

Public Member Functions

 SparseArray (I arraySize)
 
virtual ~SparseArray ()
 
virtual void reallocate (I arraySize)
 
virtual I size ()
 
ArrayElementoperator[] (const I index)
 
virtual long getRealSize ()
 sets the data (row-wise). More...
 

Protected Member Functions

virtual void allocate ()
 
virtual void freeData ()
 

Protected Attributes

ArrayElement elementDummy
 
I arraySize
 set of all array values More...
 
HashMap< I, D * > * hashData
 

Constructor & Destructor Documentation

SparseArray ( I  arraySize)
inline
virtual ~SparseArray ( )
inlinevirtual

Member Function Documentation

virtual void allocate ( )
inlineprotectedvirtual
virtual void freeData ( )
inlineprotectedvirtual
virtual long getRealSize ( )
inlinevirtual

sets the data (row-wise).

Parameters
_dataif null then matrix elements are set to zero otherwise the field MUST have the length should be getSize()
ArrayElement& operator[] ( const I  index)
inline
virtual void reallocate ( I  arraySize)
inlinevirtual
virtual I size ( )
inlinevirtual

Member Data Documentation

I arraySize
protected

set of all array values

ArrayElement elementDummy
protected
HashMap<I, D* >* hashData
protected

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