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

Implements a list with real-time insertion/removal of elements. More...

#include <rtt/os/rt_list.hpp>

Inherits std::list< T, local_allocator< T, Alloc > >.

List of all members.

Public Member Functions

void rt_grow (std::size_t items)
 Grow memory pool for list elements.
void rt_shrink (std::size_t items)
 Shrink memory pool.

Protected Types

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 17 of file 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 19 of file rt_list.hpp.

References RTT::OS::rt_list< T, Alloc >::rt_shrink().


The documentation for this struct was generated from the following file:
Generated on Thu Dec 23 13:22:47 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3