Description

Namespaces

   
namespace EScript::AST
namespace EScript::IO
namespace EScript::IOLib
namespace EScript::MathLib
namespace EScript::Policies
(internal) Collection of comparators used for comparing ReferenceObjects.
namespace EScript::StdLib
namespace EScript::StringUtils

Classes

       
class EScript::_CountedRef
Simple (counted) reference to use with EReferenceCounter .
   
struct EScript::_DefaultReleaseHandler
   
class EScript::_ObjArray
   
class EScript::_Ptr
Simple wrapper for a pointer to a possibly.
   
struct EScript::_TypeIds
   
class EScript::Array
[ Array ]
> [ Collection ] > [ Object ]
class EScript::Attribute
Internal representation of an object’s attribute.
   
class EScript::AttributeContainer
[ AttributeContainer ]
   
class EScript::Bool
[ Bool ]
> [ Object ]  
class EScript::CodeFragment
Simple container used to store the code of a UserFunction .
   
class EScript::Collection
(abstract) [ Collection ]
> Object ]  
class EScript::Compiler
   
struct EScript::Consts
Common identifiers and other numerical constants.
   
class EScript::Debug
   
class EScript::EPtr
   
class EScript::ERef
   
class EScript::EReferenceCounter
   
class EScript::Exception
[ Exception ]
> [ ExtObject ] > [ Object ]
class EScript::ExtObject
[ ExtObject ]
> [ Object ]  
class EScript::ExtReferenceObject
   
class EScript::FnBinder
[ FnBinder ]
> [ Object ]  
class EScript::FnCompileContext
   
class EScript::Function
[ Function ]
> [ Object ]  
class EScript::FunctionCallContext
[ FunctionCallContext ]
   
class EScript::Identifier
   
class EScript::Instruction
   
class EScript::InstructionBlock
Collection of (assembler-)instructions and the corresponding data.
   
class EScript::Iterator
(abstract) [ Iterator ]
> [ Object ]  
struct EScript::JSON
   
class EScript::Logger
[ Logger ]
   
class EScript::LoggerGroup
   
class EScript::Map
[ Map ]
> [ Collection ] > [ Object ]
class EScript::Namespace
[ Namespace ]
> [ ExtObject ] > [ Object ]
class EScript::Number
[ Number ]
> [ Object ]  
class EScript::Object
[ Object ]
   
class EScript::ObjectReleaseHandler
   
class EScript::Operator
Operator .
   
class EScript::Parser
[ Parser ]
   
class EScript::ReferenceObject
   
class EScript::RtValue
Runtime value. Used for function return values and stack values.
   
class EScript::Runtime
[ Runtime ]
> [ ExtObject ]  
class EScript::RuntimeInternals
[ RuntimeInternals ]
   
class EScript::StaticData
Container for static variables shared among several UserFunctions.
   
class EScript::StdLogger
   
class EScript::String
[ String ]
> [ Object ]  
class EScript::StringData
[ StringData ]
   
class EScript::StringId
Numerical representation of a string constant.
   
struct EScript::TColon
   
class EScript::TControl
   
struct EScript::TDelimiter
   
struct EScript::TEndBlock
   
struct EScript::TEndBracket
   
struct EScript::TEndCommand
   
struct EScript::TEndIndex
   
struct EScript::TEndMap
   
struct EScript::TEndScript
   
class EScript::TIdentifier
   
struct EScript::TMapDelimiter
   
class EScript::Token
[ Token ]
   
class EScript::Tokenizer
[ Tokenizer ]
   
struct EScript::TOperator
   
struct EScript::TStartBlock
   
struct EScript::TStartBracket
   
struct EScript::TStartIndex
   
struct EScript::TStartMap
   
struct EScript::TValueBool
   
struct EScript::TValueIdentifier
   
struct EScript::TValueNumber
   
struct EScript::TValueString
   
struct EScript::TValueVoid
   
class EScript::Type
[ Type ]
> [ Object ]  
class EScript::UserFunction
[ UserFunction ]
> [ ExtObject ]  
class EScript::Void
[ Void ]
> [ Type ] > [ Object ]
class EScript::YieldIterator
[ YieldIterator ]
> [ Object ]  

Initialization

   
   
