My Project
|
#include <vspace.h>
Data Structures | |
struct | Node |
Public Member Functions | |
VMap (size_t size=1024) | |
~VMap () | |
bool | add (VRef< K > key, VRef< V > value, VRef< K > &oldkey, VRef< V > &oldvalue, bool replace=true) |
bool | add (VRef< K > key, VRef< V > value, bool replace=true) |
bool | remove (VRef< K > key, VRef< K > &oldkey, VRef< V > &oldvalue) |
bool | remove (VRef< K > key) |
bool | find (VRef< K > key, VRef< V > &value) |
VRef< V > | find (VRef< K > key) |
Private Types | |
typedef Spec::Key | K |
typedef Spec::Value | V |
Private Member Functions | |
void | _lock_bucket (size_t b) |
void | _unlock_bucket (size_t b) |
Private Attributes | |
VRef< VRef< Node > > | _buckets |
VRef< internals::FastLock > | _locks |
size_t | _nbuckets |
struct vspace::VMap::Node |
|
private |
|
private |
vspace::VMap< Spec >::VMap | ( | size_t | size = 1024 | ) |
Definition at line 2163 of file vspace.h.
vspace::VMap< Spec >::~VMap |
|
inlineprivate |
|
inlineprivate |
|
inline |
bool vspace::VMap< Spec >::add | ( | VRef< K > | key, |
VRef< V > | value, | ||
VRef< K > & | oldkey, | ||
VRef< V > & | oldvalue, | ||
bool | replace = true |
||
) |
Definition at line 2195 of file vspace.h.
|
inline |
bool vspace::VMap< Spec >::find | ( | VRef< K > | key, |
VRef< V > & | value | ||
) |
Definition at line 2268 of file vspace.h.
|
inline |
Definition at line 2147 of file vspace.h.
bool vspace::VMap< Spec >::remove | ( | VRef< K > | key, |
VRef< K > & | oldkey, | ||
VRef< V > & | oldvalue | ||
) |
Definition at line 2239 of file vspace.h.
|
private |
|
private |
|
private |