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

#include <PDG_NodeCallbackType.h>

+ Inheritance diagram for PDG_NodeCallbackType:

Public Member Functions

 PDG_NodeCallbackType (const UT_StringHolder &type_name, const UT_StringHolder &type_label, const UT_StringHolder &type_category, bool is_static_generator, PDG_BaseType::Language language, const PDG_NodeInterface &interface, PDG_NodeType node_type, PDG_NodeSubtype sub_type)
 
 PDG_NodeCallbackType (const UT_StringHolder &type_name, const UT_StringHolder &type_label, const UT_StringHolder &type_category, bool is_static_generator, PDG_BaseType::Language language, const UT_StringHolder &template_name, const UT_StringHolder &template_path, const UT_StringHolder &template_body, PDG_NodeType node_type, PDG_NodeSubtype sub_type)
 
const PDG_NodeInterfacenodeInterface () const
 
PDG_NodeType nodeType () const
 
PDG_NodeSubtype subtype () const
 
const UT_StringHoldernodeCategory () const
 
bool isStaticGenerator () const
 
void setStaticGenerator (bool static_generator)
 
int callbackBits () const
 
void setCallbackBits (int callback_bits)
 
void addCallbackBits (int callback_bits)
 
bool initialize (UT_WorkBuffer &errors) override
 
- Public Member Functions inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
 PDGT_RegisteredType (const UT_StringHolder &name, const UT_StringHolder &label, typename PDGT_BaseType< EnumType >::Language lang, bool track_instances)
 
 ~PDGT_RegisteredType () override
 
Pointer instance (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Args...args) const
 
bool reloadInstance (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Class *instance, Args...args) const
 
bool reloadType (UT_WorkBuffer &errors)
 
int64 instanceMemoryUsage () const override
 Returns the combined memory usage of all instances of this type. More...
 
void setFunction (const Function &function)
 Sets the factory function to use when contructing Class instances. More...
 
void setIsPrivate (bool is_private)
 Sets the isPrivate flag. More...
 
bool isPrivate () const
 Returns true if the type is private. More...
 
- Public Member Functions inherited from PDGT_BaseType< EnumType >
 PDGT_BaseType (const UT_StringHolder &type_name, const UT_StringHolder &type_label, Language lang, EnumType reg_type)
 
virtual ~PDGT_BaseType ()
 
const UT_StringHoldertypeName () const
 
void setTypeName (const UT_StringHolder &name)
 
const UT_StringHoldertypeLabel () const
 
void setTypeLabel (const UT_StringHolder &label)
 
Language language () const
 
EnumType type () const
 
int instanceCount () const
 
void instanceCreated () const
 
void instanceDestroyed () const
 
bool compareType (const PDGT_BaseType *type, bool deep=true) const
 
void addParent (const PDGT_BaseType *type, bool recurse=true)
 
virtual UT_StringHolder displayName () const
 

Additional Inherited Members

- Public Types inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
using Function = UT_Function< Pointer(const PDGT_BaseType< EnumType > *, UT_WorkBuffer &, const PDGT_ValueArgs &extra_args, Args...)>
 
using Instances = UT_ConcurrentVector< UT_WeakPtr< Class >>
 
- Public Types inherited from PDGT_BaseType< EnumType >
enum  Language { ePython, eCpp }
 
using TypeSet = UT_Set< const PDGT_BaseType * >
 
- Static Public Member Functions inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
template<typename ConcreteType >
static Pointer typeInit (const PDGT_BaseType< EnumType > *type, UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Args...args)
 
- Static Public Attributes inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
static constexpr EnumType Enum = Type
 
- Protected Member Functions inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
template<typename P = Pointer>
std::enable_if< std::is_same
< P, UT_SharedPtr< Class >
>::value >::type 
addInstance (P instance) const
 
template<typename P = Pointer>
std::enable_if<!std::is_same
< P, UT_SharedPtr< Class >
>::value >::type 
addInstance (P instance) const
 
UT_SharedPtr< Class > lockInstance (UT_WeakPtr< Class > instance) const
 
virtual Pointer instantiate (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Args...variadic_args) const
 
virtual bool reload (UT_WorkBuffer &errors)
 
virtual bool reload (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Class *instance, Args...variadic_args) const
 
- Protected Attributes inherited from PDGT_BaseType< EnumType >
TypeSet myParentTypes
 
UT_StringHolder myTypeName
 
UT_StringHolder myTypeLabel
 
Language myLanguage
 
SYS_AtomicInt32 myInstanceCount
 
EnumType myType
 

Detailed Description

Definition at line 21 of file PDG_NodeCallbackType.h.

Constructor & Destructor Documentation

PDG_NodeCallbackType::PDG_NodeCallbackType ( const UT_StringHolder type_name,
const UT_StringHolder type_label,
const UT_StringHolder type_category,
bool  is_static_generator,
PDG_BaseType::Language  language,
const PDG_NodeInterface interface,
PDG_NodeType  node_type,
PDG_NodeSubtype  sub_type 
)
inline

Definition at line 28 of file PDG_NodeCallbackType.h.

PDG_NodeCallbackType::PDG_NodeCallbackType ( const UT_StringHolder type_name,
const UT_StringHolder type_label,
const UT_StringHolder type_category,
bool  is_static_generator,
PDG_BaseType::Language  language,
const UT_StringHolder template_name,
const UT_StringHolder template_path,
const UT_StringHolder template_body,
PDG_NodeType  node_type,
PDG_NodeSubtype  sub_type 
)
inline

Definition at line 58 of file PDG_NodeCallbackType.h.

Member Function Documentation

void PDG_NodeCallbackType::addCallbackBits ( int  callback_bits)
inline

Definition at line 110 of file PDG_NodeCallbackType.h.

int PDG_NodeCallbackType::callbackBits ( ) const
inline

Definition at line 106 of file PDG_NodeCallbackType.h.

bool PDG_NodeCallbackType::initialize ( UT_WorkBuffer errors)
inlineoverridevirtual

Implements PDGT_BaseType< EnumType >.

Definition at line 113 of file PDG_NodeCallbackType.h.

bool PDG_NodeCallbackType::isStaticGenerator ( ) const
inline

Definition at line 101 of file PDG_NodeCallbackType.h.

const UT_StringHolder& PDG_NodeCallbackType::nodeCategory ( ) const
inline

Definition at line 98 of file PDG_NodeCallbackType.h.

const PDG_NodeInterface& PDG_NodeCallbackType::nodeInterface ( ) const
inline

Definition at line 90 of file PDG_NodeCallbackType.h.

PDG_NodeType PDG_NodeCallbackType::nodeType ( ) const
inline

Definition at line 93 of file PDG_NodeCallbackType.h.

void PDG_NodeCallbackType::setCallbackBits ( int  callback_bits)
inline

Definition at line 108 of file PDG_NodeCallbackType.h.

void PDG_NodeCallbackType::setStaticGenerator ( bool  static_generator)
inline

Definition at line 103 of file PDG_NodeCallbackType.h.

PDG_NodeSubtype PDG_NodeCallbackType::subtype ( ) const
inline

Definition at line 95 of file PDG_NodeCallbackType.h.


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