OptionalMethod#

Fully qualified name: omni::graph::core::OptionalMethod

struct OptionalMethod#

Helper struct to make it easy to reference methods on a class that may or may not be defined.

Public Static Functions

template<typename ClassToSet, typename HandleType>
static inline void setHandle(
ClassToSet &member,
HandleType handle,
)#

Set the Handle object.

Template Parameters:
  • ClassToSet – Object class on which to set the handle

  • HandleType – Handle class that is the object class member containing the handle

Parameters:
  • member – Object on which the handle is to be set

  • handle – Handle to be set on the object

template<typename ClassToSet>
static inline void setContext(
ClassToSet &member,
const GraphContextObj &context,
)#

Set the Context object, if an implementation exists.

Template Parameters:

ClassToSet – Object class on which to set the context

Parameters:
  • member – Object on which the context is to be set

  • context – Context to be set on the object