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

#include <PDG_AttributeEvaluator.h>

+ Inheritance diagram for PDG_AttributeEvaluator:

Public Member Functions

 PDG_AttributeEvaluator (const char *name)
 
 PDG_AttributeEvaluator (const char *name, int component)
 
 PDG_AttributeEvaluator (PDG_AttributeIntrinsic type, int component)
 
 ~PDG_AttributeEvaluator () override
 
bool evaluateAtFrameF (fpreal frame, int thread, fpreal &result, EvalDiagnostics &diagnostics) const
 
bool evaluateAtFrameS (fpreal frame, int thread, UT_StringHolder &result, EvalDiagnostics &diagnostics) const
 
bool isStringValue () const override
 
PDG_AttributeIntrinsic attributeType () const
 
void setMetadata (const UT_StringHolder &tag, bool localize, bool all_values)
 
bool isLocalize () const
 
bool isAllValues () const
 
const UT_StringHoldertag () const
 
const UT_StringHolderquery () const
 
void setWrapperEvaluator (UT_AttributeEvaluator *wrapper)
 
UT_AttributeEvaluatorwrapperEvaluator () const
 
void checkTimeDependent ()
 
- Public Member Functions inherited from UT_AttributeEvaluator
 UT_AttributeEvaluator (const char *name, bool check_pad=false)
 
virtual ~UT_AttributeEvaluator ()
 
const UT_Stringname () const
 
int component () const
 
int padding () const
 
bool isTimeDependent () const
 
bool isLocalVar () const
 
bool hasComponent () const
 
bool needsToBeDeleted () const
 
virtual bool evaluateF (int thread, fpreal &result, EvalDiagnostics &diagnostics) const
 
virtual bool evaluateS (int thread, UT_StringHolder &result, EvalDiagnostics &diagnostics) const
 
virtual bool isValid () const
 
void copyFrom (const UT_AttributeEvaluator &src)
 

Static Public Member Functions

static void recordAttribute (const UT_StringHolder &name, int thread)
 
static bool isSuppressWarnings ()
 
static bool setSuppressWarnings (bool suppress)
 
- Static Public Member Functions inherited from UT_AttributeEvaluator
static EvalType typeFromPrefix (const char *prefix)
 

Additional Inherited Members

- Public Types inherited from UT_AttributeEvaluator
enum  EvalType { EVAL_OP_NODE, EVAL_CONTEXT_OPTION, EVAL_PDG, EVAL_COUNT }
 
- Protected Attributes inherited from UT_AttributeEvaluator
UT_String myName
 
int myComponent
 
int myPadding
 
bool myTimeDep
 
bool myIsLocalVar
 
bool myHasComponent
 
bool myNeedsToBeDeleted
 

Detailed Description

Caches an attribute name and component, for use with @ expression in HScript

Definition at line 27 of file PDG_AttributeEvaluator.h.

Constructor & Destructor Documentation

PDG_AttributeEvaluator::PDG_AttributeEvaluator ( const char *  name)
PDG_AttributeEvaluator::PDG_AttributeEvaluator ( const char *  name,
int  component 
)
PDG_AttributeEvaluator::PDG_AttributeEvaluator ( PDG_AttributeIntrinsic  type,
int  component 
)
PDG_AttributeEvaluator::~PDG_AttributeEvaluator ( )
override

Member Function Documentation

PDG_AttributeIntrinsic PDG_AttributeEvaluator::attributeType ( ) const
void PDG_AttributeEvaluator::checkTimeDependent ( )
bool PDG_AttributeEvaluator::evaluateAtFrameF ( fpreal  frame,
int  thread,
fpreal result,
EvalDiagnostics diagnostics 
) const
bool PDG_AttributeEvaluator::evaluateAtFrameS ( fpreal  frame,
int  thread,
UT_StringHolder result,
EvalDiagnostics diagnostics 
) const
bool PDG_AttributeEvaluator::isAllValues ( ) const
inline

Definition at line 58 of file PDG_AttributeEvaluator.h.

bool PDG_AttributeEvaluator::isLocalize ( ) const
inline

Definition at line 56 of file PDG_AttributeEvaluator.h.

bool PDG_AttributeEvaluator::isStringValue ( ) const
overridevirtual

Reimplemented from UT_AttributeEvaluator.

static bool PDG_AttributeEvaluator::isSuppressWarnings ( )
static
const UT_StringHolder& PDG_AttributeEvaluator::query ( ) const
inline

Definition at line 62 of file PDG_AttributeEvaluator.h.

static void PDG_AttributeEvaluator::recordAttribute ( const UT_StringHolder name,
int  thread 
)
static
void PDG_AttributeEvaluator::setMetadata ( const UT_StringHolder tag,
bool  localize,
bool  all_values 
)
static bool PDG_AttributeEvaluator::setSuppressWarnings ( bool  suppress)
static
void PDG_AttributeEvaluator::setWrapperEvaluator ( UT_AttributeEvaluator wrapper)
const UT_StringHolder& PDG_AttributeEvaluator::tag ( ) const
inline

Definition at line 60 of file PDG_AttributeEvaluator.h.

UT_AttributeEvaluator* PDG_AttributeEvaluator::wrapperEvaluator ( ) const

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