MADNESS
version 0.9
|
#include <worldhashmap.h>
Public Types | |
typedef ConcurrentHashMap < keyT, valueT, hashfunT > | hashT |
typedef std::pair< const keyT, valueT > | datumT |
typedef Hash_private::entry < keyT, valueT > | entryT |
typedef Hash_private::bin < keyT, valueT > | binT |
typedef Hash_private::HashIterator < hashT > | iterator |
typedef Hash_private::HashIterator < const hashT > | const_iterator |
typedef Hash_private::HashAccessor < hashT, entryT::WRITELOCK > | accessor |
typedef Hash_private::HashAccessor < const hashT, entryT::READLOCK > | const_accessor |
Public Member Functions | |
ConcurrentHashMap (int n=1021, const hashfunT &hf=hashfunT()) | |
ConcurrentHashMap (const hashT &h) | |
virtual | ~ConcurrentHashMap () |
hashT & | operator= (const hashT &h) |
std::pair< iterator, bool > | insert (const datumT &datum) |
bool | insert (accessor &result, const datumT &datum) |
Returns true if new pair was inserted; false if key is already in the map and the datum was not inserted. More... | |
bool | insert (const_accessor &result, const datumT &datum) |
Returns true if new pair was inserted; false if key is already in the map and the datum was not inserted. More... | |
bool | insert (accessor &result, const keyT &key) |
Returns true if new pair was inserted; false if key is already in the map. More... | |
bool | insert (const_accessor &result, const keyT &key) |
Returns true if new pair was inserted; false if key is already in the map. More... | |
std::size_t | erase (const keyT &key) |
void | erase (const iterator &it) |
void | erase (accessor &item) |
void | erase (const_accessor &item) |
iterator | find (const keyT &key) |
const_iterator | find (const keyT &key) const |
bool | find (accessor &result, const keyT &key) |
bool | find (const_accessor &result, const keyT &key) const |
void | clear () |
size_t | size () const |
valueT & | operator[] (const keyT &key) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
hashfunT & | get_hash () const |
void | print_stats () const |
Protected Attributes | |
const size_t | nbins |
binT * | bins |
Friends | |
class | Hash_private::HashIterator< hashT > |
class | Hash_private::HashIterator< const hashT > |
typedef Hash_private::HashAccessor<hashT,entryT::WRITELOCK> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::accessor |
typedef Hash_private::bin<keyT,valueT> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::binT |
typedef Hash_private::HashAccessor<const hashT,entryT::READLOCK> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::const_accessor |
typedef Hash_private::HashIterator<const hashT> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::const_iterator |
typedef std::pair<const keyT,valueT> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::datumT |
typedef Hash_private::entry<keyT,valueT> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::entryT |
typedef ConcurrentHashMap<keyT,valueT,hashfunT> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::hashT |
typedef Hash_private::HashIterator<hashT> madness::ConcurrentHashMap< keyT, valueT, hashfunT >::iterator |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
Referenced by madness::WorldContainerImpl< keyT, valueT, hashfunT >::clear(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::clear(), madness::SimpleCache< madness::SeparatedConvolutionData< Q, NDIM >, 2 *NDIM >::operator=(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::operator=(), and madness::Timer::reset().
|
inline |
Referenced by madness::WorldContainerImpl< keyT, valueT, hashfunT >::end(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::erase(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::find(), madness::GaussianConvolution1DCache< Q >::get(), madness::SimpleCache< madness::SeparatedConvolutionData< Q, NDIM >, 2 *NDIM >::getptr(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::operator=(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::probe(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::redistribute_phase1(), and madness::WorldContainerImpl< keyT, valueT, hashfunT >::redistribute_phase2().
|
inline |
|
inline |
Referenced by madness::WorldContainerImpl< keyT, valueT, hashfunT >::erase(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::erase(), madness::detail::DistCache< keyT >::get_cache_value(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::redistribute_phase2(), and madness::detail::DistCache< keyT >::set_cache_value().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by madness::Timer::accumulate(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::find(), madness::GaussianConvolution1DCache< Q >::get(), madness::SimpleCache< madness::SeparatedConvolutionData< Q, NDIM >, 2 *NDIM >::getptr(), madness::Timer::print(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::probe(), and madness::WorldContainerImpl< keyT, valueT, hashfunT >::redistribute_phase2().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by madness::Timer::accumulate(), madness::GaussianConvolution1DCache< Q >::get(), madness::detail::DistCache< keyT >::get_cache_value(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::insert(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::insert(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::insert_acc(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::insert_const_acc(), madness::WorldContainerImpl< keyT, valueT, hashfunT >::itemfun(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::operator=(), madness::ConcurrentHashMap< uniqueidT, void *, uniqueidT >::operator[](), madness::SimpleCache< madness::SeparatedConvolutionData< Q, NDIM >, 2 *NDIM >::set(), and madness::detail::DistCache< keyT >::set_cache_value().
|
inline |
Returns true if new pair was inserted; false if key is already in the map and the datum was not inserted.
|
inline |
Returns true if new pair was inserted; false if key is already in the map and the datum was not inserted.
|
inline |
Returns true if new pair was inserted; false if key is already in the map.
|
inline |
Returns true if new pair was inserted; false if key is already in the map.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
protected |
|
protected |