Honeycomb  0.1
Component-Model Framework
Public Member Functions | Public Attributes | List of all members
honey::MemPool::Bucket::TaggedHandle Struct Reference

Holds block handle and tag to prevent lock-free ABA issues. More...

#include <Pool.h>

Inheritance diagram for honey::MemPool::Bucket::TaggedHandle:
Inheritance graph
[legend]
Collaboration diagram for honey::MemPool::Bucket::TaggedHandle:
Collaboration graph
[legend]

Public Member Functions

 TaggedHandle ()
 
 TaggedHandle (Handle handle, Int tag)
 
TaggedHandleoperator= (Handle rhs)
 
bool operator== (TaggedHandle rhs) const
 
bool operator!= (TaggedHandle rhs) const
 
const Handlehandle () const
 
Handlehandle ()
 
Int nextTag () const
 
- Public Member Functions inherited from honey::MemPool::Bucket::Handle
 Handle ()
 
 Handle (nullptr_t)
 
 Handle (uint8 chunk, Int block)
 
bool operator== (Handle rhs) const
 
bool operator!= (Handle rhs) const
 
 operator bool () const
 
uint8 chunk () const
 
Int block () const
 

Public Attributes

Int tag
 
- Public Attributes inherited from honey::MemPool::Bucket::Handle
Int index
 

Additional Inherited Members

- Public Types inherited from honey::MemPool::Bucket::Handle
typedef mt::uintBySize< sizeof(atomic::SwapMaxType)/2 >::type Int
 

Detailed Description

Holds block handle and tag to prevent lock-free ABA issues.

Constructor & Destructor Documentation

honey::MemPool::Bucket::TaggedHandle::TaggedHandle ( )
inline
honey::MemPool::Bucket::TaggedHandle::TaggedHandle ( Handle  handle,
Int  tag 
)
inline

Member Function Documentation

const Handle& honey::MemPool::Bucket::TaggedHandle::handle ( ) const
inline
Handle& honey::MemPool::Bucket::TaggedHandle::handle ( )
inline
Int honey::MemPool::Bucket::TaggedHandle::nextTag ( ) const
inline
bool honey::MemPool::Bucket::TaggedHandle::operator!= ( TaggedHandle  rhs) const
inline
TaggedHandle& honey::MemPool::Bucket::TaggedHandle::operator= ( Handle  rhs)
inline
bool honey::MemPool::Bucket::TaggedHandle::operator== ( TaggedHandle  rhs) const
inline

Member Data Documentation

Int honey::MemPool::Bucket::TaggedHandle::tag

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