DGtal 1.3.0
|
#include <DGtal/kernel/UnorderedSetByBlock.h>
Public Types | |
typedef Splitter< TElement, TWord > | Self |
typedef TElement | Element |
typedef TWord | Word |
typedef Element::Coordinate | Coordinate |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CBoundedNumber< Word >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CUnsignedNumber< Word >)) | |
Static Public Member Functions | |
static std::pair< Element, Coordinate > | split (Element e) |
static Element | join (Element e, Coordinate x) |
static Element | join (const std::pair< Element, Coordinate > &p) |
Splits an integral-array element into an integral-array element and a 32 or 64 bit integer (depending on TWord). The expected behaviour is for an element e of dimension 3 (and 32 bits word):
TElement | the type of array-like element. |
TWord | the type for holding blocks (uint64_t or uint32_t generally), a model of concepts::CIntegralNumber and concepts::CUnsignedNumber. |
Definition at line 67 of file UnorderedSetByBlock.h.
typedef Element::Coordinate DGtal::Splitter< TElement, TWord >::Coordinate |
Definition at line 71 of file UnorderedSetByBlock.h.
typedef TElement DGtal::Splitter< TElement, TWord >::Element |
Definition at line 69 of file UnorderedSetByBlock.h.
typedef Splitter< TElement,TWord > DGtal::Splitter< TElement, TWord >::Self |
Definition at line 68 of file UnorderedSetByBlock.h.
typedef TWord DGtal::Splitter< TElement, TWord >::Word |
Definition at line 70 of file UnorderedSetByBlock.h.
DGtal::Splitter< TElement, TWord >::BOOST_CONCEPT_ASSERT | ( | (concepts::CBoundedNumber< Word >) | ) |
DGtal::Splitter< TElement, TWord >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnsignedNumber< Word >) | ) |
|
inlinestatic |
Rejoins a splitted element (see split).
p | a pair grouping the block coordinate and the bit coordinate of the element. |
Definition at line 115 of file UnorderedSetByBlock.h.
|
inlinestatic |
Rejoins a splitted element (see split).
e | the block coordinate of the element. |
x | the bit coordinate of the element. |
Definition at line 101 of file UnorderedSetByBlock.h.
|
inlinestatic |
Splits an element e into a pair grouping its block coordinates and its bit within this block.
e | any lattice point |
Definition at line 85 of file UnorderedSetByBlock.h.