#include <SafetyProfileSequence.h>
Public Member Functions | |
seq_size_type | maximum () const |
seq_size_type | max_size () const |
void | replace (seq_size_type maximum, seq_size_type length, T *data, seq_flag_type release=false) |
Static Public Member Functions | |
static T * | allocbuf (seq_size_type n) |
Protected Member Functions | |
AllocPolicy (seq_size_type n=0) | |
T * | allocate (seq_size_type request=0) const |
void | swap (AllocPolicy &rhs) throw () |
Protected Attributes | |
seq_size_type | maximum_ |
Definition at line 68 of file SafetyProfileSequence.h.
OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::AllocPolicy | ( | seq_size_type | n = 0 |
) | [inline, explicit, protected] |
T* OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::allocate | ( | seq_size_type | request = 0 |
) | const [inline, protected] |
T * OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::allocbuf | ( | seq_size_type | n | ) | [inline, static] |
Definition at line 343 of file SafetyProfileSequence.h.
00344 { 00345 const size_t bytes = (n + Sequence::ElementPolicy::extra) * sizeof(T); 00346 void* const raw = ACE_Allocator::instance()->malloc(bytes); 00347 T* const mem = static_cast<T*>(raw); 00348 Sequence::ElementPolicy::construct(mem, n, true); 00349 return mem + Sequence::ElementPolicy::extra; 00350 }
seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::max_size | ( | ) | const [inline] |
Definition at line 71 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::Unbounded::Bounds.
00071 { return Unbounded::Bounds; }
seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::maximum | ( | ) | const [inline] |
void OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::replace | ( | seq_size_type | maximum, | |
seq_size_type | length, | |||
T * | data, | |||
seq_flag_type | release = false | |||
) | [inline] |
Definition at line 72 of file SafetyProfileSequence.h.
00074 { 00075 static_cast<Sequence&>(*this).replace_i(maximum, length, data, release); 00076 }
void OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::swap | ( | AllocPolicy< T, Sequence, Unbounded > & | rhs | ) | throw () [inline, protected] |
seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::maximum_ [protected] |
Definition at line 84 of file SafetyProfileSequence.h.