amino::SetNode< KeyType > Class Template Reference

The node type of the lock-free set, which stores the element and its hash key in it. More...

#include <lockfree_set.h>

List of all members.

Public Member Functions

 SetNode (const KeyType &elem, unsigned int k)
 Constructor. construct a SetNode.
 SetNode (unsigned int k)
 Constructor. construct a SetNode only with the hash key. The explicit keyword implies it is forbidden converting a int object to a SetNode object.
 SetNode ()
const SetNodeoperator= (const SetNode &node)
bool operator== (const SetNode< KeyType > &rightHand)
bool operator>= (const SetNode< KeyType > &rightHand)

Public Attributes

KeyType element
unsigned int key


Detailed Description

template<typename KeyType>
class amino::SetNode< KeyType >

The node type of the lock-free set, which stores the element and its hash key in it.

Author:
Hui Rui
Template Parameters:
KeyType Type of element stored in the set

Constructor & Destructor Documentation

template<typename KeyType>
amino::SetNode< KeyType >::SetNode ( const KeyType &  elem,
unsigned int  k 
) [inline]

Constructor. construct a SetNode.

template<typename KeyType>
amino::SetNode< KeyType >::SetNode ( unsigned int  k  )  [inline, explicit]

Constructor. construct a SetNode only with the hash key. The explicit keyword implies it is forbidden converting a int object to a SetNode object.

template<typename KeyType>
amino::SetNode< KeyType >::SetNode (  )  [inline]


Member Function Documentation

template<typename KeyType>
const SetNode& amino::SetNode< KeyType >::operator= ( const SetNode< KeyType > &  node  )  [inline]

template<typename KeyType>
bool amino::SetNode< KeyType >::operator== ( const SetNode< KeyType > &  rightHand  )  [inline]

template<typename KeyType>
bool amino::SetNode< KeyType >::operator>= ( const SetNode< KeyType > &  rightHand  )  [inline]


Member Data Documentation

template<typename KeyType>
KeyType amino::SetNode< KeyType >::element

template<typename KeyType>
unsigned int amino::SetNode< KeyType >::key


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

Generated on Tue Dec 9 13:39:39 2008 for Amino by  doxygen 1.5.6