Lockless Task Scheduler  v1.0a
A lockless task scheduler
Classes | Public Types | Public Member Functions | List of all members
task_scheduler::stl_allocator< T, TMemInterface > Class Template Reference
Inheritance diagram for task_scheduler::stl_allocator< T, TMemInterface >:
Inheritance graph
[legend]
Collaboration diagram for task_scheduler::stl_allocator< T, TMemInterface >:
Collaboration graph
[legend]

Classes

struct  rebind
 Struct rebind More...
 

Public Types

typedef T value_type
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 stl_allocator ()
 Initializes a new instance of the stl_allocator class. More...
 
 ~stl_allocator ()
 Finalizes an instance of the stl_allocator class. More...
 
 stl_allocator (stl_allocator const &)
 Initializes a new instance of the stl_allocator class. More...
 
template<typename U >
 stl_allocator (stl_allocator< U, TMemInterface > const &)
 Initializes a new instance of the stl_allocator class. More...
 
pointer address (reference r)
 Addresses the specified r. More...
 
const_pointer address (const_reference r)
 Addresses the specified r. More...
 
pointer allocate (size_type _cnt, typename std::allocator< void >::const_pointer=0)
 Allocates the specified count. More...
 
void deallocate (pointer _p, size_type _n)
 Deallocates the specified p. More...
 
size_type max_size () const
 Maximums the size. More...
 
bool operator== (stl_allocator const &) const
 Operator==s the specified . More...
 
bool operator!= (stl_allocator const &_a)
 Operator!=s the specified a. More...
 

Constructor & Destructor Documentation

◆ stl_allocator() [1/3]

template<class T , class TMemInterface >
task_scheduler::stl_allocator< T, TMemInterface >::stl_allocator ( )
inline

Initializes a new instance of the stl_allocator class.

◆ ~stl_allocator()

template<class T , class TMemInterface >
task_scheduler::stl_allocator< T, TMemInterface >::~stl_allocator ( )
inline

Finalizes an instance of the stl_allocator class.

◆ stl_allocator() [2/3]

template<class T , class TMemInterface >
task_scheduler::stl_allocator< T, TMemInterface >::stl_allocator ( stl_allocator< T, TMemInterface > const &  )
inline

Initializes a new instance of the stl_allocator class.

The .

◆ stl_allocator() [3/3]

template<class T , class TMemInterface >
template<typename U >
task_scheduler::stl_allocator< T, TMemInterface >::stl_allocator ( stl_allocator< U, TMemInterface > const &  )
inline

Initializes a new instance of the stl_allocator class.

The .

Member Function Documentation

◆ address() [1/2]

template<class T , class TMemInterface >
pointer task_scheduler::stl_allocator< T, TMemInterface >::address ( reference  r)
inline

Addresses the specified r.

Parameters
rThe r.
Returns
pointer.

◆ address() [2/2]

template<class T , class TMemInterface >
const_pointer task_scheduler::stl_allocator< T, TMemInterface >::address ( const_reference  r)
inline

Addresses the specified r.

Parameters
rThe r.
Returns
const_pointer.

◆ allocate()

template<class T , class TMemInterface >
pointer task_scheduler::stl_allocator< T, TMemInterface >::allocate ( size_type  _cnt,
typename std::allocator< void >::const_pointer  = 0 
)
inline

Allocates the specified count.

Parameters
_cntThe count.

The .

Returns
pointer.

◆ deallocate()

template<class T , class TMemInterface >
void task_scheduler::stl_allocator< T, TMemInterface >::deallocate ( pointer  _p,
size_type  _n 
)
inline

Deallocates the specified p.

Parameters
_pThe p.
_nThe n.

◆ max_size()

template<class T , class TMemInterface >
size_type task_scheduler::stl_allocator< T, TMemInterface >::max_size ( ) const
inline

Maximums the size.

Returns
size_type.

◆ operator!=()

template<class T , class TMemInterface >
bool task_scheduler::stl_allocator< T, TMemInterface >::operator!= ( stl_allocator< T, TMemInterface > const &  _a)
inline

Operator!=s the specified a.

Parameters
_aa.
Returns
bool.

◆ operator==()

template<class T , class TMemInterface >
bool task_scheduler::stl_allocator< T, TMemInterface >::operator== ( stl_allocator< T, TMemInterface > const &  ) const
inline

Operator==s the specified .

The .

Returns
bool.

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