Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GMapping::HierarchicalArray2D< Cell > Class Template Reference

#include <harray2d.h>

Inheritance diagram for GMapping::HierarchicalArray2D< Cell >:
Inheritance graph
[legend]

Public Types

typedef std::set< point< int >, pointcomparator< int > > PointSet
 

Public Member Functions

void allocActiveArea ()
 
Cell & cell (const IntPoint &p)
 
const Cell & cell (const IntPoint &p) const
 
Cell & cell (int x, int y)
 
const Cell & cell (int x, int y) const
 
AccessibilityState cellState (const IntPoint &p) const
 
AccessibilityState cellState (int x, int y) const
 
const PointSetgetActiveArea () const
 
int getPatchMagnitude () const
 
int getPatchSize () const
 
 HierarchicalArray2D (const HierarchicalArray2D &hg)
 
 HierarchicalArray2D (int xsize, int ysize, int patchMagnitude=5)
 
bool isAllocated (const IntPoint &p) const
 
bool isAllocated (int x, int y) const
 
HierarchicalArray2Doperator= (const HierarchicalArray2D &hg)
 
IntPoint patchIndexes (const IntPoint &p) const
 
IntPoint patchIndexes (int x, int y) const
 
void resize (int ixmin, int iymin, int ixmax, int iymax)
 
void setActiveArea (const PointSet &, bool patchCoords=false)
 
virtual ~HierarchicalArray2D ()
 
- Public Member Functions inherited from GMapping::Array2D< autoptr< Array2D< Cell > > >
 Array2D (const Array2D< autoptr< Array2D< Cell > >, false > &)
 
 Array2D (int xsize=0, int ysize=0)
 
autoptr< Array2D< Cell > > & cell (const IntPoint &p)
 
const autoptr< Array2D< Cell > > & cell (const IntPoint &p) const
 
autoptr< Array2D< Cell > > & cell (int x, int y)
 
const autoptr< Array2D< Cell > > & cell (int x, int y) const
 
autoptr< Array2D< Cell > > ** cells ()
 
AccessibilityState cellState (const IntPoint &p) const
 
AccessibilityState cellState (int x, int y) const
 
void clear ()
 
int getPatchMagnitude () const
 
int getPatchSize () const
 
int getXSize () const
 
int getYSize () const
 
bool isInside (const IntPoint &p) const
 
bool isInside (int x, int y) const
 
Array2Doperator= (const Array2D &)
 
void resize (int xmin, int ymin, int xmax, int ymax)
 
 ~Array2D ()
 

Protected Member Functions

virtual Array2D< Cell > * createPatch (const IntPoint &p) const
 

Protected Attributes

PointSet m_activeArea
 
int m_patchMagnitude
 
int m_patchSize
 
- Protected Attributes inherited from GMapping::Array2D< autoptr< Array2D< Cell > > >
int m_xsize
 
int m_ysize
 

Additional Inherited Members

- Public Attributes inherited from GMapping::Array2D< autoptr< Array2D< Cell > > >
autoptr< Array2D< Cell > > ** m_cells
 

Detailed Description

template<class Cell>
class GMapping::HierarchicalArray2D< Cell >

Definition at line 11 of file harray2d.h.

Member Typedef Documentation

◆ PointSet

template<class Cell >
typedef std::set< point<int>, pointcomparator<int> > GMapping::HierarchicalArray2D< Cell >::PointSet

Definition at line 13 of file harray2d.h.

Constructor & Destructor Documentation

◆ HierarchicalArray2D() [1/2]

template<class Cell >
GMapping::HierarchicalArray2D< Cell >::HierarchicalArray2D ( int  xsize,
int  ysize,
int  patchMagnitude = 5 
)

Definition at line 45 of file harray2d.h.

◆ HierarchicalArray2D() [2/2]

template<class Cell >
GMapping::HierarchicalArray2D< Cell >::HierarchicalArray2D ( const HierarchicalArray2D< Cell > &  hg)

Definition at line 52 of file harray2d.h.

◆ ~HierarchicalArray2D()

template<class Cell >
virtual GMapping::HierarchicalArray2D< Cell >::~HierarchicalArray2D ( )
inlinevirtual

Definition at line 17 of file harray2d.h.

Member Function Documentation

◆ allocActiveArea()

template<class Cell >
void GMapping::HierarchicalArray2D< Cell >::allocActiveArea
inline

