HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
apex::APEX_TypeTraits< T > Class Template Reference

#include <APEX_Types.h>

Static Public Member Functions

static voidallocate (exint size)
 Called to allocate a UT_Array<T> of length size. More...
 
static bool compile (APEX_Buffer *buffer, APEX_Graph *graph, APEX_PortID port)
 
static void clear (T *mem)
 Given an initialized instance of T, reset it to the default state. More...
 
static bool isHandle ()
 

Detailed Description

template<typename T>
class apex::APEX_TypeTraits< T >

Definition at line 185 of file APEX_Types.h.

Member Function Documentation

template<typename T >
static void* apex::APEX_TypeTraits< T >::allocate ( exint  size)
inlinestatic

Called to allocate a UT_Array<T> of length size.

Definition at line 189 of file APEX_Types.h.

template<typename T >
static void apex::APEX_TypeTraits< T >::clear ( T *  mem)
inlinestatic

Given an initialized instance of T, reset it to the default state.

Definition at line 199 of file APEX_Types.h.

template<typename T >
static bool apex::APEX_TypeTraits< T >::compile ( APEX_Buffer buffer,
APEX_Graph *  graph,
APEX_PortID  port 
)
inlinestatic

Called for each non-subport usage of a type with the buffer, graph and allocated port.

Returns whether or not compilation was successful – if it returns false, then compilation is aborted. Error messages can be added into the passed graph with addError. For types which handle their own subports (like VariadicArgs), validity of those subports must be checked here; callbacks can do the same thing (usually with spare ports) in their compile callback.

Definition at line 197 of file APEX_Types.h.

template<typename T >
static bool apex::APEX_TypeTraits< T >::isHandle ( )
inlinestatic

Definition at line 225 of file APEX_Types.h.


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