Gorgon Game Engine
Embedding.h File Reference
Include dependency graph for Embedding.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MappedEventType< E_, O_, R_, P_ >
 R_: return type, P_: parameters, E_: event object type. More...
 
class  MappedFunction< F_ >
 This class wraps a C++ function into an overload. It can be constructed using MapFunction. More...
 
class  MappedInstanceMember< C_, T_ >
 This class allows a one to one mapping of a data member to a c++ data member. More...
 
class  MappedInstanceMember_Function
 This class allows mapping of a data member to c++ function data member. More...
 
class  MappedOperator
 This class makes working with operators easier. More...
 
class  MappedReferenceType< T_, ToString_, Parse_ >
 This class allows embedded types to become scripting types that are passed around as references. More...
 
class  MappedROInstanceMember< C_, T_ >
 This class allows a one to one mapping of a data member to a c++ data member. More...
 
class  MappedROInstanceMember_Function
 This class allows mapping of a data member to c++ function data member. More...
 
class  MappedROStaticDataMember< T_ >
 
class  MappedStaticDataMember< T_ >
 
class  MappedStringEnum< E_ >
 E_ is an enumeration with defined strings. More...
 
class  MappedValueType< T_, ToString_, Parse_ >
 This class allows embedded types to become scripting types that are passed around as values. More...
 

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::Scripting
 This namespace contains Gorgon Script parser and reflection facilities.
 

Macros

#define MAP_COMPARE(opname, op, mappedtype, cpptype)
 Creates a comparison function. More...
 

Typedefs

template<class T_ >
using ParseFn = T_(*)(const std::string &)
 
template<class T_ >
using StringFromFn = std::string(*)(const T_ &)
 

Functions

template<class from_ , class to_ >
Scripting::Function::Overload * MapConstDynamiccast (Type *from, Type *to, bool implicit=true)
 Maps a constructor for type casting, works for polymorphic types. More...
 
template<class from_ , class to_ >
Scripting::Function::Overload * MapConstStaticcast (Type *from, Type *to, bool implicit=true)
 Maps a constructor for type casting, works for const reference types. More...
 
template<class from_ , class to_ >
Scripting::Function::Overload * MapDynamiccast (Type *from, Type *to, bool implicit=true)
 Maps a constructor for type casting, works for polymorphic types. More...
 
template<class T_ , class I_ >
void MapDynamicInheritance (Type *type, Type *inherited)
 
template<class F_ , class ... P_>
Scripting::Function::Overload * MapFunction (F_ fn, const Type *returntype, ParameterList parameters, bool stretchlast, bool repeatlast, bool accessible, bool constant, bool returnsref, bool returnsconst, bool implicit)
 
template<class F_ , class ... P_>
Scripting::Function::Overload * MapFunction (F_ fn, const Type *returntype, ParameterList parameters, P_ ...tags)
 
template<class F_ >
InstanceMemberMapFunctionToInstanceMember (F_ reader, const std::string &name, const std::string &help, const Type *membertype, const Type *parenttype)
 This function will map a const data returning function to a read-only, non-ref, const instance member. More...
 
template<class F_ , class ... P_>
Scripting::Function::Overload * MapOperator (F_ fn, const Type *returntype, const Type *rhs)
 
template<class from_ , class to_ >
Scripting::Function::Overload * MapStaticcast (Type *from, Type *to, bool implicit=true)
 Maps a constructor for type casting, works for reference types. More...
 
template<class from_ , class to_ >
Scripting::Function::Overload * MapTypecast (Type *from, Type *to, bool implicit=true)
 Maps a constructor for type casting, works for value types. More...
 
template<class T_ >
T_ ParseThrow (const std::string &)
 
template<class T_ >
std::string ToEmptyString (const T_ &)
 

Macro Definition Documentation

◆ MAP_COMPARE

#define MAP_COMPARE (   opname,
  op,
  mappedtype,
  cpptype 
)

Creates a comparison function.