OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > > Struct Template Reference

#include <SafetyProfileSequence.h>

List of all members.

Public Member Functions

seq_size_type maximum () const
seq_size_type max_size () const
void replace (seq_size_type length, T *data, seq_flag_type release=false)

Static Public Member Functions

static T * allocbuf ()

Protected Member Functions

 AllocPolicy (seq_size_type=N)
T * allocate (seq_size_type=N) const
void swap (AllocPolicy &) throw ()


Detailed Description

template<typename T, typename Sequence, seq_size_type N>
struct OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >

Definition at line 53 of file SafetyProfileSequence.h.


Constructor & Destructor Documentation

template<typename T, typename Sequence, seq_size_type N>
OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >::AllocPolicy ( seq_size_type  = N  )  [inline, explicit, protected]

Definition at line 62 of file SafetyProfileSequence.h.

00062 {}


Member Function Documentation

template<typename T, typename Sequence, seq_size_type N>
T* OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >::allocate ( seq_size_type  = N  )  const [inline, protected]

Definition at line 63 of file SafetyProfileSequence.h.

00063 { return allocbuf(); }

template<typename T, typename Sequence, seq_size_type N>
T * OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >::allocbuf (  )  [inline, static]

Definition at line 333 of file SafetyProfileSequence.h.

00334   {
00335     void* const raw =
00336       ACE_Allocator::instance()->malloc(N * sizeof(T));
00337     T* const mem = static_cast<T*>(raw);
00338     Sequence::ElementPolicy::construct(mem, N, false);
00339     return mem;
00340   }

template<typename T, typename Sequence, seq_size_type N>
seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >::max_size (  )  const [inline]

Definition at line 56 of file SafetyProfileSequence.h.

00056 { return N; }

template<typename T, typename Sequence, seq_size_type N>
seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >::maximum (  )  const [inline]

Definition at line 55 of file SafetyProfileSequence.h.

00055 { return N; }

template<typename T, typename Sequence, seq_size_type N>
void OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >::replace ( seq_size_type  length,
T *  data,
seq_flag_type  release = false 
) [inline]

Definition at line 57 of file SafetyProfileSequence.h.

00058     {
00059       static_cast<Sequence&>(*this).replace_i(N, length, data, release);
00060     }

template<typename T, typename Sequence, seq_size_type N>
void OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Bounded< N > >::swap ( AllocPolicy< T, Sequence, Bounded< N > > &   )  throw () [inline, protected]

Definition at line 64 of file SafetyProfileSequence.h.

00064 {}


The documentation for this struct was generated from the following file:
Generated on Fri Feb 12 20:06:51 2016 for OpenDDS by  doxygen 1.4.7