Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH > Class Template Reference

#include <blockmem_gridmap.h>

Public Member Functions

 BlockMemGridmap (const CyclicVecInt< DIM, NONCYCLIC > &size_)
 
 BlockMemGridmap ()
 
void clear (const T zero)
 
void clear_positive (const T zero)
 
std::function< void(CyclicVecInt< 3, 2 >, size_t &, size_t &)> getAddressor () const
 
const BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH > & operator= (const BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH > &gm)
 
T & operator[] (const CyclicVecInt< DIM, NONCYCLIC > &pos)
 
const T operator[] (const CyclicVecInt< DIM, NONCYCLIC > &pos) const
 
void reset (const CyclicVecInt< DIM, NONCYCLIC > &size)
 
size_t ser_size () const
 
const CyclicVecInt< DIM, NONCYCLIC > & size () const
 
bool validate (const CyclicVecInt< DIM, NONCYCLIC > &pos, const int tolerance=0) const
 

Protected Member Functions

void block_addr (const CyclicVecInt< DIM, NONCYCLIC > &pos, size_t &baddr, size_t &addr) const
 

Protected Attributes

size_t block_num_
 
size_t block_ser_size_
 
CyclicVecInt< DIM, NONCYCLIC > block_size_
 
std::unique_ptr< T[]> c_
 
dummy_
 
size_t ser_size_
 
CyclicVecInt< DIM, NONCYCLIC > size_
 

Detailed Description

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
class BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >

Definition at line 38 of file blockmem_gridmap.h.

Constructor & Destructor Documentation

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::BlockMemGridmap ( const CyclicVecInt< DIM, NONCYCLIC > &  size_)
inlineexplicit

Definition at line 133 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::BlockMemGridmap ( )
inline

Definition at line 137 of file blockmem_gridmap.h.

Member Function Documentation

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
void BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::block_addr ( const CyclicVecInt< DIM, NONCYCLIC > &  pos,
size_t &  baddr,
size_t &  addr 
) const
inlineprotected

Definition at line 49 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
void BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::clear ( const T  zero)
inline

Definition at line 84 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
void BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::clear_positive ( const T  zero)
inline

Definition at line 91 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
std::function<void(CyclicVecInt<3, 2>, size_t&, size_t&)> BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::getAddressor ( ) const
inline

Definition at line 69 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
const BlockMemGridmap<T, DIM, NONCYCLIC, BLOCK_WIDTH>& BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::operator= ( const BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH > &  gm)
inline

Definition at line 173 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
T& BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::operator[] ( const CyclicVecInt< DIM, NONCYCLIC > &  pos)
inline

Definition at line 140 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
const T BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::operator[] ( const CyclicVecInt< DIM, NONCYCLIC > &  pos) const
inline

Definition at line 151 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
void BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::reset ( const CyclicVecInt< DIM, NONCYCLIC > &  size)
inline

Definition at line 99 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
size_t BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::ser_size ( ) const
inline

Definition at line 80 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
const CyclicVecInt<DIM, NONCYCLIC>& BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::size ( ) const
inline

Definition at line 76 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
bool BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::validate ( const CyclicVecInt< DIM, NONCYCLIC > &  pos,
const int  tolerance = 0 
) const
inline

Definition at line 159 of file blockmem_gridmap.h.

Member Data Documentation

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
size_t BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::block_num_
protected

Definition at line 46 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
size_t BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::block_ser_size_
protected

Definition at line 45 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
CyclicVecInt<DIM, NONCYCLIC> BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::block_size_
protected

Definition at line 43 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
std::unique_ptr<T[]> BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::c_
protected

Definition at line 41 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
T BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::dummy_
protected

Definition at line 47 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
size_t BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::ser_size_
protected

Definition at line 44 of file blockmem_gridmap.h.

template<class T, int DIM, int NONCYCLIC, int BLOCK_WIDTH = 0x20>
CyclicVecInt<DIM, NONCYCLIC> BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH >::size_
protected

Definition at line 42 of file blockmem_gridmap.h.


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


planner_cspace
Author(s): Atsushi Watanabe
autogenerated on Tue Jul 9 2019 05:00:13