Tervel  1.0.0
A collection of wait-free containers and algorithms.
Public Member Functions | Private Attributes | List of all members
tervel::containers::wf::vector::PopWRAOpHelper< T > Class Template Reference

#include <popbackwra_op.h>

Inheritance diagram for tervel::containers::wf::vector::PopWRAOpHelper< T >:
tervel::util::Descriptor

Public Member Functions

 PopWRAOpHelper (PopWRAOp< T > *op, T val)
 
 ~PopWRAOpHelper ()
 
void * complete (void *value, std::atomic< void * > *address)
 This method is implemented by each sub class and must guarantee that upon return that the descriptor no longer exists at the address it was placed. More...
 
bool associate ()
 
bool result (T &val)
 
bool result ()
 
- Public Member Functions inherited from tervel::util::Descriptor
 Descriptor ()
 
virtual ~Descriptor ()
 
virtual void * get_logical_value ()=0
 This method is implemented by each sub class. More...
 
virtual bool on_watch (std::atomic< void * > *, void *)
 This method is optional to implement for each sub class. More...
 
virtual void on_unwatch ()
 This method must be implemented if on_watch is implemented, and is optional otherwise. More...
 
virtual bool on_is_watched ()
 This method is optional to implement for each sub class. More...
 

Private Attributes

val_
 
PopWRAOp< T > * op_ {nullptr}
 

Constructor & Destructor Documentation

template<typename T>
tervel::containers::wf::vector::PopWRAOpHelper< T >::PopWRAOpHelper ( PopWRAOp< T > *  op,
val 
)
inline
template<typename T>
tervel::containers::wf::vector::PopWRAOpHelper< T >::~PopWRAOpHelper ( )
inline

Member Function Documentation

template<typename T>
bool tervel::containers::wf::vector::PopWRAOpHelper< T >::associate ( )
inline
template<typename T>
void* tervel::containers::wf::vector::PopWRAOpHelper< T >::complete ( void *  current,
std::atomic< void * > *  address 
)
inlinevirtual

This method is implemented by each sub class and must guarantee that upon return that the descriptor no longer exists at the address it was placed.

Parameters
currentthe reference to this object as it is at the address,
addressthe location this object was read from

Implements tervel::util::Descriptor.

template<typename T>
bool tervel::containers::wf::vector::PopWRAOpHelper< T >::result ( T &  val)
inline
template<typename T>
bool tervel::containers::wf::vector::PopWRAOpHelper< T >::result ( )
inline

Member Data Documentation

template<typename T>
PopWRAOp<T>* tervel::containers::wf::vector::PopWRAOpHelper< T >::op_ {nullptr}
private
template<typename T>
T tervel::containers::wf::vector::PopWRAOpHelper< T >::val_
private

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