UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
ufo::LabelMap< Derived, N > Class Template Reference

Public Member Functions

label_t label (Code code) const
 
label_t label (Key key) const
 
constexpr label_t label (Node node) const
 
label_t label (Point coord, depth_t depth=0) const
 

Protected Member Functions

 LabelMap (LabelMap &&other)=default
 
 LabelMap (LabelMap const &other)=default
 
template<class Derived2 >
 LabelMap (LabelMap< Derived2 > const &other)
 
void clearImpl ()
 
void clearImpl (index_t index)
 
constexpr Derived & derived ()
 
constexpr Derived const & derived () const
 
void fill (index_t index, index_t parent_index, index_t parent_offset)
 
void initRoot ()
 
constexpr bool isCollapsible (index_t index) const
 
LabelMapoperator= (LabelMap &&rhs)=default
 
LabelMapoperator= (LabelMap const &rhs)=default
 
template<class Derived2 >
LabelMapoperator= (LabelMap< Derived2 > const &rhs)
 
void preparePrune (Index node)
 
template<class OutputIt >
void readNodes (ReadBuffer &in, OutputIt first, OutputIt last)
 
template<class InputIt >
std::size_t serializedSize (InputIt first, InputIt last) const
 
void swap (LabelMap &other) noexcept
 
void updateBlock (pos_t block)
 
void updateNode (index_t index, index_t offset, index_t children_index)
 
template<class BlockRange >
void writeBlocks (WriteBuffer &out, BlockRange const &blocks) const
 

Static Protected Member Functions

static constexpr bool canReadData (MapType mt) noexcept
 
static constexpr MapType mapType () noexcept
 

Protected Attributes

std::deque< LabelSetlabel_
 

Detailed Description

template<class Derived, std::size_t N>
class ufo::LabelMap< Derived, N >

Definition at line 67 of file labels_map.hpp.

Constructor & Destructor Documentation

◆ LabelMap()

template<class Derived , std::size_t N>
template<class Derived2 >
ufo::LabelMap< Derived, N >::LabelMap ( LabelMap< Derived2 > const &  other)
inlineprotected

Definition at line 113 of file labels_map.hpp.

Member Function Documentation

◆ canReadData()

template<class Derived , std::size_t N>
static constexpr bool ufo::LabelMap< Derived, N >::canReadData ( MapType  mt)
inlinestaticconstexprprotectednoexcept

Definition at line 214 of file labels_map.hpp.

◆ clearImpl() [1/2]

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::clearImpl ( )
inlineprotected

Definition at line 168 of file labels_map.hpp.

◆ clearImpl() [2/2]

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::clearImpl ( index_t  index)
inlineprotected

Definition at line 170 of file labels_map.hpp.

◆ derived() [1/2]

template<class Derived , std::size_t N>
constexpr Derived & ufo::LabelMap< Derived, N >::derived ( )
inlineconstexprprotected

Definition at line 142 of file labels_map.hpp.

◆ derived() [2/2]

template<class Derived , std::size_t N>
constexpr Derived const & ufo::LabelMap< Derived, N >::derived ( ) const
inlineconstexprprotected

Definition at line 144 of file labels_map.hpp.

◆ fill()

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::fill ( index_t  index,
index_t  parent_index,
index_t  parent_offset 
)
inlineprotected

Definition at line 159 of file labels_map.hpp.

◆ initRoot()

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::initRoot ( )
inlineprotected

Definition at line 153 of file labels_map.hpp.

◆ isCollapsible()

template<class Derived , std::size_t N>
constexpr bool ufo::LabelMap< Derived, N >::isCollapsible ( index_t  index) const
inlineconstexprprotected

Definition at line 200 of file labels_map.hpp.

◆ label() [1/4]

template<class Derived , std::size_t N>
label_t ufo::LabelMap< Derived, N >::label ( Code  code) const
inline

Definition at line 80 of file labels_map.hpp.

◆ label() [2/4]

template<class Derived , std::size_t N>
label_t ufo::LabelMap< Derived, N >::label ( Key  key) const
inline

Definition at line 86 of file labels_map.hpp.

◆ label() [3/4]

template<class Derived , std::size_t N>
constexpr label_t ufo::LabelMap< Derived, N >::label ( Node  node) const
inlineconstexpr

Definition at line 74 of file labels_map.hpp.

◆ label() [4/4]

template<class Derived , std::size_t N>
label_t ufo::LabelMap< Derived, N >::label ( Point  coord,
depth_t  depth = 0 
) const
inline

Definition at line 88 of file labels_map.hpp.

◆ mapType()

template<class Derived , std::size_t N>
static constexpr MapType ufo::LabelMap< Derived, N >::mapType ( )
inlinestaticconstexprprotectednoexcept

Definition at line 212 of file labels_map.hpp.

◆ operator=()

template<class Derived , std::size_t N>
template<class Derived2 >
LabelMap & ufo::LabelMap< Derived, N >::operator= ( LabelMap< Derived2 > const &  rhs)
inlineprotected

Definition at line 126 of file labels_map.hpp.

◆ preparePrune()

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::preparePrune ( Index  node)
inlineprotected

Definition at line 206 of file labels_map.hpp.

◆ readNodes()

template<class Derived , std::size_t N>
template<class OutputIt >
void ufo::LabelMap< Derived, N >::readNodes ( ReadBuffer in,
OutputIt  first,
OutputIt  last 
)
inlineprotected

Definition at line 226 of file labels_map.hpp.

◆ serializedSize()

template<class Derived , std::size_t N>
template<class InputIt >
std::size_t ufo::LabelMap< Derived, N >::serializedSize ( InputIt  first,
InputIt  last 
) const
inlineprotected

Definition at line 220 of file labels_map.hpp.

◆ swap()

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::swap ( LabelMap< Derived, N > &  other)
inlineprotectednoexcept

Definition at line 136 of file labels_map.hpp.

◆ updateBlock()

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::updateBlock ( pos_t  block)
inlineprotected

Definition at line 176 of file labels_map.hpp.

◆ updateNode()

template<class Derived , std::size_t N>
void ufo::LabelMap< Derived, N >::updateNode ( index_t  index,
index_t  offset,
index_t  children_index 
)
inlineprotected

Definition at line 181 of file labels_map.hpp.

◆ writeBlocks()

template<class Derived , std::size_t N>
template<class BlockRange >
void ufo::LabelMap< Derived, N >::writeBlocks ( WriteBuffer out,
BlockRange const &  blocks 
) const
inlineprotected

Definition at line 244 of file labels_map.hpp.

Friends And Related Symbol Documentation

◆ LabelMap

template<class Derived , std::size_t N>
template<class Derived2 , std::size_t N2>
friend class LabelMap
friend

Definition at line 256 of file labels_map.hpp.

Member Data Documentation

◆ label_

template<class Derived , std::size_t N>
std::deque<LabelSet> ufo::LabelMap< Derived, N >::label_
protected

Definition at line 253 of file labels_map.hpp.


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