Public Types | Static Public Member Functions

TAO::details::array_traits< T_forany > Struct Template Reference

#include <Array_Traits_T.h>

List of all members.

Public Types

typedef T_forany forany_type
typedef T_forany::_array_type value_type
typedef T_forany::_array_type const const_value_type
typedef T_forany::_slice_type slice_type

Static Public Member Functions

static void copy (slice_type *_tao_to, const slice_type *_tao_from)
static void free (slice_type *value)
static slice_type * alloc (void)
static slice_type * dup (const slice_type *value)
static void zero_range (value_type *begin, value_type *end)
static void release_range (value_type *, value_type *)
static void initialize_range (value_type *begin, value_type *end)
template<typename iter >
static void copy_range (value_type *begin, value_type *end, iter dst)
template<typename iter >
static void copy_swap_range (value_type *begin, value_type *end, iter dst)

Detailed Description

template<typename T_forany>
struct TAO::details::array_traits< T_forany >

Definition at line 25 of file Array_Traits_T.h.


Member Typedef Documentation

template<typename T_forany >
typedef T_forany::_array_type const TAO::details::array_traits< T_forany >::const_value_type

Definition at line 29 of file Array_Traits_T.h.

template<typename T_forany >
typedef T_forany TAO::details::array_traits< T_forany >::forany_type

Definition at line 27 of file Array_Traits_T.h.

template<typename T_forany >
typedef T_forany::_slice_type TAO::details::array_traits< T_forany >::slice_type

Definition at line 30 of file Array_Traits_T.h.

template<typename T_forany >
typedef T_forany::_array_type TAO::details::array_traits< T_forany >::value_type

Definition at line 28 of file Array_Traits_T.h.


Member Function Documentation

template<typename T_forany >
static slice_type* TAO::details::array_traits< T_forany >::alloc ( void   )  [inline, static]

Definition at line 42 of file Array_Traits_T.h.

  {
    return TAO::Array_Traits<forany_type>::alloc ();
  }

template<typename T_forany >
static void TAO::details::array_traits< T_forany >::copy ( slice_type *  _tao_to,
const slice_type *  _tao_from 
) [inline, static]

Definition at line 32 of file Array_Traits_T.h.

  {
    TAO::Array_Traits<forany_type>::copy (_tao_to, _tao_from);
  }

template<typename T_forany >
template<typename iter >
static void TAO::details::array_traits< T_forany >::copy_range ( value_type *  begin,
value_type *  end,
iter  dst 
) [inline, static]

Definition at line 76 of file Array_Traits_T.h.

  {
    for(value_type * i = begin; i != end; ++i, ++dst)
    {
      TAO::Array_Traits<forany_type>::copy(*dst, *i);
    }
  }

template<typename T_forany >
template<typename iter >
static void TAO::details::array_traits< T_forany >::copy_swap_range ( value_type *  begin,
value_type *  end,
iter  dst 
) [inline, static]

Definition at line 98 of file Array_Traits_T.h.

  {
    copy_range(begin, end, dst);
  }

template<typename T_forany >
static slice_type* TAO::details::array_traits< T_forany >::dup ( const slice_type *  value  )  [inline, static]

Definition at line 47 of file Array_Traits_T.h.

  {
    return TAO::Array_Traits<forany_type>::dup (value);
  }

template<typename T_forany >
static void TAO::details::array_traits< T_forany >::free ( slice_type *  value  )  [inline, static]

Definition at line 37 of file Array_Traits_T.h.

  {
    TAO::Array_Traits<forany_type>::free (value);
  }

template<typename T_forany >
static void TAO::details::array_traits< T_forany >::initialize_range ( value_type *  begin,
value_type *  end 
) [inline, static]

Definition at line 66 of file Array_Traits_T.h.

  {
    std::for_each(
        begin, end, &TAO::Array_Traits<forany_type>::zero);
  }

template<typename T_forany >
static void TAO::details::array_traits< T_forany >::release_range ( value_type *  ,
value_type *   
) [inline, static]

Definition at line 60 of file Array_Traits_T.h.

  {
    // Noop for array sequences
  }

template<typename T_forany >
static void TAO::details::array_traits< T_forany >::zero_range ( value_type *  begin,
value_type *  end 
) [inline, static]

Definition at line 53 of file Array_Traits_T.h.

  {
    std::for_each(
        begin, end, &TAO::Array_Traits<forany_type>::zero);
  }


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