Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

com::SafeArrayTraits< T > Struct Template Reference

#include <array.h>

Inheritance diagram for com::SafeArrayTraits< T >:

List of all members.


Detailed Description

template<typename T>
struct com::SafeArrayTraits< T >

Provides various helpers for SafeArray.

Parameters:
T Type of array elements.
Specializations of this template must provide the following methods:

Returns the VARTYPE of COM SafeArray elements to be used for T static VARTYPE VarType();

Returns the number of VarType() elements necessary for aSize elements of T static ULONG VarCount (size_t aSize);

Returns the number of elements of T that fit into the given number of VarType() elements (opposite to VarCount (size_t aSize)). static size_t Size (ULONG aVarCount);

Creates a deep copy of aFrom and stores it in aTo static void Copy (ULONG aFrom, ULONG &aTo);

Definition at line 391 of file array.h.


Static Protected Member Functions

static void Copy (T aFrom, T &aTo)
static SAFEARRAY * CreateSafeArray (VARTYPE aVarType, SAFEARRAYBOUND *aBound)
static size_t Size (ULONG aVarCount)
static ULONG VarCount (size_t aSize)
static VARTYPE VarType ()

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index