MADNESS 0.10.1
madness::Hash_private::bin< keyT, valueT > Class Template Reference

#include <worldhashmap.h>

Inheritance diagram for madness::Hash_private::bin< keyT, valueT >:
Collaboration diagram for madness::Hash_private::bin< keyT, valueT >:

Public Member Functions

 bin ()
 ~bin ()
void clear ()
bool del (const keyT &key, int lockmode)
entryT * find (const keyT &key, const int lockmode) const
std::pair< entryT *, bool > insert (const datumT &datum, int lockmode)
std::size_t size () const

Public Attributes

int ninbin
entryT * p

Private Types

typedef std::pair< const keyT, valueT > datumT
typedef entry< keyT, valueT > entryT

Private Member Functions

entryT * match (const keyT &key) const
Private Member Functions inherited from madness::Spinlock
 Spinlock (int junk=0)
 Make and initialize a spinlock ... initial state is unlocked.
virtual ~Spinlock ()
void lock () const
 Acquire the spinlock waiting if necessary.
bool try_lock () const
 Try to acquire the spinlock ... return true on success, false on failure.
void unlock () const
 Free a spinlock owned by this thread.

Member Typedef Documentation

◆ datumT

template<class keyT, class valueT>
typedef std::pair<const keyT, valueT> madness::Hash_private::bin< keyT, valueT >::datumT
private

◆ entryT

template<class keyT, class valueT>
typedef entry<keyT,valueT> madness::Hash_private::bin< keyT, valueT >::entryT
private

Constructor & Destructor Documentation

◆ bin()

template<class keyT, class valueT>
madness::Hash_private::bin< keyT, valueT >::bin ( )
inline

References ninbin, and p.

◆ ~bin()

template<class keyT, class valueT>
madness::Hash_private::bin< keyT, valueT >::~bin ( )
inline

References clear().

Member Function Documentation

◆ clear()

template<class keyT, class valueT>
void madness::Hash_private::bin< keyT, valueT >::clear ( )
inline

◆ del()

template<class keyT, class valueT>
bool madness::Hash_private::bin< keyT, valueT >::del ( const keyT & key,
int lockmode )
inline

◆ find()

◆ insert()

template<class keyT, class valueT>
std::pair< entryT *, bool > madness::Hash_private::bin< keyT, valueT >::insert ( const datumT & datum,
int lockmode )
inline

◆ match()

template<class keyT, class valueT>
entryT * madness::Hash_private::bin< keyT, valueT >::match ( const keyT & key) const
inlineprivate

◆ size()

template<class keyT, class valueT>
std::size_t madness::Hash_private::bin< keyT, valueT >::size ( ) const
inline

References ninbin.

Member Data Documentation

◆ ninbin

template<class keyT, class valueT>
int madness::Hash_private::bin< keyT, valueT >::ninbin

Referenced by bin(), clear(), del(), insert(), and size().

◆ p

template<class keyT, class valueT>
entryT* madness::Hash_private::bin< keyT, valueT >::p

Referenced by bin(), clear(), del(), insert(), and match().


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