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

#include <PDG_DependencyType.h>

+ Inheritance diagram for PDG_DependencyType:

Public Member Functions

 PDG_DependencyType (const UT_StringHolder &type_name, const UT_StringHolder &type_label, PDG_BaseType::Language language)
 
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 19 of file PDG_DependencyType.h.

Constructor & Destructor Documentation

PDG_DependencyType::PDG_DependencyType ( const UT_StringHolder type_name,
const UT_StringHolder type_label,
PDG_BaseType::Language  language 
)
inline

Definition at line 26 of file PDG_DependencyType.h.

Member Function Documentation

bool PDG_DependencyType::initialize ( UT_WorkBuffer errors)
inlineoverridevirtual

Implements PDGT_BaseType< EnumType >.

Definition at line 33 of file PDG_DependencyType.h.


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