TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy > Struct Template Reference

#include <Bounded_Reference_Allocation_Traits_T.h>

List of all members.

Public Types

typedef T value_type
typedef ref_traits reference_traits

Static Public Member Functions

static CORBA::ULong default_maximum ()
static value_type * default_buffer_allocation ()
static value_type * allocbuf (CORBA::ULong)
static value_type * allocbuf_noinit (CORBA::ULong)
static void freebuf (value_type *buffer)
static CORBA::ULong maximum ()

Detailed Description

template<typename T, class ref_traits, CORBA::ULong MAX, bool dummy>
struct TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >

Definition at line 24 of file Bounded_Reference_Allocation_Traits_T.h.


Member Typedef Documentation

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
typedef ref_traits TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::reference_traits

Definition at line 27 of file Bounded_Reference_Allocation_Traits_T.h.

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
typedef T TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::value_type

Definition at line 26 of file Bounded_Reference_Allocation_Traits_T.h.


Member Function Documentation

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
static value_type* TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::allocbuf ( CORBA::ULong   )  [inline, static]

Definition at line 39 of file Bounded_Reference_Allocation_Traits_T.h.

00040   {
00041     value_type * buffer = new value_type[MAX];
00042     // no throw
00043     reference_traits::initialize_range(buffer, buffer + MAX);
00044 
00045     return buffer;
00046   }

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
static value_type* TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::allocbuf_noinit ( CORBA::ULong   )  [inline, static]

Definition at line 48 of file Bounded_Reference_Allocation_Traits_T.h.

00049   {
00050     value_type * buffer = new value_type[MAX];
00051     // no throw
00052     reference_traits::zero_range(buffer, buffer + MAX);
00053 
00054     return buffer;
00055   }

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
static value_type* TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::default_buffer_allocation (  )  [inline, static]

Definition at line 34 of file Bounded_Reference_Allocation_Traits_T.h.

00035   {
00036     return 0;
00037   }

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
static CORBA::ULong TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::default_maximum (  )  [inline, static]

Definition at line 29 of file Bounded_Reference_Allocation_Traits_T.h.

00030   {
00031     return MAX;
00032   }

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
static void TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::freebuf ( value_type *  buffer  )  [inline, static]

Definition at line 57 of file Bounded_Reference_Allocation_Traits_T.h.

00058   {
00059     reference_traits::release_range(buffer, buffer + MAX);
00060     delete[] buffer;
00061   }

template<typename T , class ref_traits , CORBA::ULong MAX, bool dummy>
static CORBA::ULong TAO::details::bounded_reference_allocation_traits< T, ref_traits, MAX, dummy >::maximum (  )  [inline, static]

Definition at line 63 of file Bounded_Reference_Allocation_Traits_T.h.

00064   {
00065     return MAX;
00066   }


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:28:26 2009 for TAO by  doxygen 1.6.1