RTT::os::rt_list< T, Alloc > Struct Template Reference

#include <rt_list.hpp>

List of all members.

Public Member Functions

void rt_grow (std::size_t items)
void rt_grow (std::size_t items)
void rt_shrink (std::size_t items)
void rt_shrink (std::size_t items)
 ~rt_list ()
 ~rt_list ()

Protected Types

typedef std::list< T,
local_allocator< T, Alloc >
>::_Node 
ItemType
typedef std::list< T,
local_allocator< T, Alloc >
>::_Node 
ItemType

Detailed Description

template<class T, class Alloc = std::allocator<T>>
struct RTT::os::rt_list< T, Alloc >

Implements a list with real-time insertion/removal of elements. All std::list<T> functions remain available, but use rt_ functions to grow or shrink a memory pool of list items.

Parameters:
T The value stored in the list.
Alloc The allocator which effectivily ( in the end ) allocates the memory.

Definition at line 56 of file install/include/rtt/os/rt_list.hpp.


Member Typedef Documentation

template<class T , class Alloc = std::allocator<T>>
typedef std::list<T, local_allocator<T,Alloc> >::_Node RTT::os::rt_list< T, Alloc >::ItemType [protected]

Definition at line 60 of file rtt/os/rt_list.hpp.

template<class T , class Alloc = std::allocator<T>>
typedef std::list<T, local_allocator<T,Alloc> >::_Node RTT::os::rt_list< T, Alloc >::ItemType [protected]

Definition at line 60 of file install/include/rtt/os/rt_list.hpp.


Constructor & Destructor Documentation

template<class T , class Alloc = std::allocator<T>>
RTT::os::rt_list< T, Alloc >::~rt_list (  )  [inline]

Definition at line 62 of file install/include/rtt/os/rt_list.hpp.

template<class T , class Alloc = std::allocator<T>>
RTT::os::rt_list< T, Alloc >::~rt_list (  )  [inline]

Definition at line 62 of file rtt/os/rt_list.hpp.


Member Function Documentation

template<class T , class Alloc = std::allocator<T>>
void RTT::os::rt_list< T, Alloc >::rt_grow ( std::size_t  items  )  [inline]

Grow memory pool for list elements.

Exceptions:
bad_alloc if no more memory available.

Definition at line 71 of file rtt/os/rt_list.hpp.

template<class T , class Alloc = std::allocator<T>>
void RTT::os::rt_list< T, Alloc >::rt_grow ( std::size_t  items  )  [inline]

Grow memory pool for list elements.

Exceptions:
bad_alloc if no more memory available.

Definition at line 71 of file install/include/rtt/os/rt_list.hpp.

template<class T , class Alloc = std::allocator<T>>
void RTT::os::rt_list< T, Alloc >::rt_shrink ( std::size_t  items  )  [inline]

Shrink memory pool.

Definition at line 80 of file rtt/os/rt_list.hpp.

template<class T , class Alloc = std::allocator<T>>
void RTT::os::rt_list< T, Alloc >::rt_shrink ( std::size_t  items  )  [inline]

Shrink memory pool.

Definition at line 80 of file install/include/rtt/os/rt_list.hpp.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:50:10 2013