typedef void( libInitFunction
   
void init()
   
void initLibrary( libInitFunction * initFunction)
   
Namespace * getSGlobals()
(internal) Get the static super global namespace.

Enumerations

   
   
enum variableType_t {LOCAL_VAR, STATIC_VAR}

Typedefs

   
   
typedef std::unordered_map< StringId , variableType_t > declaredVariableMap_t
   
typedef std::pair< variableType_t , int > varLocation_t
   
typedef uint8_t internalTypeId_t
   
typedef EPtr < Object > ObjPtr
   
typedef ERef < Object > ObjRef
   
typedef _ObjArray < ObjRef > ParameterValues
   
typedef RtValue (* _functionPtr
   
typedef unsigned int hashvalue
   
typedef hashvalue identifierId
   
typedef EPtr < const Object > ObjPtr_const

Variables

   
   
const std::string ES_UNKNOWN_IDENTIFIER

Functions

   
   
bool isLocalVarLocation(const varLocation_t & l)
   
bool isStaticVarLocation(const varLocation_t & l)
   
bool isValidVarLocation(const varLocation_t & l)
template< typename target_t >  
target_t convertTo( Runtime & void, ObjPtr void)
template< class T >  
T * assertType( Runtime & void, const ObjPtr & void)
   
void declareFunction( Type * type, StringId nameId, _functionPtr fn)
Add a type Function attribute totypewith given name.
   
void declareFunction( Type * type, const char * name, _functionPtr fn)
   
void declareFunction( Type * type, StringId nameId, int minParamCount, int maxParamCount, _functionPtr fn)
   
void declareFunction( Type * type, const char * name, int minParamCount, int maxParamCount, _functionPtr fn)
   
void declareConstant( Type * type, StringId nameId, const RtValue & value)
   
void declareConstant( Type * type, const char * name, const RtValue & value)
   
void declareFunction( Namespace * nameSpace, StringId nameId, _functionPtr fn)
   
void declareFunction( Namespace * nameSpace, const char * name, _functionPtr fn)
   
void declareFunction( Namespace * nameSpace, StringId nameId, int minParamCount, int maxParamCount, _functionPtr fn)
   
void declareFunction( Namespace * nameSpace, const char * name, int minParamCount, int maxParamCount, _functionPtr fn)
   
void declareConstant( Namespace * nameSpace, StringId nameId, const RtValue & value)
   
void declareConstant( Namespace * nameSpace, const char * name, const RtValue & value)
   
void declareObjectFunction( Type * type, const char * name, _functionPtr fn)
Adds a function as object attribute (it is copied to each instance)
   
void initPrintableName( Type * type, const std::string & printableName)
   
void initPrintableName( ExtObject * type, const std::string & printableName)
   
void markAttributeAsObjectAttribute( Type * type, StringId nameId)
   
void markAttributeAsObjectAttribute( Type * type, const char * name)
   
void copyAttributeAsAlias( Type * type, const char * originalName, const char * aliasName)
   
identifierId stringToIdentifierId(const std::string & s)
   
const std::string & identifierIdToString( identifierId id)
   
hashvalue _hash(const std::string & s)
(internal)
   
void assertParamCount( Runtime & runtime, const ParameterValues & params, int min, int max)
   
void assertParamCount( Runtime & runtime, const size_t paramCount, int min, int max)
template< class T >  
T * assertType( Runtime & runtime, const ObjPtr & obj)
   
ObjRef callMemberFunction( Runtime & rt, ObjPtr obj, StringId fnNameId, const ParameterValues & params)
   
ObjRef callFunction( Runtime & rt, Object * function, const ParameterValues & params)
   
ObjRef _eval( Runtime & runtime, const CodeFragment & code, const std::unordered_map< StringId , ObjRef > & staticVars)
   
std::pair< bool, ObjRef > eval( Runtime & runtime, const StringData & code, const StringId & fileId, const std::unordered_map< StringId , ObjRef > & staticVars)
   
std::pair< bool, ObjRef > eval( Runtime & runtime, const StringData & code, const StringId & fileId)
   
std::pair< bool, ObjRef > executeStream( Runtime & runtime, std::istream & stream)
   
ObjRef _loadAndExecute( Runtime & runtime, const std::string & filename, const std::unordered_map< StringId , ObjRef > & staticVars)
   
std::pair< bool, ObjRef > loadAndExecute( Runtime & runtime, const std::string & filename)
   
std::pair< bool, ObjRef > loadAndExecute( Runtime & runtime, const std::string & filename, const std::unordered_map< StringId , ObjRef > & staticVars)
   
void throwRuntimeException(const std::string & what)
creates and throws an Exception objects.
template< >  
bool convertTo< bool >( Runtime & void, ObjPtr src)
template< >  
double convertTo< double >( Runtime & rt, ObjPtr src)
template< >  
float convertTo< float >( Runtime & rt, ObjPtr src)
template< >  
long long convertTo< long long >( Runtime & rt, ObjPtr src)
template< >  
unsigned long long convertTo< unsigned long long >( Runtime & rt, ObjPtr src)
template< >  
long convertTo< long >( Runtime & rt, ObjPtr src)
template< >  
unsigned long convertTo< unsigned long >( Runtime & rt, ObjPtr src)
template< >  
int convertTo< int >( Runtime & rt, ObjPtr src)
template< >  
unsigned int convertTo< unsigned int >( Runtime & rt, ObjPtr src)
template< >  
short convertTo< short >( Runtime & rt, ObjPtr src)
template< >  
unsigned short convertTo< unsigned short >( Runtime & rt, ObjPtr src)
template< >  
std::string convertTo< std::string >( Runtime & void, ObjPtr src)
   
Array * create(const std::vector< Object * > & void)
   
String * create(const StringData & void)
   
String * create(const std::string & void)
   
String * create(const char * void)
   
Void * create(std::nullptr_t void)
   
Object * create(const ObjRef & obj)
template< class T , class >  
Bool * create(T value)
template< class T , class >  
Number * create(T value)
template< typename source_t >  
RtValue value(source_t obj, typename std::enable_if< std::is_convertible< source_t, RtValue >::value >::type * void)
template< typename source_t >  
RtValue value(source_t obj, typename std::enable_if<!std::is_convertible< source_t, RtValue >::value >::type * void)

Documentation

typedef
EScript::libInitFunction

public
 
 
typedef void( libInitFunction

Defined in EScript/EScript/EScript.h:47


function
EScript::init

public
   
   
void init( )

Init the EScript system and all registered libraries. Has to be called once before any script can be executed

Defined in EScript/EScript/EScript.h:51


function
EScript::initLibrary

public
     
     
void initLibrary( libInitFunction * initFunction )

Calls the the given init(…) function with the SGLOBALS-Object (static global namespace).

Note: Can be used manually as an alternative to the automatic registerLibraryForInitialization-way.

Defined in EScript/EScript/EScript.h:55


function
EScript::getSGlobals

public
   
   
Namespace * getSGlobals( )

(internal) Get the static super global namespace.

Defined in EScript/EScript/EScript.h:58


enum
EScript::variableType_t

public
 
 
enum variableType_t
Enumerator   Description
Enumerator   Description
LOCAL_VAR    
STATIC_VAR    

Defined in EScript/EScript/Compiler/VariableTypes.h:15


typedef
EScript::declaredVariableMap_t

public
 
 
typedef std::unordered_map< StringId , variableType_t > declaredVariableMap_t

Defined in EScript/EScript/Compiler/VariableTypes.h:19


typedef
EScript::varLocation_t

public
 
 
typedef std::pair< variableType_t , int > varLocation_t

Defined in EScript/EScript/Compiler/VariableTypes.h:21


typedef
EScript::internalTypeId_t

public
 
 
typedef uint8_t internalTypeId_t

Defined in EScript/EScript/Objects/typeIds.h:16


typedef
EScript::ObjPtr

public
 
 
typedef EPtr < Object > ObjPtr

Defined in EScript/EScript/Utils/ConversionBasics.h:18


typedef
EScript::ObjRef

public
 
 
typedef ERef < Object > ObjRef

Defined in EScript/EScript/Utils/DeclarationHelper.h:30


typedef
EScript::ParameterValues

public
 
 
typedef _ObjArray < ObjRef > ParameterValues

Defined in EScript/EScript/Utils/DeclarationHelper.h:33


typedef
EScript::_functionPtr

public
 
 
typedef RtValue (* _functionPtr

Defined in EScript/EScript/Utils/DeclarationHelper.h:35


typedef
EScript::hashvalue

public
 
 
typedef unsigned int hashvalue

Defined in EScript/EScript/Utils/Hashing.h:15


typedef
EScript::identifierId

public
 
 
typedef hashvalue identifierId

Defined in EScript/EScript/Utils/Hashing.h:16


typedef
EScript::ObjPtr_const

public
 
 
typedef EPtr < const Object > ObjPtr_const

Defined in EScript/EScript/Utils/ObjRef.h:321


variable
EScript::ES_UNKNOWN_IDENTIFIER

public
 
 
const std::string ES_UNKNOWN_IDENTIFIER

Defined in EScript/EScript/Utils/Hashing.h:18


function
EScript::isLocalVarLocation

public inline
     
     
bool isLocalVarLocation( const varLocation_t & l )

Defined in EScript/EScript/Compiler/VariableTypes.h:22


function
EScript::isStaticVarLocation

public inline
     
     
bool isStaticVarLocation( const varLocation_t & l )

Defined in EScript/EScript/Compiler/VariableTypes.h:25


function
EScript::isValidVarLocation

public inline
     
     
bool isValidVarLocation( const varLocation_t & l )

Defined in EScript/EScript/Compiler/VariableTypes.h:28


function
EScript::convertTo

public
     
template< typename target_t >    
target_t convertTo( Runtime & void,
  ObjPtr void
)    

Convert the given EScript object to a desired typeif the conversion fails, an exception is thrown.

Defined in EScript/EScript/Utils/ConversionBasics.h:22


function
EScript::assertType

public static
     
template< class T >    
T * assertType( Runtime & void,
  const ObjPtr & void
)    

Defined in EScript/EScript/Utils/ConversionBasics.h:24


function
EScript::declareFunction

public
     
     
void declareFunction( Type * type,
  StringId nameId,
  _functionPtr fn
)    

Add a type Function attribute totypewith given name.

Defined in EScript/EScript/Utils/DeclarationHelper.h:39


function
EScript::declareFunction

public
     
     
void declareFunction( Type * type,
  const char * name,
  _functionPtr fn
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:40


function
EScript::declareFunction

public
     
     
void declareFunction( Type * type,
  StringId nameId,
  int minParamCount,
  int maxParamCount,
  _functionPtr fn
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:41


function
EScript::declareFunction

public
     
     
void declareFunction( Type * type,
  const char * name,
  int minParamCount,
  int maxParamCount,
  _functionPtr fn
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:42


function
EScript::declareConstant

public
     
     
void declareConstant( Type * type,
  StringId nameId,
  const RtValue & value
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:43


function
EScript::declareConstant

public
     
     
void declareConstant( Type * type,
  const char * name,
  const RtValue & value
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:44


function
EScript::declareFunction

public
     
     
void declareFunction( Namespace * nameSpace,
  StringId nameId,
  _functionPtr fn
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:46


function
EScript::declareFunction

public
     
     
void declareFunction( Namespace * nameSpace,
  const char * name,
  _functionPtr fn
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:47


function
EScript::declareFunction

public
     
     
void declareFunction( Namespace * nameSpace,
  StringId nameId,
  int minParamCount,
  int maxParamCount,
  _functionPtr fn
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:48


function
EScript::declareFunction

public
     
     
void declareFunction( Namespace * nameSpace,
  const char * name,
  int minParamCount,
  int maxParamCount,
  _functionPtr fn
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:49


function
EScript::declareConstant

public
     
     
void declareConstant( Namespace * nameSpace,
  StringId nameId,
  const RtValue & value
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:50


function
EScript::declareConstant

public
     
     
void declareConstant( Namespace * nameSpace,
  const char * name,
  const RtValue & value
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:51


function
EScript::declareObjectFunction

public
     
     
void declareObjectFunction( Type * type,
  const char * name,
  _functionPtr fn
)    

Adds a function as object attribute (it is copied to each instance)

Defined in EScript/EScript/Utils/DeclarationHelper.h:54


function
EScript::initPrintableName

public
     
     
void initPrintableName( Type * type,
  const std::string & printableName
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:56


function
EScript::initPrintableName

public
     
     
void initPrintableName( ExtObject * type,
  const std::string & printableName
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:57


function
EScript::markAttributeAsObjectAttribute

public
     
     
void markAttributeAsObjectAttribute( Type * type,
  StringId nameId
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:59


function
EScript::markAttributeAsObjectAttribute

public
     
     
void markAttributeAsObjectAttribute( Type * type,
  const char * name
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:60


function
EScript::copyAttributeAsAlias

public
     
     
void copyAttributeAsAlias( Type * type,
  const char * originalName,
  const char * aliasName
)    

Defined in EScript/EScript/Utils/DeclarationHelper.h:62


function
EScript::stringToIdentifierId

public
     
     
identifierId stringToIdentifierId( const std::string & s )

Defined in EScript/EScript/Utils/Hashing.h:20


function
EScript::identifierIdToString

public
     
     
const std::string & identifierIdToString( identifierId id )

Defined in EScript/EScript/Utils/Hashing.h:21


function
EScript::_hash

public
     
     
hashvalue _hash( const std::string & s )

(internal)

Defined in EScript/EScript/Utils/Hashing.h:24


function
EScript::assertParamCount

public inline
     
     
void assertParamCount( Runtime & runtime,
  const ParameterValues & params,
  int min,
  int max
)    

Check if the number of given parameters is in the given range (min <= number <= max). A range value of <0 accepts an arbitrary number of parameters. If too many parameters are given, a warning message is shown. If too few parameter are given, a runtime error is thrown.

Defined in EScript/EScript/Utils/RuntimeHelper.h:51


function
EScript::assertParamCount

public inline
     
     
void assertParamCount( Runtime & runtime,
  const size_t paramCount,
  int min,
  int max
)    

Defined in EScript/EScript/Utils/RuntimeHelper.h:56


function
EScript::assertType

public static
     
template< class T >    
T * assertType( Runtime & runtime,
  const ObjPtr & obj
)    

Try to cast the given object to the specified type. If the object is not of the appropriate type, a runtime error is thrown.

Defined in EScript/EScript/Utils/RuntimeHelper.h:66


function
EScript::callMemberFunction

public
     
     
ObjRef callMemberFunction( Runtime & rt,
  ObjPtr obj,
  StringId fnNameId,
  const ParameterValues & params
)    

Defined in EScript/EScript/Utils/RuntimeHelper.h:73


function
EScript::callFunction

public
     
     
ObjRef callFunction( Runtime & rt,
  Object * function,
  const ParameterValues & params
)    

Defined in EScript/EScript/Utils/RuntimeHelper.h:74


function
EScript::_eval

public
     
     
ObjRef _eval( Runtime & runtime,
  const CodeFragment & code,
  const std::unordered_map< StringId , ObjRef > & staticVars
)    

Compile and execute the given code and return the result.

Note: may throw ‘std::exception’ or ‘ Object *’ on failure.

Defined in EScript/EScript/Utils/RuntimeHelper.h:78


function
EScript::eval

public
     
     
std::pair< bool, ObjRef > eval( Runtime & runtime,
  const StringData & code,
  const StringId & fileId,
  const std::unordered_map< StringId , ObjRef > & staticVars
)    

Compile and execute the given code. If the code could be executed without an exception, (true,result) is returned; if an exception (of type Object*) occured (false,exception) is returned and the error message is sent to the runtime’s logger.

Parameters

fileId
Name used to identify the executed code in exception messages and stack traces; the default is ‘[inline]’

Returns

(success, result)

Defined in EScript/EScript/Utils/RuntimeHelper.h:85


function
EScript::eval

public
     
     
std::pair< bool, ObjRef > eval( Runtime & runtime,
  const StringData & code,
  const StringId & fileId
)    

Defined in EScript/EScript/Utils/RuntimeHelper.h:86


function
EScript::executeStream

public
     
     
std::pair< bool, ObjRef > executeStream( Runtime & runtime,
  std::istream & stream
)    

Returns

(success, result)

Defined in EScript/EScript/Utils/RuntimeHelper.h:89


function
EScript::_loadAndExecute

public
     
     
ObjRef _loadAndExecute( Runtime & runtime,
  const std::string & filename,
  const std::unordered_map< StringId , ObjRef > & staticVars
)    

Returns

result (mmay throw an exception)

Defined in EScript/EScript/Utils/RuntimeHelper.h:92


function
EScript::loadAndExecute

public
     
     
std::pair< bool, ObjRef > loadAndExecute( Runtime & runtime,
  const std::string & filename
)    

Returns

(success, result)

Defined in EScript/EScript/Utils/RuntimeHelper.h:95


function
EScript::loadAndExecute

public
     
     
std::pair< bool, ObjRef > loadAndExecute( Runtime & runtime,
  const std::string & filename,
  const std::unordered_map< StringId , ObjRef > & staticVars
)    

Defined in EScript/EScript/Utils/RuntimeHelper.h:96


function
EScript::throwRuntimeException

public
     
     
void throwRuntimeException( const std::string & what )

creates and throws an Exception objects.

Defined in EScript/EScript/Utils/RuntimeHelper.h:99


function
EScript::convertTo< bool >

public inline
     
template< >    
bool convertTo< bool >( Runtime & void,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:18


function
EScript::convertTo< double >

public
     
template< >    
double convertTo< double >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:24


function
EScript::convertTo< float >

public inline
     
template< >    
float convertTo< float >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:26


function
EScript::convertTo< long long >

public inline
     
template< >    
long long convertTo< long long >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:30


function
EScript::convertTo< unsigned long long >

public inline
     
template< >    
unsigned long long convertTo< unsigned long long >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:34


function
EScript::convertTo< long >

public inline
     
template< >    
long convertTo< long >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:38


function
EScript::convertTo< unsigned long >

public inline
     
template< >    
unsigned long convertTo< unsigned long >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:42


function
EScript::convertTo< int >

public inline
     
template< >    
int convertTo< int >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:46


function
EScript::convertTo< unsigned int >

public inline
     
template< >    
unsigned int convertTo< unsigned int >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:50


function
EScript::convertTo< short >

public inline
     
template< >    
short convertTo< short >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:54


function
EScript::convertTo< unsigned short >

public inline
     
template< >    
unsigned short convertTo< unsigned short >( Runtime & rt,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:58


function
EScript::convertTo< std::string >

public inline
     
template< >    
std::string convertTo< std::string >( Runtime & void,
  ObjPtr src
)    

Defined in EScript/EScript/Utils/StdConversions.h:64


function
EScript::create

public
     
     
Array * create( const std::vector< Object * > & void )

Factories for types that are not results of unwanted implicit type conversions.

Defined in EScript/EScript/Utils/StdFactories.h:29


function
EScript::create

public
     
     
String * create( const StringData & void )

Defined in EScript/EScript/Utils/StdFactories.h:30


function
EScript::create

public
     
     
String * create( const std::string & void )

Defined in EScript/EScript/Utils/StdFactories.h:31


function
EScript::create

public
     
     
String * create( const char * void )

Defined in EScript/EScript/Utils/StdFactories.h:32


function
EScript::create

public
     
     
Void * create( std::nullptr_t void )

Defined in EScript/EScript/Utils/StdFactories.h:33


function
EScript::create

public
     
     
Object * create( const ObjRef & obj )

Defined in EScript/EScript/Utils/StdFactories.h:34


function
EScript::create

public
     
template< class T , class = typename std::enable_if<std::is_same<T,bool>::value>::type >    
Bool * create( T value )

Defined in EScript/EScript/Utils/StdFactories.h:50


function
EScript::create

public
             
template< class T , class = typename std::enable_if<std::is_same<T,double>::value   std::is_same<T,float>::value   std::is_same<T,int>::value   std::is_same<T,uint32_t>::value>::type >
Number * create( T value )        

Defined in EScript/EScript/Utils/StdFactories.h:55


function
EScript::value

public inline
     
template< typename source_t >    
RtValue value( source_t obj,
  typename std::enable_if< std::is_convertible< source_t, RtValue >::value >::type * void
)    

EScript::value(someValue) returns a RtValue wrapping ‘someValue’. If ‘someValue’ can not be represented as RtValue directly, a corresponding EScript object is created by calling EScript::create(someValue).

Note: All specific create functions must be present before this file is included in order to be found by the compiler.

See also: http://gcc.gnu.org/gcc-4.7/porting_to.html(Name lookup changes)

Defined in EScript/EScript/Utils/StdFactories.h:65


function
EScript::value

public inline
     
template< typename source_t >    
RtValue value( source_t obj,
  typename std::enable_if<!std::is_convertible< source_t, RtValue >::value >::type * void
)    

Defined in EScript/EScript/Utils/StdFactories.h:70