OpenDDS::DCPS::DurabilityQueue< T > Class Template Reference

Queue class that provides a means to reset the underlying ACE_Allocator. More...

#include <DurabilityQueue.h>

Collaboration diagram for OpenDDS::DCPS::DurabilityQueue< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< std::string > fs_path_t

Public Member Functions

 DurabilityQueue (ACE_Allocator *allocator)
 DurabilityQueue (DurabilityQueue< T > const &rhs)
 ~DurabilityQueue ()
void operator= (DurabilityQueue< T > const &rhs)
void set_allocator (ACE_Allocator *allocator)
 Reset allocator.
void swap (DurabilityQueue< T > &rhs)

Public Attributes

fs_path_t fs_path_

Detailed Description

template<typename T>
class OpenDDS::DCPS::DurabilityQueue< T >

Queue class that provides a means to reset the underlying ACE_Allocator.

This class only exists to provide a means to reset the allocator used by the ACE_Unbounded_Queue base class. It has a specific use case, namely to correctly support instances created by a persistent allocator. The allocator address may change between process runs, meaning the allocator address stored in the persistent ACE_Unbounded_Queue instance will be invalid. Use the set_allocator() method to reset the allocator address before performing any operations that will require use of the allocator (e.g. enqueuing new items).


Member Typedef Documentation

template<typename T>
typedef std::vector<std::string> OpenDDS::DCPS::DurabilityQueue< T >::fs_path_t


Constructor & Destructor Documentation

template<typename T>
OpenDDS::DCPS::DurabilityQueue< T >::DurabilityQueue ( ACE_Allocator allocator  )  [inline]

template<typename T>
OpenDDS::DCPS::DurabilityQueue< T >::DurabilityQueue ( DurabilityQueue< T > const &  rhs  )  [inline]

template<typename T>
OpenDDS::DCPS::DurabilityQueue< T >::~DurabilityQueue (  )  [inline]


Member Function Documentation

template<typename T>
void OpenDDS::DCPS::DurabilityQueue< T >::operator= ( DurabilityQueue< T > const &  rhs  )  [inline]

template<typename T>
void OpenDDS::DCPS::DurabilityQueue< T >::set_allocator ( ACE_Allocator allocator  )  [inline]

Reset allocator.

template<typename T>
void OpenDDS::DCPS::DurabilityQueue< T >::swap ( DurabilityQueue< T > &  rhs  )  [inline]


Member Data Documentation

template<typename T>
fs_path_t OpenDDS::DCPS::DurabilityQueue< T >::fs_path_


The documentation for this class was generated from the following file:
Generated on Wed Nov 16 15:28:44 2011 for OpenDDS by  doxygen 1.4.7