#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 69 of file SafetyProfileSequence.h.
| OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::AllocPolicy | ( | seq_size_type | n = 0 |
) | [inline, explicit, protected] |
Definition at line 79 of file SafetyProfileSequence.h.
00079 : maximum_(n) {}
| T* OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::allocate | ( | seq_size_type | request = 0 |
) | const [inline, protected] |
Definition at line 80 of file SafetyProfileSequence.h.
| T * OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::allocbuf | ( | seq_size_type | n | ) | [inline, static] |
Definition at line 344 of file SafetyProfileSequence.h.
References ACE_Allocator::instance(), and ACE_Allocator::malloc().
00345 { 00346 const size_t bytes = (n + Sequence::ElementPolicy::extra) * sizeof(T); 00347 void* const raw = ACE_Allocator::instance()->malloc(bytes); 00348 T* const mem = static_cast<T*>(raw); 00349 Sequence::ElementPolicy::construct(mem, n, true); 00350 return mem + Sequence::ElementPolicy::extra; 00351 }

| seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::max_size | ( | ) | const [inline] |
Definition at line 72 of file SafetyProfileSequence.h.
References OpenDDS::SafetyProfile::Unbounded::Bounds.
00072 { return Unbounded::Bounds; }
| seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::maximum | ( | ) | const [inline] |
Definition at line 71 of file SafetyProfileSequence.h.
00071 { return maximum_; }
| 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 73 of file SafetyProfileSequence.h.
References release().

| void OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::swap | ( | AllocPolicy< T, Sequence, Unbounded > & | rhs | ) | throw () [inline, protected] |
Definition at line 84 of file SafetyProfileSequence.h.
References OpenDDS::DCPS::swap().

seq_size_type OpenDDS::SafetyProfile::AllocPolicy< T, Sequence, Unbounded >::maximum_ [protected] |
Definition at line 85 of file SafetyProfileSequence.h.
1.6.1