Wrap a voxel container to add side features.
More...
#include <SidedContainer.hpp>
Inherits T_Container< SidedVoxel< T_Voxel > >.
|
| | SidedContainer ()=default |
| | Default constructor. More...
|
| |
| | SidedContainer (SidedContainer const &other)=default |
| | Default copy constructor. More...
|
| |
| | SidedContainer (SidedContainer &&other)=default |
| | Default move constructor. More...
|
| |
| void | init (VoxelNode< SidedContainer > const &) |
| | Initialization method, do nothing. More...
|
| |
| uint16_t | getNbSide () const |
| | Returns number of sides. More...
|
| |
| template<typename Iterator , typename... Args> |
| bool | addVoxel (Iterator &it, Args &&... args) |
| | Add a voxel, don't update an existing voxel. More...
|
| |
| template<typename Iterator , typename... Args> |
| bool | updateVoxel (Iterator &it, Args &&... args) |
| | Update an existing voxel, don't create a new one. More...
|
| |
| template<typename Iterator , typename... Args> |
| void | putVoxel (Iterator &it, Args &&... args) |
| | Add or update a voxel. More...
|
| |
| template<typename Iterator > |
| bool | removeVoxel (Iterator const &it, VoxelData *voxel=nullptr) |
| | Remove an existing voxel. More...
|
| |
| void | exploreVoxelContainer (std::function< void(SidedContainer const &)> const &predicate) const |
| |
| void | serialize (std::string &str) const |
| | Serialize the structure. More...
|
| |
| size_t | unserialize (char const *str, size_t size) |
| | Unserialize str inside this. More...
|
| |
|
| template<typename Iterator > |
| void | addSide (Iterator const &it) |
| |
| template<typename Iterator > |
| void | removeSide (Iterator const &it) |
| |
| template<typename Iterator > |
| void | updateSide (Iterator const &it) |
| |
template<template< class... > class T_Container, class T_Voxel>
struct voxomap::SidedContainer< T_Container, T_Voxel >
Wrap a voxel container to add side features.
Definition at line 155 of file SidedContainer.hpp.
◆ VoxelData
template<template< class... > class T_Container, class T_Voxel >
◆ VoxelContainer
template<template< class... > class T_Container, class T_Voxel >
◆ iterator
template<template< class... > class T_Container, class T_Voxel >
◆ SidedContainer() [1/3]
template<template< class... > class T_Container, class T_Voxel >
◆ SidedContainer() [2/3]
template<template< class... > class T_Container, class T_Voxel >
Default copy constructor.
◆ SidedContainer() [3/3]
template<template< class... > class T_Container, class T_Voxel >
Default move constructor.
◆ init()
template<template< class... > class T_Container, class T_Voxel >
◆ getNbSide()
template<template< class... > class T_Container, class T_Voxel >
◆ addVoxel()
template<template< class... > class T_Container, class T_Voxel >
template<typename Iterator , typename... Args>
Add a voxel, don't update an existing voxel.
- Parameters
-
| it | Iterator that contains the informations |
| args | Arguments to forward to voxel constructor |
- Returns
- True if success and update it
◆ updateVoxel()
template<template< class... > class T_Container, class T_Voxel >
template<typename Iterator , typename... Args>
Update an existing voxel, don't create a new one.
- Parameters
-
| it | Iterator that contains the informations |
| args | Arguments to forward to voxel constructor |
- Returns
- True if success
◆ putVoxel()
template<template< class... > class T_Container, class T_Voxel >
template<typename Iterator , typename... Args>
Add or update a voxel.
- Parameters
-
| it | Iterator that contains the informations |
| args | Arguments to forward to voxel constructor |
◆ removeVoxel()
template<template< class... > class T_Container, class T_Voxel >
template<typename Iterator >
Remove an existing voxel.
- Parameters
-
| it | Iterator that contains the informations |
| voxel | Pointer on a voxel structure, filled with the data of the removed voxel |
- Returns
- True if success
◆ exploreVoxelContainer()
template<template< class... > class T_Container, class T_Voxel >
◆ serialize()
template<template< class... > class T_Container, class T_Voxel >
Serialize the structure.
- Parameters
-
| str | String use for save the serialization |
◆ unserialize()
template<template< class... > class T_Container, class T_Voxel >
Unserialize str inside this.
- Parameters
-
| str | String that contains data |
| size | Size of the string |
- Returns
- Number of bytes read inside str
◆ addSide()
template<template< class... > class T_Container, class T_Voxel >
template<typename Iterator >
◆ removeSide()
template<template< class... > class T_Container, class T_Voxel >
template<typename Iterator >
◆ updateSide()
template<template< class... > class T_Container, class T_Voxel >
template<typename Iterator >
◆ addSide
template<template< class... > class T_Container, class T_Voxel >
template<class Iterator >
| void addSide |
( |
Iterator const & |
otherIt, |
|
|
SideEnum |
side |
|
) |
| |
|
friend |
◆ removeSide
template<template< class... > class T_Container, class T_Voxel >
template<class Iterator >
| void removeSide |
( |
Iterator const & |
currentIt, |
|
|
Iterator const & |
otherIt, |
|
|
SideEnum |
s1, |
|
|
SideEnum |
s2 |
|
) |
| |
|
friend |
◆ updateSide
template<template< class... > class T_Container, class T_Voxel >
template<class Iterator >
| void updateSide |
( |
Iterator const & |
currentIt, |
|
|
Iterator const & |
otherIt, |
|
|
SideEnum |
s1, |
|
|
SideEnum |
s2 |
|
) |
| |
|
friend |
◆ NB_VOXELS
template<template< class... > class T_Container, class T_Voxel >
◆ COORD_MASK
template<template< class... > class T_Container, class T_Voxel >
◆ VOXEL_MASK
template<template< class... > class T_Container, class T_Voxel >
◆ NB_SUPERCONTAINER
template<template< class... > class T_Container, class T_Voxel >
◆ _nbSides
template<template< class... > class T_Container, class T_Voxel >
The documentation for this struct was generated from the following file: