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

#include <PY_CompiledCode.h>

Public Types

enum  CodeType { STATEMENTS, EXPRESSION }
 

Public Member Functions

 PY_CompiledCode (const char *python_code, CodeType code_type, const char *as_file=NULL, bool allow_function_bodies=false)
 
 PY_CompiledCode (UT_IStream &is, CodeType code_type)
 
 ~PY_CompiledCode ()
 
void setEvaluationCacheStackForCurrentThread ()
 
int64 getMemoryUsage (bool inclusive) const
 
bool hasSyntaxErrors () const
 
const UT_StringsyntaxErrors () const
 
const UT_Stringcode () const
 
void compiledCodeAsString (UT_WorkBuffer &result) const
 
bool saveCompiledCode (std::ostream &os)
 
void evaluate (PY_Result::Type desired_result_type, PY_Result &result) const
 
void evaluateInContext (PY_Result::Type desired_result_type, PY_EvaluationContext &context, PY_Result &result) const
 
void evaluateInContext (PY_Result::Type desired_result_type, PY_EvaluationContext &context, void *opaque_locals_dict, PY_Result &result) const
 
PY_Result evaluate (PY_Result::Type desired_result_type) const
 
PY_Result evaluateInContext (PY_Result::Type desired_result_type, PY_EvaluationContext &context) const
 
bool isPureCompiled ()
 

Detailed Description

Definition at line 25 of file PY_CompiledCode.h.

Member Enumeration Documentation

Enumerator
STATEMENTS 
EXPRESSION 

Definition at line 28 of file PY_CompiledCode.h.

Constructor & Destructor Documentation

PY_CompiledCode::PY_CompiledCode ( const char *  python_code,
CodeType  code_type,
const char *  as_file = NULL,
bool  allow_function_bodies = false 
)
PY_CompiledCode::PY_CompiledCode ( UT_IStream is,
CodeType  code_type 
)
PY_CompiledCode::~PY_CompiledCode ( )

Member Function Documentation

const UT_String& PY_CompiledCode::code ( ) const
void PY_CompiledCode::compiledCodeAsString ( UT_WorkBuffer result) const
void PY_CompiledCode::evaluate ( PY_Result::Type  desired_result_type,
PY_Result result 
) const
PY_Result PY_CompiledCode::evaluate ( PY_Result::Type  desired_result_type) const
inline

Definition at line 128 of file PY_CompiledCode.h.

void PY_CompiledCode::evaluateInContext ( PY_Result::Type  desired_result_type,
PY_EvaluationContext context,
PY_Result result 
) const
inline

Definition at line 101 of file PY_CompiledCode.h.

void PY_CompiledCode::evaluateInContext ( PY_Result::Type  desired_result_type,
PY_EvaluationContext context,
void opaque_locals_dict,
PY_Result result 
) const
inline

Definition at line 114 of file PY_CompiledCode.h.

PY_Result PY_CompiledCode::evaluateInContext ( PY_Result::Type  desired_result_type,
PY_EvaluationContext context 
) const
inline

Definition at line 135 of file PY_CompiledCode.h.

int64 PY_CompiledCode::getMemoryUsage ( bool  inclusive) const
bool PY_CompiledCode::hasSyntaxErrors ( ) const
bool PY_CompiledCode::isPureCompiled ( )
inline

Definition at line 144 of file PY_CompiledCode.h.

bool PY_CompiledCode::saveCompiledCode ( std::ostream &  os)
void PY_CompiledCode::setEvaluationCacheStackForCurrentThread ( )
const UT_String& PY_CompiledCode::syntaxErrors ( ) const

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