HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vdf_TypeDispatchTableBase Class Reference

#include <typeDispatchTable.h>

+ Inheritance diagram for Vdf_TypeDispatchTableBase:

Public Member Functions

VDF_API bool IsTypeRegistered (TfType t) const
 Returns true if a function has been registered for type t. More...
 

Protected Member Functions

VDF_API bool _RegisterType (const std::type_info &ti, void *f)
 
VDF_API void_FindOrFatalError (TfType t) const
 
VDF_API Vdf_TypeDispatchTableBase ()
 
VDF_API ~Vdf_TypeDispatchTableBase ()
 

Detailed Description

This file defines VdfTypeDispatchTable, a template that can be used to perform runtime type dispatch.

Definition at line 31 of file typeDispatchTable.h.

Constructor & Destructor Documentation

VDF_API Vdf_TypeDispatchTableBase::Vdf_TypeDispatchTableBase ( )
protected
VDF_API Vdf_TypeDispatchTableBase::~Vdf_TypeDispatchTableBase ( )
protected

Member Function Documentation

VDF_API void* Vdf_TypeDispatchTableBase::_FindOrFatalError ( TfType  t) const
protected

Find a registered function pointer for type t. Issues a fatal error if no function has been registered for type t.

VDF_API bool Vdf_TypeDispatchTableBase::_RegisterType ( const std::type_info &  ti,
void f 
)
protected

Register function pointer f as the implementation to dispatch to for type ti.

VDF_API bool Vdf_TypeDispatchTableBase::IsTypeRegistered ( TfType  t) const

Returns true if a function has been registered for type t.


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