DGtal
0.6.devel
|
Public Types | |
typedef Value | ValueType |
Public Member Functions | |
DynArrayXYOfMap (unsigned int _L, unsigned int _X, unsigned int _Y) | |
~DynArrayXYOfMap () | |
size_t | offset (unsigned int x, unsigned int y) const |
void | clear () |
const Value & | value (unsigned int l, unsigned int x, unsigned int y) |
unsigned int | erase (unsigned int l, unsigned int x, unsigned int y) |
void | setValue (const Value &val, unsigned int l, unsigned int x, unsigned int y) |
void | setValueNoNewLabel (const Value &val, unsigned int l, unsigned int x, unsigned int y) |
bool | hasLabel (unsigned int l, unsigned int x, unsigned int y) const |
void | getLabels (std::vector< unsigned int > &labels, unsigned int x, unsigned int y) const |
unsigned int | nbLabels (unsigned int x, unsigned int y) const |
void | display (ostream &out, unsigned int l, unsigned int x, unsigned int y) |
unsigned long long | area () const |
Data Fields | |
const unsigned int | L |
const unsigned int | X |
const unsigned int | Y |
Private Types | |
typedef std::map< unsigned int, Value > | MyMap |
typedef MyMap::const_iterator | ConstIterator |
Private Attributes | |
MyMap * | _data |
Array[X][Y] of map<L,Value> Intermediate approach. Slower (between 30% and 40%) than ArrayXYOfLabelledMap and takes 50% to 100% twice as much place.
Note that 4000*4000*16 takes 861Mb. Note that 2000*2000*64 takes 218Mb.
Definition at line 186 of file testMultiMap-benchmark.cpp.
|
private |
Definition at line 188 of file testMultiMap-benchmark.cpp.
|
private |
Definition at line 187 of file testMultiMap-benchmark.cpp.
typedef Value DynArrayXYOfMap< Value >::ValueType |
Definition at line 191 of file testMultiMap-benchmark.cpp.
|
inline |
|
inline |
Definition at line 207 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 272 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 218 of file testMultiMap-benchmark.cpp.
References DynArrayXYOfMap< Value >::clear().
Referenced by DynArrayXYOfMap< Value >::clear().
|
inline |
Definition at line 267 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 231 of file testMultiMap-benchmark.cpp.
|
inline |
|
inline |
Definition at line 247 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 262 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 212 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 237 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 242 of file testMultiMap-benchmark.cpp.
|
inline |
Definition at line 226 of file testMultiMap-benchmark.cpp.
|
private |
Definition at line 197 of file testMultiMap-benchmark.cpp.
const unsigned int DynArrayXYOfMap< Value >::L |
Definition at line 192 of file testMultiMap-benchmark.cpp.
const unsigned int DynArrayXYOfMap< Value >::X |
Definition at line 193 of file testMultiMap-benchmark.cpp.
const unsigned int DynArrayXYOfMap< Value >::Y |
Definition at line 194 of file testMultiMap-benchmark.cpp.