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

#include <vector_array.h>

Inheritance diagram for tervel::containers::wf::vector::VectorArray< T >:
tervel::containers::wf::vector::ArrayArray< T >

Public Member Functions

 VectorArray ()
 
 VectorArray (size_t capacity)
 
virtual ~VectorArray ()
 
virtual std::atomic< T > * get_spot (const size_t raw_pos, const bool no_add=false)=0
 This function returns the address of the specified position. More...
 
virtual bool is_valid (T value)
 
virtual bool is_descriptor (T &expected, std::atomic< T > *spot)
 Overridden by SingleArray model to detect resize. More...
 

Constructor & Destructor Documentation

template<typename T >
tervel::containers::wf::vector::VectorArray< T >::VectorArray ( )
inlineexplicit
template<typename T >
tervel::containers::wf::vector::VectorArray< T >::VectorArray ( size_t  capacity)
inlineexplicit
template<typename T >
virtual tervel::containers::wf::vector::VectorArray< T >::~VectorArray ( )
inlinevirtual

Member Function Documentation

template<typename T >
virtual std::atomic<T>* tervel::containers::wf::vector::VectorArray< T >::get_spot ( const size_t  raw_pos,
const bool  no_add = false 
)
pure virtual

This function returns the address of the specified position.

Parameters
raw_posthe position
no_addif true then it will not increase the vectors size
Returns
the address of the specified position

Implemented in tervel::containers::wf::vector::ArrayArray< T >.

template<typename T >
virtual bool tervel::containers::wf::vector::VectorArray< T >::is_descriptor ( T &  expected,
std::atomic< T > *  spot 
)
inlinevirtual

Overridden by SingleArray model to detect resize.

Parameters
expected[description]
spot[description]
Returns
[description]
template<typename T >
virtual bool tervel::containers::wf::vector::VectorArray< T >::is_valid ( value)
inlinevirtual

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