#include <blockmem_gridmap.h>
Public Member Functions | |
BlockMemGridmap (const CyclicVecInt< DIM, NONCYCLIC > &size_) | |
BlockMemGridmap () | |
void | clear (const T zero) |
void | clear_partially (const T zero, const CyclicVecInt< DIM, NONCYCLIC > &min, const CyclicVecInt< DIM, NONCYCLIC > &max) |
void | clear_positive (const T zero) |
void | copy_partially (const BlockMemGridmapBase< T, DIM, NONCYCLIC > &base, const CyclicVecInt< DIM, NONCYCLIC > &min, const CyclicVecInt< DIM, NONCYCLIC > &max) |
std::function< void(CyclicVecInt< DIM, NONCYCLIC >, size_t &, size_t &)> | getAddressor () const |
const BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH, ENABLE_VALIDATION > & | operator= (const BlockMemGridmap< T, DIM, NONCYCLIC, BLOCK_WIDTH, ENABLE_VALIDATION > &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_ |
T | dummy_ |
size_t | ser_size_ |
CyclicVecInt< DIM, NONCYCLIC > | size_ |
Static Protected Attributes | |
static constexpr size_t | block_bit_ = log2Recursive(BLOCK_WIDTH) |
static constexpr size_t | block_bit_mask_ = (1 << block_bit_) - 1 |
Static Private Member Functions | |
static constexpr bool | isPowOf2 (const int v) |
static constexpr size_t | log2Recursive (const size_t v, const size_t depth=0) |
Definition at line 60 of file blockmem_gridmap.h.
|
inlineexplicit |
Definition at line 201 of file blockmem_gridmap.h.
|
inline |
Definition at line 206 of file blockmem_gridmap.h.
|
inlineprotected |
Definition at line 87 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 121 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 128 of file blockmem_gridmap.h.
|
inline |
Definition at line 159 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 143 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 106 of file blockmem_gridmap.h.
|
inlinestaticprivate |
Definition at line 63 of file blockmem_gridmap.h.
|
inlinestaticprivate |
Definition at line 70 of file blockmem_gridmap.h.
|
inline |
Definition at line 248 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 210 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 222 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 167 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 117 of file blockmem_gridmap.h.
|
inlinevirtual |
Implements planner_cspace::BlockMemGridmapBase< T, DIM, NONCYCLIC >.
Definition at line 113 of file blockmem_gridmap.h.
|
inline |
Definition at line 234 of file blockmem_gridmap.h.
|
staticprotected |
Definition at line 76 of file blockmem_gridmap.h.
|
staticprotected |
Definition at line 77 of file blockmem_gridmap.h.
|
protected |
Definition at line 84 of file blockmem_gridmap.h.
|
protected |
Definition at line 83 of file blockmem_gridmap.h.
|
protected |
Definition at line 81 of file blockmem_gridmap.h.
|
protected |
Definition at line 79 of file blockmem_gridmap.h.
|
protected |
Definition at line 85 of file blockmem_gridmap.h.
|
protected |
Definition at line 82 of file blockmem_gridmap.h.
|
protected |
Definition at line 80 of file blockmem_gridmap.h.