Loading...
Searching...
No Matches
Vdf_TypeDispatchTableBase Class Reference

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

#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.
 

Protected Member Functions

VDF_API bool _RegisterType (const std::type_info &ti, void *f)
 Register function pointer f as the implementation to dispatch to for type ti.
 
VDF_API void * _FindOrFatalError (TfType t) const
 Find a registered function pointer for type t.
 

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.

Member Function Documentation

◆ _FindOrFatalError()

VDF_API void * _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.

◆ _RegisterType()

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

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

◆ IsTypeRegistered()

VDF_API bool 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: