class ExpWrapper

Object wrapper for evaluation. More...

Full nameTelEngine::ExpWrapper
Definition#include <libs/yscript/yatescript.h>
InheritsTelEngine::ExpOperation [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

Helper class that allows wrapping entire objects in an operation

inline  ExpWrapper (GenObject* object, const char* name = 0, bool barrier = false)

ExpWrapper

Constructor

Parameters:
objectPointer to the object to wrap
nameOptional name of the wrapper
barrierTrue if the operation is an expression barrier on the stack

inline  ExpWrapper (ExpEvaluator::Opcode opcode, GenObject* object)

ExpWrapper

Constructor with special operation

Parameters:
opcodeOperation code of the wrapper
objectPointer to the object to wrap

 ~ExpWrapper ()

~ExpWrapper

[virtual]

Destructor, deletes the held object

void*  getObject (const String& name)

getObject

[const virtual]

Get a pointer to a derived class given that class name

Parameters:
nameName of the class we are asking for

Returns: Pointer to the requested class or NULL if this object doesn't implement it

Reimplemented from NamedString.

bool  valBoolean ()

valBoolean

[const virtual]

Retrieve the boolean value of the operation

Returns: True if the wrapped object is to be interpreted as true value

Reimplemented from ExpOperation.

const char*  typeOf ()

typeOf

[const virtual]

Retrieve the name of the type of the value of this operation

Returns: Name of the type of the value

Reimplemented from ExpOperation.

ExpOperation*  clone (const char* name)

clone

[const virtual]

Clone and rename method

Parameters:
nameName of the cloned operation

Returns: New operation instance

Reimplemented from ExpOperation.

ExpOperation*  copy (Mutex* mtx)

copy

[const virtual]

Deep copy method

Parameters:
mtxPointer to the mutex that serializes the copied object

Returns: New operation instance

Reimplemented from ExpOperation.

GenObject*  object ()

object

[const]

Object access method

Returns: Pointer to the held object


Generated by: paulc on bussard on Sun Oct 20 21:06:06 2013, using kdoc 2.0a54.