MADNESS 0.10.1
Public Member Functions | Public Attributes | Private Types | Private Member Functions | List of all members
madness::Hash_private::bin< keyT, valueT > Class Template Reference

#include <worldhashmap.h>

Inheritance diagram for madness::Hash_private::bin< keyT, valueT >:
Inheritance graph
[legend]
Collaboration diagram for madness::Hash_private::bin< keyT, valueT >:
Collaboration graph
[legend]

Public Member Functions

 bin ()
 
 ~bin ()
 
void clear ()
 
bool del (const keyT &key, int lockmode)
 
entryTfind (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
 
entryTp
 

Private Types

typedef std::pair< const keyT, valueTdatumT
 
typedef entry< keyT, valueTentryT
 

Private Member Functions

entryTmatch (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

◆ ~bin()

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

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()

template<class keyT , class valueT >
entryT * madness::Hash_private::bin< keyT, valueT >::find ( const keyT &  key,
const int  lockmode 
) const
inline

◆ 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

Member Data Documentation

◆ ninbin

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

◆ p

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

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