Definition at line 148 of file harray2d.h.

◆ cell() [1/4]

template<class Cell >
Cell& GMapping::HierarchicalArray2D< Cell >::cell ( const IntPoint p)
inline

Definition at line 29 of file harray2d.h.

◆ cell() [2/4]

template<class Cell >
const Cell& GMapping::HierarchicalArray2D< Cell >::cell ( const IntPoint p) const
inline

Definition at line 28 of file harray2d.h.

◆ cell() [3/4]

template<class Cell >
Cell & GMapping::HierarchicalArray2D< Cell >::cell ( int  x,
int  y 
)
inline

Definition at line 176 of file harray2d.h.

◆ cell() [4/4]

template<class Cell >
const Cell & GMapping::HierarchicalArray2D< Cell >::cell ( int  x,
int  y 
) const
inline

Definition at line 189 of file harray2d.h.

◆ cellState() [1/2]

template<class Cell >
AccessibilityState GMapping::HierarchicalArray2D< Cell >::cellState ( const IntPoint p) const
inline

Definition at line 31 of file harray2d.h.

◆ cellState() [2/2]

template<class Cell >
AccessibilityState GMapping::HierarchicalArray2D< Cell >::cellState ( int  x,
int  y 
) const
inline

Definition at line 138 of file harray2d.h.

◆ createPatch()

template<class Cell >
Array2D< Cell > * GMapping::HierarchicalArray2D< Cell >::createPatch ( const IntPoint p) const
protectedvirtual

Definition at line 132 of file harray2d.h.

◆ getActiveArea()

template<class Cell >
const PointSet& GMapping::HierarchicalArray2D< Cell >::getActiveArea ( ) const
inline

Definition at line 35 of file harray2d.h.

◆ getPatchMagnitude()

template<class Cell >
int GMapping::HierarchicalArray2D< Cell >::getPatchMagnitude ( ) const
inline

Definition at line 20 of file harray2d.h.

◆ getPatchSize()

template<class Cell >
int GMapping::HierarchicalArray2D< Cell >::getPatchSize ( ) const
inline

Definition at line 19 of file harray2d.h.

◆ isAllocated() [1/2]

template<class Cell >
bool GMapping::HierarchicalArray2D< Cell >::isAllocated ( const IntPoint p) const
inline

Definition at line 30 of file harray2d.h.

◆ isAllocated() [2/2]

template<class Cell >
bool GMapping::HierarchicalArray2D< Cell >::isAllocated ( int  x,
int  y 
) const
inline

Definition at line 162 of file harray2d.h.

◆ operator=()

template<class Cell >
HierarchicalArray2D< Cell > & GMapping::HierarchicalArray2D< Cell >::operator= ( const HierarchicalArray2D< Cell > &  hg)

Definition at line 95 of file harray2d.h.

◆ patchIndexes() [1/2]

template<class Cell >
IntPoint GMapping::HierarchicalArray2D< Cell >::patchIndexes ( const IntPoint p) const
inline

Definition at line 32 of file harray2d.h.

◆ patchIndexes() [2/2]

template<class Cell >
IntPoint GMapping::HierarchicalArray2D< Cell >::patchIndexes ( int  x,
int  y 
) const
inline

Definition at line 169 of file harray2d.h.

◆ resize()

template<class Cell >
void GMapping::HierarchicalArray2D< Cell >::resize ( int  ixmin,
int  iymin,
int  ixmax,
int  iymax 
)

Definition at line 68 of file harray2d.h.

◆ setActiveArea()

template<class Cell >
void GMapping::HierarchicalArray2D< Cell >::setActiveArea ( const PointSet ,
bool  patchCoords = false 
)
inline

Definition at line 119 of file harray2d.h.

Member Data Documentation

◆ m_activeArea

template<class Cell >
PointSet GMapping::HierarchicalArray2D< Cell >::m_activeArea
protected

Definition at line 39 of file harray2d.h.

◆ m_patchMagnitude

template<class Cell >
int GMapping::HierarchicalArray2D< Cell >::m_patchMagnitude
protected

Definition at line 40 of file harray2d.h.

◆ m_patchSize

template<class Cell >
int GMapping::HierarchicalArray2D< Cell >::m_patchSize
protected

Definition at line 41 of file harray2d.h.


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


openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Thu Oct 19 2023 02:25:51