ug4
ug::bridge Namespace Reference

Namespaces

 AdaptiveTools
 
 AlgebraCommon
 
 Constraints
 
 DiscAlgebra
 
 Domain
 
 domain_ray_tracing
 
 DomainDisc
 
 Eigensolver
 
 ElemDiscs
 
 Evaluate
 
 FiniteVolume
 
 GridFunction
 
 Integrate
 
 Interpolate
 
 LoadBalancing
 
 lua
 
 LuaUserData
 
 MaxError
 
 MultiGrid
 
 Obstacle
 
 Ordering
 
 Output
 
 periodicBoundary
 
 Preconditioner
 
 Refinement
 
 Restart
 
 Schur
 
 Selection
 
 Solver
 
 SuperLUBridge
 
 Transform
 
 UserDataBridge
 

Classes

struct  AlgebraTypeIDProvider
 
class  AllowName
 
class  Base
 
class  Base0
 
class  Base1
 
class  Base2
 
class  Base3
 
class  Cake
 
class  ClassCastProvider
 provides castings from derived classes to base classes More...
 
class  ClassGroupDesc
 groups classes. One of the members is the default member. More...
 
class  ClassHierarchy
 Class Hierarchy Helper Class for UG Registry This class stores class names and their subclasses. More...
 
class  ClassNameNode
 node for class names More...
 
class  ClassNameProvider
 provides the name for a class More...
 
struct  CLI_Functionality
 
class  ConstClass
 
struct  constructor_traits
 
struct  constructor_traits< T, TypeList< T1 > >
 
struct  constructor_traits< T, TypeList< T1, T2 > >
 
struct  constructor_traits< T, TypeList< T1, T2, T3 > >
 
struct  constructor_traits< T, TypeList< T1, T2, T3, T4 > >
 
struct  constructor_traits< T, TypeList< T1, T2, T3, T4, T5 > >
 
struct  constructor_traits< T, TypeList< T1, T2, T3, T4, T5, T6 > >
 
struct  constructor_traits< T, TypeList< T1, T2, T3, T4, T5, T6, T7 > >
 
struct  constructor_traits< T, TypeList< T1, T2, T3, T4, T5, T6, T7, T8 > >
 
struct  constructor_traits< T, TypeList<> >
 
struct  ConstructorProxy
 
struct  CreateParameterInfo
 
struct  CreateParameterInfo< TypeList<> >
 
struct  CreateParameterInfoOut
 Creation of return value. More...
 
struct  CreateParameterInfoOut< CustomReturn >
 
struct  CreateParameterInfoOut< void >
 Creation of void return value (template specialization) More...
 
class  CustomReturn
 
class  Derived
 
class  ExpandLayersDesc
 A helper class for ExpandLayers. More...
 
class  ExportedClass
 This template class represents real c++ classes in the registry. More...
 
class  ExportedClassBaseImpl
 A base implementation with non-template methods. More...
 
class  ExportedConstructor
 describing information for constructor More...
 
class  ExportedFunction
 This class describes a wrapper for a c++ - function, that is exported by ug. More...
 
class  ExportedFunctionBase
 Base class for function/method export. More...
 
class  ExportedFunctionGroup
 Groups of Functions - useful to realize overloaded functions. More...
 
class  ExportedMethod
 
class  ExportedMethodGroup
 Groups of methods - useful to realize overloaded methods. More...
 
struct  func_traits
 
struct  func_traits< TRet(*)()>
 
struct  func_traits< TRet(*)(P1)>
 
struct  func_traits< TRet(*)(T1, T2)>
 
struct  func_traits< TRet(*)(T1, T2, T3)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5, T6)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5, T6, T7)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5, T6, T7, T8)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5, T6, T7, T8, T9)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>
 
struct  func_traits< TRet(*)(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>
 
struct  func_traits< TRet(TClass::*)() const >
 
struct  func_traits< TRet(TClass::*)()>
 
struct  func_traits< TRet(TClass::*)(P1) const >
 
struct  func_traits< TRet(TClass::*)(P1)>
 
struct  func_traits< TRet(TClass::*)(T1, T2) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2)>
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3)>
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4)>
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5)>
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6)>
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6, T7) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6, T7)>
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6, T7, T8) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6, T7, T8)>
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6, T7, T8, T9) const >
 
struct  func_traits< TRet(TClass::*)(T1, T2, T3, T4, T5, T6, T7, T8, T9)>
 
struct  func_traits< xp::xproperty< V, M > O::* >
 
struct  Functionality
 
struct  FunctionProxy
 
struct  FunctionProxy< TFunc, void >
 
class  FurtherDerived
 
class  IExportedClass
 Base class for exported Classes. More...
 
class  Intermediate0
 
class  Intermediate1
 
class  JSONConstructible
 
class  LUACompiler
 
class  LuaStackCheck
 
class  Message
 
class  MessageHubTest
 
struct  MethodProxy
 
struct  MethodProxy< TClass, TMethod, CustomReturn >
 
struct  MethodProxy< TClass, TMethod, void >
 
class  MethodPtrWrapper
 
class  MultipleDerived
 
class  NonAllowedName1
 
class  NonAllowedName2
 
class  NonAllowedName3
 
class  NonAllowedName4
 
class  ParameterInfo
 a stack holding parameter infos about a parameter stack More...
 
class  ParameterStack
 A stack that can hold values together with their type-id. More...
 
struct  ParameterStackToTypeValueList
 
struct  ParameterStackToTypeValueList< TypeList<>, index >
 
class  Piece
 
struct  RegisterAlgebraDependent
 
struct  RegisterDomain1dAlgebraDependent
 
struct  RegisterDomain2d3dAlgebraDependent
 
struct  RegisterDomain2dAlgebraDependent
 
struct  RegisterDomain3dAlgebraDependent
 
struct  RegisterDomainAlgebraDependent
 
struct  RegisterDomainDependent
 
class  Registry
 Registry for functions and classes that are exported to scripts and visualizations. More...
 
class  SmartTest
 SmartTest is a test-class which shall only be used encapsulated in a smart-pointer. More...
 
class  SmartTestDerived
 
class  Test
 
class  TestMessage
 
struct  UG_REGISTRY_ERROR_FunctionOrMethodNameMissing
 Exception throw, if method name has not been given. More...
 
struct  UGError_ClassCastFailed
 
struct  UGRegistryError
 
class  Unregistered
 
struct  xproperty_traits
 

Typedefs

typedef boost::mpl::list< end_boost_listCompileAlgebraList
 
typedef boost::mpl::list<> CompileDomainList
 
typedef boost::function< void(Registry *pReg)> FuncRegistryChanged
 declaration of registry callback function. More...
 
typedef SmartPtr< SmartTestSPSmartTest
 
typedef SmartPtr< SmartTestDerivedSPSmartTestDerived
 

Functions

string Add (const char *a, const char *b)
 
int Add (int a, int b)
 
int Add (int a, int b, int c)
 
template<class TClass >
void CastAndDelete (const void *ptr)
 Performs a reinterpret cast on the given pointer, then calls delete on it. More...
 
template<>
void CastAndDelete< void > (const void *ptr)
 
string ClassHierarchyString (const Registry &reg, const char *classname)
 
string ClassInfo (const IExportedClass &c)
 Prints the (const) method of one class. More...
 
string ClassInfo (const Registry &reg, const char *classname)
 
bool ClassInstantiations (const char *classname)
 this function prints all objects which are of a certain class More...
 
bool ClassNameTreeContains (const ClassNameNode &node, const std::string &name)
 returns if a name is contained in the name tree at node or in base classes More...
 
bool ClassNameTreeWay (std::vector< size_t > &vWay, const ClassNameNode &node, const std::string &name)
 
bool ClassNameVecContains (const std::vector< const char * > &names, const std::string &name)
 returns if a name is contained in the name vector More...
 
string ClassUsage (const char *classname)
 
string ClassUsageExact (const Registry &reg, const char *classname, bool OutParameters)
 
int CompletionFunction (char *buf, int len, int buflen, int iPrintCompletionList)
 A function to implement word completion of classes and functions of ugscript When entered Dom<tab>, it completes to Domain2d, for example. If Domain2d and Domain3d are registered, it completes to Domain and shows suggestions Domain2d and Domain3d. currently only works with Linenoise. todo: - not all completions must have same snipped length. change. More...
 
string ConstructorInfo (const ExportedConstructor &constr, const char *classname, const char *highlightclassname)
 
int ConstSmartTestFunc (ConstSmartPtr< Test > test)
 
ConstSmartPtr< TestConstSmartTestImpl ()
 
template<typename T >
void ConstStdVectorRefOfClass (const std::vector< T > &vec)
 
int ConstTestFunc (const Test &t)
 calls const print on const object of class Test More...
 
int convert (const char *functionName)
 
int convertVM (const char *functionName)
 
const FurtherDerivedCreateConstFurtherDerived ()
 
bool CreateHierarchy (MultiGrid &mg, size_t numRefs)
 
bool CreateSmoothHierarchy (MultiGrid &mg, size_t numRefs)
 
debug_return DebugShell ()
 
template<typename TClass >
void DestructorProxy (void *obj)
 
void EnableLUA2C (bool b)
 
void EnableLUA2VM (bool b)
 
static void errlog (const char *msg)
 
static int ExecuteSystemCommand (const char *cmd)
 
void ExtractClassNameVec (std::vector< const char * > &names, const ClassNameNode &node, bool clearVec=true)
 returns the vector containing all names in the name tree for node and its base classes More...
 
string FilenameStringEscape (string s)
 
const ExportedFunctionFindFunction (const Registry &reg, const char *functionname)
 
string FunctionInfo (const ExportedFunctionBase &thefunc, bool isConst, const char *classname, const char *highlightclassname, bool bPrintHelp)
 
string FunctionInfo (const Registry &reg, const char *functionname)
 
string FunctionInfo (lua_State *L, bool bComplete, const char *functionName=NULL)
 prints out information for a lua function (a function defined in lua script) More...
 
template<typename TAlgebra >
std::string GetAlgebraSuffix ()
 returns the algebra-suffix (e.g. "CPU3", "CPUFlex") More...
 
template<typename TAlgebraTypeType >
std::string GetAlgebraSuffix (const TAlgebraTypeType &algType)
 returns the algebra-suffix (e.g. "CPU3", "CPUFlex") More...
 
template<typename TAlgebra >
std::string GetAlgebraTag ()
 returns the algebra-suffix (e.g. "alg=CPU3", "alg=CPUVariable") More...
 
template<typename TAlgebraTypeType >
std::string GetAlgebraTag (const TAlgebraTypeType &algType)
 returns the algebra-suffix (e.g. "alg=CPU3", "alg=CPUVariable") More...
 
static string GetAppsPath ()
 
static string GetBinPath ()
 
string GetBuildHostname ()
 
static size_t GetClassesCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen, int iPrintCompletionList)
 
void GetClassHierarchy (ClassHierarchy &hierarchy, const Registry &reg)
 
template<typename TClass >
const char * GetClassName ()
 
const ClassNameNodeGetClassNameNode (lua_State *L, int index)
 
const std::vector< const char * > * GetClassNames (lua_State *L, const char *name)
 
const std::vector< const char * > * GetClassNames (lua_State *L, int index)
 
double GetClockS ()
 
string GetCompileDate ()
 
static string GetCurrentPath ()
 
template<int dim, typename TAlgebra >
std::string GetDimensionAlgebraSuffix ()
 returns the algebra-dim-suffix for a domain (e.g. "3dCPU1") More...
 
template<int dim, typename TAlgebra >
std::string GetDimensionAlgebraTag ()
 returns the dim-tag for a domain (e.g. "dim=3d;alg=CPU1;") More...
 
template<typename TAlgebraTypeType >
std::string GetDimensionAlgebraTag (int dim, const TAlgebraTypeType &algType)
 returns dim tag at runtime (e.g. "dim=3d;alg=CPU1;") More...
 
template<int dim>
std::string GetDimensionSuffix ()
 returns the dim-suffix for a domain (e.g. "3d") More...
 
template<int dim>
std::string GetDimensionTag ()
 returns the dim-tag for a domain (e.g. "dim=3d") More...
 
std::string GetDimensionTag (int dim)
 returns dim tag at runtime (e.g. "dim=3d") More...
 
std::vector< std::string > GetDirsInDir (const char *dir)
 
template<typename TDomain , typename TAlgebra >
std::string GetDomainAlgebraSuffix ()
 returns the dim-suffix for a domain (e.g. "3dCPU1") More...
 
template<typename TDomain , typename TAlgebra >
std::string GetDomainAlgebraTag ()
 returns the dim-tag for a domain (e.g. "dim=3d;alg=CPU1;") More...
 
template<typename TDomain >
std::string GetDomainSuffix ()
 returns the dim-suffix for a domain (e.g. "3d") More...
 
template<typename TDomain >
std::string GetDomainTag ()
 returns the dim-tag for a domain (e.g. "dim=3d") More...
 
string GetFileLinesLUA (const char *filename, size_t fromline, size_t toline)
 
std::vector< std::string > GetFilesInDir (const char *dir)
 
string GetGITRevision ()
 
static bool GetGlobalFunctionInfo (char *buf, int len)
 
static size_t GetGlobalsCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen, int iPrintCompletionList)
 
uint32 GetLogAssistantTag (const char *s)
 
std::string GetLuaFileAndLine (lua_State *L)
 returns the current file and line ( More...
 
bool GetLuaFileAndLine (lua_State *L, std::string &file, size_t &line)
 returns the current file and line ( More...
 
std::string GetLuaFileAndLineNumber (lua_State *L)
 returns the current file and line-number More...
 
void GetLuaGlobal_classInstantiations (std::vector< std::string > &classInstantiations)
 
void GetLuaGlobal_functions (std::vector< std::string > &functions)
 
void GetLuaGlobal_internalFunctions (std::vector< std::string > &internalFunctions)
 
void GetLuaGlobal_luaObjects (std::vector< std::string > &luaObjects)
 
void GetLuaGlobal_scriptFunctions (std::vector< std::string > &scriptFunctions)
 
void GetLuaGlobals (std::vector< std::string > *functions, std::vector< std::string > *internalFunctions, std::vector< std::string > *scriptFunctions, std::vector< std::string > *luaObjects, std::vector< std::string > *classInstantiations)
 function to list all objects of the default LUA state More...
 
std::string GetLuaLine (lua_State *L)
 returns the current line-content More...
 
UG_API bool GetLuaNamespace (lua_State *L, std::string name)
 
bool GetLuaNamespace (lua_State *L, string name)
 searches for a namespaces (lists) and pushes it onto the stack More...
 
string GetLUAScriptFunctionDefined (const char *functionName)
 returns file and line of defined script function More...
 
string GetLuaTypeString (lua_State *L, int index)
 
static size_t GetMemberFunctionCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen)
 
static bool GetMemberFunctionInfo (char *buf, int len)
 
static size_t GetNamespaceCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen, int iPrintCompletionList)
 
string GetOperatingSystem ()
 
static size_t GetOtherCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen)
 
size_t GetPathCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen)
 
static string GetRootPath ()
 
static string GetScriptPath ()
 
string GetSVNRevision ()
 
int GetUGDim ()
 returns the dimension to which UG was initialized through InitUG More...
 
RegistryGetUGRegistry ()
 returns the default registry used in ug More...
 
void InitBridge ()
 calls RegisterStandardInterfaces More...
 
void InitShell ()
 
void InitSignals ()
 
void InitUG (int dim, const AlgebraType &algebraType)
 Sets the default classes of class-groups based on a tags using default DoFManager. More...
 
void InitUG (int dim, const AlgebraType &algType, bool verbose)
 Sets the default classes of class-groups based on a tags. More...
 
void InitUGPlugin_SuperLU6 (Registry *reg, string grp)
 
void int_srand (int seed)
 
bool IsClassInParameters (const ParameterInfo &par, const char *classname)
 
bool IsDefinedBLAS_AVAILABLE ()
 
bool IsDefinedLAPACK_AVAILABLE ()
 
bool IsDefinedPCL_DEBUG_BARRIER_ENABLED ()
 
bool IsDefinedPROFILE_PCL ()
 
bool IsDefinedUG_ALGEBRA ()
 
bool IsDefinedUG_BRIDGE ()
 
bool IsDefinedUG_CPU_1 ()
 
bool IsDefinedUG_CPU_2 ()
 
bool IsDefinedUG_CPU_3 ()
 
bool IsDefinedUG_CPU_4 ()
 
bool IsDefinedUG_CPU_5 ()
 
bool IsDefinedUG_CPU_6 ()
 
bool IsDefinedUG_CPU_VAR ()
 
bool IsDefinedUG_DEBUG ()
 
bool IsDefinedUG_DIM_1 ()
 
bool IsDefinedUG_DIM_2 ()
 
bool IsDefinedUG_DIM_3 ()
 
bool IsDefinedUG_ENABLE_DEBUG_LOGS ()
 
bool IsDefinedUG_FOR_VRL ()
 
bool IsDefinedUG_HLIBPRO ()
 
bool IsDefinedUG_HYPRE ()
 
bool IsDefinedUG_JSON ()
 
bool IsDefinedUG_PARALLEL ()
 
bool IsDefinedUG_PLUGINS ()
 
bool IsDefinedUG_PROFILER ()
 
bool IsDefinedUG_STATIC ()
 
bool IsDefinedUG_TETGEN ()
 
template<class T >
static bool IsValidPtr (T *o)
 
bool LoadGrid (Grid &grid, const char *filename)
 
bool LoadGrid (Grid &grid, ISubsetHandler &sh, const char *filename)
 
string LuaClassMethodInfo (lua_State *L, int index, const ExportedMethod &thefunc)
 prints out information for a method of a class More...
 
string LuaCurrentLine (lua_State *L)
 
bool LuaGetBoolean (lua_State *L, const char *name, bool notAvailable)
 returns a boolean to a lua-variable. More...
 
void LuaGetLastLine (lua_State *L, lua_Debug entry)
 
double LuaGetNumber (lua_State *L, const char *name, double notAvailable)
 returns an integer to a lua-variable. More...
 
string LuaGetScriptFunctionString (lua_State *L, int index=-1)
 prints the source of a lua script function which is on top of the stack More...
 
string LuaGetString (lua_State *L, const char *name, const char *notAvailable)
 returns the string to a lua-variable. More...
 
void LuaList ()
 
void LuaList_cfunctions ()
 
void LuaList_classes ()
 
void LuaList_classInstantiations ()
 
void LuaList_internalFunctions ()
 
void LuaList_luaObjects ()
 
void LuaList_scriptFunctions ()
 
void LuaPrintTable (lua_State *L, size_t iSpace, int index)
 prints the source of a lua script function which is on top of the stack More...
 
int LuaStackToParams (ParameterStack &ps, const ParameterInfo &psInfo, lua_State *L, int offsetToFirstParam=0)
 copies parameter values from the lua-stack to a parameter-list. More...
 
void LuaStackTrace (int fromlevel)
 prints information about lua's call stack (file:line source). More...
 
std::string LuaStackTraceString ()
 
string LuaStackTraceString (lua_State *L, int fromLevel=0, int toLevel=-1)
 prints information about lua's call stack (file:line source). More...
 
string LUAStringEscape (string s)
 
void LuaWrite (const char *filename, const char *obj)
 
void LuaWriteCout (const char *obj)
 
void NonAllowedFct1 ()
 
void NonAllowedFct2 ()
 
void NonAllowedFct3 ()
 
void NotAllowedParamPerValue (Piece P)
 
template<typename T >
static T ParallelMax (T t)
 
template<typename T >
static T ParallelMin (T t)
 
template<typename T >
static T ParallelSum (T t)
 
template<typename T >
static vector< T > ParallelVecMax (const vector< T > &t)
 
template<typename T >
static vector< T > ParallelVecMin (const vector< T > &t)
 
template<typename T >
static vector< T > ParallelVecSum (const vector< T > &t)
 
string ParameterToString (const ParameterInfo &par, int i)
 Gets a description of the i-th parameter of a ParameterStack todo: perhaps this function would be better somewhere else like in parameter_stack.cpp. More...
 
template<typename T >
static void ParamStackEntryToLuaStack (const ParameterStack &ps, lua_State *L, int index, bool bIsVector)
 
template<typename T >
static void ParamStackPointerEntryToLuaStack (const ParameterStack &ps, lua_State *L, int index, bool bIsVector)
 
int ParamsToLuaStack (const ParameterStack &ps, lua_State *L)
 Pushes the parameter-values to the Lua-Stack. More...
 
static bool PclAllProcsTrue (bool bTrue)
 
static void PclDebugBarrierAll ()
 
static bool PclDebugBarrierEnabled ()
 
void PostRegisteredFunction ()
 
void PostRegisterTest ()
 
void print (const std::string &s)
 
void PrintBuildConfiguration ()
 prints CMake build parameters in a quite compact (pairwise) form More...
 
void PrintBuildConfigurationExtended ()
 
void PrintClassSubHierarchy (ClassHierarchy &c, int level)
 
template<typename T >
void PrintConstStdVectorRef (const std::vector< T > &vec)
 
void PrintFunction (Base &b)
 
void PrintFunction (Base3 &b)
 
void PrintFunction (SmartPtr< Base2 > b)
 
void PrintFunction (SmartPtr< Base3 > b)
 
void PrintFunctionIntermediate (Intermediate0 &b)
 
void PrintFunctionIntermediate (SmartPtr< Intermediate1 > b)
 
void PrintHelloWorldToScreen ()
 
template<typename T >
string PrintParametersIn (const T &thefunc, const char *highlightclassname)
 
string PrintParametersOut (const ExportedFunctionBase &thefunc)
 
template<typename T >
void PrintStdVector (std::vector< T > vec)
 
template<typename T >
void PrintStdVectorOfClass (std::vector< T > vec)
 
void PrintStringTest (const std::string &str)
 
template<typename T >
static bool PushLuaStackEntryToParamStack (ParameterStack &ps, lua_State *L, int index, bool bIsVector)
 
template<typename T >
static bool PushLuaStackPointerEntryToParamStack (ParameterStack &ps, lua_State *L, int index, const char *baseClassName, bool bIsVector)
 
void RegisterBridge_AdaptiveTools (Registry &reg, string grp)
 
void RegisterBridge_AlgebraCommon (Registry &reg, string grp)
 
void RegisterBridge_AlgebraOrdering (Registry &reg, string grp)
 
void RegisterBridge_ConstrainedLinearIterator (Registry &reg, string grp)
 
void RegisterBridge_Constraints (Registry &reg, string grp)
 
void RegisterBridge_DiscAlgebra (Registry &reg, string grp)
 
void RegisterBridge_DiscCommon (Registry &reg, std::string grp=UG4_GRP)
 Registers the common part of lib_discretization. More...
 
void RegisterBridge_DiscCommon (Registry &reg, string parentGroup)
 
void RegisterBridge_Domain (Registry &reg, std::string grp=UG4_GRP)
 Registers the domain object and related methods. More...
 
void RegisterBridge_Domain (Registry &reg, string grp)
 
void RegisterBridge_DomainDependentPreconditioner (Registry &reg, string grp)
 
void RegisterBridge_DomainDisc (Registry &reg, string grp)
 
void RegisterBridge_DomainRayTracing (Registry &reg, std::string grp=UG4_GRP)
 Registers methods to perform ray-tracing on domains. More...
 
void RegisterBridge_DomainRayTracing (Registry &reg, string grp)
 
void RegisterBridge_Eigensolver (Registry &reg, string grp)
 
void RegisterBridge_ElemDiscs (Registry &reg, std::string grp=UG4_GRP)
 Registers the element discretizations. More...
 
void RegisterBridge_ElemDiscs (Registry &reg, string grp)
 
void RegisterBridge_Evaluate (Registry &reg, string grp)
 
void RegisterBridge_FiniteVolume (Registry &reg, string grp)
 
void RegisterBridge_GPU (Registry &reg, string grp)
 
void RegisterBridge_Grid (Registry &reg, std::string grp=UG4_GRP)
 registers lib-grid interface methods at the registry. More...
 
void RegisterBridge_Grid (Registry &reg, string parentGroup)
 
void RegisterBridge_GridFunction (Registry &reg, string grp)
 
void RegisterBridge_Integrate (Registry &reg, string grp)
 
void RegisterBridge_Interpolate (Registry &reg, string grp)
 
void RegisterBridge_LoadBalancing (Registry &reg, std::string grp=UG4_GRP)
 registers LoadBalancer, partitioners, etc More...
 
void RegisterBridge_LoadBalancing (Registry &reg, string grp)
 
void RegisterBridge_ManifoldUtil (Registry &reg, string grp)
 
void RegisterBridge_MaxError (Registry &reg, string grp)
 
void RegisterBridge_Misc (Registry &reg, std::string grp=UG4_GRP)
 
void RegisterBridge_Misc (Registry &reg, string parentGroup)
 
void RegisterBridge_MultiGrid (Registry &reg, string grp)
 
void RegisterBridge_Obstacle (Registry &reg, string grp)
 
void RegisterBridge_Ordering (Registry &reg, string grp)
 
void RegisterBridge_OrthoPoly (Registry &reg, std::string grp=UG4_GRP)
 registers orthogonal polynomials More...
 
void RegisterBridge_Output (Registry &reg, string grp)
 
void RegisterBridge_PCL (Registry &reg, std::string grp=UG4_GRP)
 registers methods for a parallel environment More...
 
void RegisterBridge_PCL (Registry &reg, string parentGroup)
 
void RegisterBridge_PeriodicBoundary (Registry &reg, std::string grp=UG4_GRP)
 Registers periodic boundary identification. More...
 
void RegisterBridge_PeriodicBoundary (Registry &reg, string grp)
 
void RegisterBridge_PILUT (Registry &reg, std::string grp)
 
void RegisterBridge_Preconditioner (Registry &reg, string grp)
 
void RegisterBridge_Profiler (Registry &reg, std::string grp=UG4_GRP)
 registers access to profiling functions at the registry More...
 
void RegisterBridge_Profiler (Registry &reg, string parentGroup)
 
void RegisterBridge_Raster (Registry &reg, std::string grp=UG4_GRP)
 registers rasters, e.g. for 1,2,3 dimensional image data or density distributions More...
 
void RegisterBridge_Raster (Registry &reg, string parentGroup)
 
void RegisterBridge_ReferenceMappingTest (Registry &reg, std::string grp=UG4_GRP)
 registers reference mapping test functionality (common) More...
 
void RegisterBridge_ReferenceMappingTest (Registry &reg, string grp)
 
void RegisterBridge_Refinement (Registry &reg, std::string grp=UG4_GRP)
 Registers refiners and marking methods. More...
 
void RegisterBridge_Refinement (Registry &reg, string grp)
 
void RegisterBridge_Restart (Registry &reg, string grp)
 
void RegisterBridge_Schur (Registry &reg, string grp)
 
void RegisterBridge_Selection (Registry &reg, std::string grp=UG4_GRP)
 Registers methods to perform selections on the elements of a domain. More...
 
void RegisterBridge_Selection (Registry &reg, string grp)
 
void RegisterBridge_Solver (Registry &reg, string grp)
 
void RegisterBridge_SuperLU (TRegistry &reg, string grp)
 
void RegisterBridge_Test (Registry &reg, std::string grp=UG4_GRP)
 registers tests for the interface methods at the registry. More...
 
void RegisterBridge_Test (Registry &reg, string parentGroup)
 
void RegisterBridge_Transform (Registry &reg, std::string grp=UG4_GRP)
 Registers methods to transform the vertices of a domain. More...
 
void RegisterBridge_Transform (Registry &reg, string grp)
 
void RegisterBridge_UserData (Registry &reg, std::string grp=UG4_GRP)
 registers user data More...
 
void RegisterBridge_UserData (Registry &reg, string grp)
 
void RegisterBridge_Util (Registry &reg, std::string grp=UG4_GRP)
 registers some util methods like path-access and script-parsing. More...
 
void RegisterBridge_Util (Registry &reg, string parentGroup)
 
void RegisterBridge_VecMath (Registry &reg, std::string grp=UG4_GRP)
 Registers types and functions for 1, 2, 3 and 4 dimensional vector math. More...
 
void RegisterBridge_VecMath (Registry &reg, string parentGroup)
 
template<typename Functionality >
void RegisterCommon (Registry &reg, std::string grp)
 
bool RegisterConverter (Registry &reg, const char *parentGroup)
 
template<int dim>
static void RegisterDegeneratedLayerManager (Registry &reg, string grp)
 
template<typename Functionality >
void RegisterDimension1dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDimension2d3dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDimension2dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDimension3dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDimensionDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDomain1dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDomain2d3dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDomain2dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void RegisterDomain3dDependent (Registry &reg, std::string grp)
 
template<int dim>
void RegisterGeometry (Registry &reg, string grp)
 
void RegisterGridBridge_Balancing (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_Balancing (Registry &reg, string parentGroup)
 
void RegisterGridBridge_Debug (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_Debug (Registry &reg, string parentGroup)
 
void RegisterGridBridge_FileIO (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_FileIO (Registry &reg, string parentGroup)
 
void RegisterGridBridge_Grid (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_Grid (Registry &reg, string parentGroup)
 
void RegisterGridBridge_Layers (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_Layers (Registry &reg, string parentGroup)
 
void RegisterGridBridge_Misc (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_Misc (Registry &reg, string parentGroup)
 
void RegisterGridBridge_Refinement (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_Refinement (Registry &reg, string parentGroup)
 
void RegisterGridBridge_Selector (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_Selector (Registry &reg, string parentGroup)
 
void RegisterGridBridge_SubsetHandler (Registry &reg, std::string parentGroup)
 
void RegisterGridBridge_SubsetHandler (Registry &reg, string parentGroup)
 
bool RegisterInfoCommands (bridge::Registry &reg, const char *grp)
 registers info commands TypeInfo, ClassUsage and others More...
 
void RegisterLuaUserData (Registry &reg, std::string grp)
 
void RegisterLuaUserData (Registry &reg, string grp)
 
template<class TValue , int TDIM>
static void RegisterRaster (Registry &reg, string name, string grp)
 
template<class TValue , int dim>
static void RegisterRasterUserData (Registry &reg, string name, string grp)
 
bool RegisterSerializationCommands (Registry &reg, const char *parentGroup)
 
UG_API void RegisterStandardBridges (Registry &reg, std::string grp=UG4_GRP)
 registers all standard interfaces. More...
 
void RegisterStandardBridges (Registry &reg, string parentGroup)
 
template<typename TData , int dim, typename TTraits = user_data_traits<TData>>
void RegisterUserDataType (Registry &reg, string grp)
 
template<typename TData , int dim, typename TTraits = user_data_traits<TData>>
void RegisterUserDataTypeA (Registry &reg, string grp)
 
template<typename TData , int dim, typename TTraits = user_data_traits<TData>>
void RegisterUserDataTypeB (Registry &reg, string grp)
 
static void RegisterVecMathBridge_DimIndep (Registry &reg, string grp)
 
template<typename T >
const std::vector< T > & ReturnConstStdVectorRef_Number ()
 
const std::vector< std::string > & ReturnConstStdVectorRef_String ()
 
template<typename T >
const std::vector< T > & ReturnConstStdVectorRefOfClass ()
 
template<typename T >
const std::vector< T > & ReturnConstStdVectorRefOfClassSP ()
 
template<typename T >
std::vector< T > ReturnStdVector_Number ()
 
std::vector< std::string > ReturnStdVector_String ()
 
template<typename T >
std::vector< T > ReturnStdVectorOfClass ()
 
int RunShell (const char *prompt)
 
bool SaveGrid (Grid &grid, const char *filename)
 
bool SaveGrid (Grid &grid, const ISubsetHandler &sh, const char *filename)
 
bool SaveGrid (Grid &grid, ISubsetHandler &sh, const char *filename)
 
bool SaveGridHierarchy (MultiGrid &mg, const char *filename)
 
bool ScriptHasClass (const char *classname)
 
bool ScriptHasClassGroup (const char *classname)
 
void ScriptPrintClassHierarchy (const char *classname)
 
void ScriptPrintClassUsage (const char *classname)
 
void SetDebugLevel (const char *strTag, int level)
 
void SetLuaNamespace (string name, string value)
 
void SetLuaNamespaceInTable (string name, string value)
 
void SetMinSecondsUntilProgress (size_t s)
 
void SetOtherCompletions (const char **otherCompletions, int nr)
 
SmartPtr< MultipleDerivedSmartMultipleDerivedImpl ()
 
void SmartTestArrived (SPSmartTest test)
 
int SmartTestFunc (SmartPtr< Test > test)
 
SmartPtr< TestSmartTestImpl ()
 
template<typename TBase , typename TDerived >
void * StaticVoidCast (void *DerivVoidPtr)
 static cast function for two classes More...
 
string StdStringTest ()
 
const char * StringTest ()
 
int TestFunc (Test &t)
 calls non-const print on non-const object of class Test More...
 
void TestMsgCallback (const TestMessage &msg)
 
bool TestNTree (const char *filename)
 
void TestPageContainer ()
 
const TestToConst (Test &test)
 returns a const reference to a non-const object of class Test More...
 
void ug_cacheline (string str)
 
string ug_readline (const char *prompt, bool &quit)
 
int UGTypeInfo (const char *p)
 Prints info to a lua type. More...
 
UnregisteredUnregisteredParameterTest (Unregistered &unregistered)
 
void WriteLUAObject (lua_State *L, std::string name, std::ostream &s)
 
void WriteLUAObject2 (lua_State *L, std::string name, std::ostream &s)
 
void RegisterBridge_OrthoPoly (Registry &reg, string parentGroup)
 

Variables

int iOtherCompletitionsLength
 
static const size_t NUM_ALGEBRA_TYPES = boost::mpl::size<CompileAlgebraList>::type::value - 1
 
const char ** pOtherCompletitions =NULL
 
const char * REFINEMENT_MESSAGE_NAME = "MSG_GRID_ADAPTION"
 
static int UG4_DIM = -1
 the dimension to which ug was initialized through InitUG More...
 
const char * UG4_GRP = "/ug4"
 string for ug4 group More...
 

Function Documentation

◆ ClassInstantiations()

UG_API bool ug::bridge::ClassInstantiations ( const char *  classname)

this function prints all objects which are of a certain class

Parameters
classnamethe class name to be searched
Returns
true if class found, otherwise false

References ClassNameVecContains(), ug::bridge::Registry::get_class(), GetClassNames(), ug::script::GetDefaultLuaState(), GetUGRegistry(), LUA_STACK_CHECK, UG_ASSERT, and UG_LOG.

Referenced by ClassUsage(), RegisterInfoCommands(), and UGTypeInfo().

◆ ClassUsage()

string ug::bridge::ClassUsage ( const char *  classname)
Parameters
classnamethe class to print usage in functions/member functions of (and all its subclasses) . class in in/out parameters is highlighted with [class].
Returns
true if class found, otherwise fals

References ug::bridge::IExportedClass::class_names(), ClassInstantiations(), ClassUsageExact(), ug::bridge::Registry::get_class(), and GetUGRegistry().

Referenced by ScriptPrintClassUsage().

◆ convert()

int ug::bridge::convert ( const char *  functionName)

◆ convertVM()

◆ CreateHierarchy()

bool ug::bridge::CreateHierarchy ( MultiGrid mg,
size_t  numRefs 
)

◆ CreateSmoothHierarchy()

◆ DebugShell()

◆ EnableLUA2C()

void ug::bridge::EnableLUA2C ( bool  b)

◆ EnableLUA2VM()

void ug::bridge::EnableLUA2VM ( bool  b)

References ug::useLua2VM, and ug::useLuaCompiler.

Referenced by RegisterInfoCommands().

◆ FunctionInfo()

UG_API std::string ug::bridge::FunctionInfo ( lua_State L,
bool  bComplete,
const char *  functionName = NULL 
)

prints out information for a lua function (a function defined in lua script)

Parameters
Lthe lua state
bCompleteif complete, we print the source code of the function
Returns
0

References ug::GetFileLine(), GetFileLinesLUA(), and LUA_STACK_CHECK.

Referenced by ug::bridge::lua::ExecuteMethod(), GetGlobalFunctionInfo(), GetMemberFunctionInfo(), LuaClassMethodInfo(), LuaList_cfunctions(), ug::bridge::lua::LuaProxyFunction(), and UGTypeInfo().

◆ GetClassNameNode()

UG_API const ClassNameNode * ug::bridge::GetClassNameNode ( lua_State L,
int  index 
)
Parameters
Lthe lua state
indexthe index of the lua object
Returns
the corresponing ClassNameNode
See also
ClassNameNode

References LUA_STACK_CHECK.

Referenced by GetLuaTypeString().

◆ GetClassNames() [1/2]

UG_API const std::vector< const char * > * ug::bridge::GetClassNames ( lua_State L,
const char *  name 
)
Parameters
Lthe lua state
namethe name of the lua object
Returns
the class names of the object or NULL if not found

References name, and p.

Referenced by ClassInstantiations(), LuaClassMethodInfo(), and LuaList_classInstantiations().

◆ GetClassNames() [2/2]

UG_API const std::vector< const char * > * ug::bridge::GetClassNames ( lua_State L,
int  index 
)
Parameters
Lthe lua state
indexthe index of the lua object
Returns
a std::vector of class names

References LUA_STACK_CHECK, and p.

Referenced by GetMemberFunctionCompletitions(), and GetMemberFunctionInfo().

◆ GetFileLinesLUA()

string ug::bridge::GetFileLinesLUA ( const char *  filename,
size_t  fromline,
size_t  toline 
)

this function also includes all lines before fromline which begin with – (lua comments) and adds line numbers

Parameters
filename
fromline
toline
Returns
string with lines

References ug::GetLogAssistant().

Referenced by FunctionInfo().

◆ GetLuaFileAndLine() [1/2]

UG_API std::string ug::bridge::GetLuaFileAndLine ( lua_State L)

returns the current file and line (

returns the current file and line-number and line-content (

See also
LuaStackTrace ).

References ug::GetFileLine(), ug::GetLogAssistant(), and PROFILE_FUNC.

Referenced by GetLuaFileAndLineNumber(), and GetLuaLine().

◆ GetLuaFileAndLine() [2/2]

bool ug::bridge::GetLuaFileAndLine ( lua_State L,
std::string &  file,
size_t &  line 
)

◆ GetLuaFileAndLineNumber()

UG_API std::string ug::bridge::GetLuaFileAndLineNumber ( lua_State L)

returns the current file and line-number

References GetLuaFileAndLine().

◆ GetLuaGlobal_classInstantiations()

void ug::bridge::GetLuaGlobal_classInstantiations ( std::vector< std::string > &  classInstantiations)

References GetLuaGlobals().

Referenced by LuaList_classInstantiations().

◆ GetLuaGlobal_functions()

void ug::bridge::GetLuaGlobal_functions ( std::vector< std::string > &  functions)

References GetLuaGlobals().

Referenced by LuaList_cfunctions().

◆ GetLuaGlobal_internalFunctions()

void ug::bridge::GetLuaGlobal_internalFunctions ( std::vector< std::string > &  internalFunctions)

References GetLuaGlobals().

Referenced by LuaList_internalFunctions().

◆ GetLuaGlobal_luaObjects()

void ug::bridge::GetLuaGlobal_luaObjects ( std::vector< std::string > &  luaObjects)

References GetLuaGlobals().

Referenced by LuaList_luaObjects().

◆ GetLuaGlobal_scriptFunctions()

void ug::bridge::GetLuaGlobal_scriptFunctions ( std::vector< std::string > &  scriptFunctions)

References GetLuaGlobals().

Referenced by LuaList_scriptFunctions().

◆ GetLuaGlobals()

void ug::bridge::GetLuaGlobals ( std::vector< std::string > *  functions,
std::vector< std::string > *  internalFunctions,
std::vector< std::string > *  scriptFunctions,
std::vector< std::string > *  luaObjects,
std::vector< std::string > *  classInstantiations 
)

function to list all objects of the default LUA state

Parameters
functions
internalFunctions
scriptFunctions
luaObjects
classInstantiations

References FindFunction(), ug::bridge::Registry::get_class(), ug::script::GetDefaultLuaState(), GetUGRegistry(), and LUA_STACK_CHECK.

Referenced by GetLuaGlobal_classInstantiations(), GetLuaGlobal_functions(), GetLuaGlobal_internalFunctions(), GetLuaGlobal_luaObjects(), and GetLuaGlobal_scriptFunctions().

◆ GetLuaLine()

UG_API std::string ug::bridge::GetLuaLine ( lua_State L)

returns the current line-content

References ug::GetFileLine(), ug::GetLogAssistant(), GetLuaFileAndLine(), and PROFILE_FUNC.

Referenced by ug::bridge::lua::GetColonWarning().

◆ GetLuaNamespace() [1/2]

UG_API bool ug::bridge::GetLuaNamespace ( lua_State L,
std::string  name 
)

◆ GetLuaNamespace() [2/2]

bool ug::bridge::GetLuaNamespace ( lua_State L,
string  name 
)

searches for a namespaces (lists) and pushes it onto the stack

Parameters
Lthe lua state
namename of the namespace. also nested namespaces are allowed (like struc1.struc2)
Returns
true if namespace found

References LUA_STACK_CHECK, name, and ug::TokenizeString().

Referenced by GetLUAScriptFunctionDefined(), GetNamespaceCompletitions(), LuaGetBoolean(), LuaGetNumber(), LuaGetString(), ug::LUAParserClass::parse_luaFunction(), and UGTypeInfo().

◆ GetLUAScriptFunctionDefined()

std::string ug::bridge::GetLUAScriptFunctionDefined ( const char *  functionName)

returns file and line of defined script function

References ug::script::GetDefaultLuaState(), GetLuaNamespace(), and LUA_STACK_CHECK.

Referenced by ug::LuaUserData< TData, dim, TRet >::check_callback_returns().

◆ GetLuaTypeString()

UG_API std::string ug::bridge::GetLuaTypeString ( lua_State L,
int  index 
)

returns a String describing the content of the lua stack at a given index and all types it is compatible with (for ex. "2" is string and number)

Parameters
Lthe lua state
indexlua stack index to get type string of
Returns
type string

References ug::bridge::ClassNameNode::empty(), GetClassNameNode(), and ug::bridge::ClassNameNode::name().

Referenced by ug::bridge::lua::GetLuaParametersString(), ug::bridge::lua::GetTypeMismatchString(), LuaList_luaObjects(), LuaPrintTable(), UGTypeInfo(), and WriteLUAObject2().

◆ InitShell()

void ug::bridge::InitShell ( )

◆ InitSignals()

void ug::bridge::InitSignals ( )

References UG_LOG.

Referenced by RegisterInfoCommands().

◆ InitUG()

void ug::bridge::InitUG ( int  dim,
const AlgebraType algType,
bool  verbose 
)

◆ IsValidPtr()

template<class T >
static bool ug::bridge::IsValidPtr ( T *  o)
static

◆ LoadGrid() [1/2]

bool ug::bridge::LoadGrid ( Grid grid,
const char *  filename 
)

◆ LoadGrid() [2/2]

bool ug::bridge::LoadGrid ( Grid grid,
ISubsetHandler sh,
const char *  filename 
)

◆ LuaClassMethodInfo()

UG_API std::string ug::bridge::LuaClassMethodInfo ( lua_State L,
int  index,
const ExportedMethod thefunc 
)

prints out information for a method of a class

Parameters
Lthe lua state
indexindex of the class object on the lua stack
thefuncmethod to print
Returns
0

References FunctionInfo(), and GetClassNames().

Referenced by ug::bridge::lua::ExecuteMethod(), and ug::bridge::lua::LuaProxyMethod().

◆ LuaCurrentLine()

UG_API std::string ug::bridge::LuaCurrentLine ( lua_State L)
Parameters
L
Returns
the current line with content example: @/Users/mrupp/Documents/workspace/ug4svn/apps/amg//setup.lua:576 local dim = p.approxSpace:get_dim()

prints the current lua line

Parameters
L

References ug::GetFileLine(), and LuaGetLastLine().

◆ LuaGetBoolean()

UG_API bool ug::bridge::LuaGetBoolean ( lua_State L,
const char *  name,
bool  notAvailable 
)

returns a boolean to a lua-variable.

Parameters
Lthe lua state
namename of the variable. namespaces are possible (like math.pi)
notAvailablereturn value if variable was not found

References GetLuaNamespace(), LUA_STACK_CHECK, and name.

◆ LuaGetLastLine()

UG_API void ug::bridge::LuaGetLastLine ( lua_State L,
lua_Debug  entry 
)
Parameters
L
entry(out) returns the lua_Debug entry associated with the deepest call stack level (the "current line")

searches the lua stack for the first valid line info

Parameters
Lthe lua state
entryreturned lua_Debug structure

Referenced by LuaCurrentLine().

◆ LuaGetNumber()

UG_API double ug::bridge::LuaGetNumber ( lua_State L,
const char *  name,
double  notAvailable 
)

returns an integer to a lua-variable.

Parameters
Lthe lua state
namename of the variable. namespaces are possible (like math.pi)
notAvailablereturn value if variable was not found

References GetLuaNamespace(), LUA_STACK_CHECK, and name.

Referenced by ug::LUAParserClass::createVM(), and ug::LUAParserClass::getVar().

◆ LuaGetScriptFunctionString()

UG_API std::string ug::bridge::LuaGetScriptFunctionString ( lua_State L,
int  index = -1 
)

prints the source of a lua script function which is on top of the stack

Parameters
Lthe lua state

References ug::GetFileLine(), LUA_STACK_CHECK, and p.

Referenced by LuaList_scriptFunctions(), and LuaPrintTable().

◆ LuaGetString()

UG_API std::string ug::bridge::LuaGetString ( lua_State L,
const char *  name,
const char *  notAvailable 
)

returns the string to a lua-variable.

Parameters
Lthe lua state
namename of the variable. namespaces are possible (like math.pi)
notAvailablereturn value if variable was not found

References GetLuaNamespace(), LUA_STACK_CHECK, and name.

◆ LuaList()

◆ LuaList_cfunctions()

void ug::bridge::LuaList_cfunctions ( )

◆ LuaList_classes()

◆ LuaList_classInstantiations()

void ug::bridge::LuaList_classInstantiations ( )

◆ LuaList_internalFunctions()

void ug::bridge::LuaList_internalFunctions ( )

◆ LuaList_luaObjects()

void ug::bridge::LuaList_luaObjects ( )

◆ LuaList_scriptFunctions()

◆ LuaPrintTable()

UG_API void ug::bridge::LuaPrintTable ( lua_State L,
size_t  iSpace,
int  index 
)

prints the source of a lua script function which is on top of the stack

Parameters
Lthe lua state
Lthe lua state
indexlua stack index of the table

References GetLuaTypeString(), LUA_STACK_CHECK, LuaGetScriptFunctionString(), name, ug::repeat(), and UG_LOG.

Referenced by UGTypeInfo().

◆ LuaStackToParams()

int ug::bridge::LuaStackToParams ( ParameterStack ps,
const ParameterInfo psInfo,
lua_State L,
int  offsetToFirstParam = 0 
)

◆ LuaStackTrace()

UG_API void ug::bridge::LuaStackTrace ( int  fromLevel)

◆ LuaStackTraceString() [1/2]

UG_API std::string ug::bridge::LuaStackTraceString ( )

◆ LuaStackTraceString() [2/2]

UG_API std::string ug::bridge::LuaStackTraceString ( lua_State L,
int  fromLevel,
int  toLevel 
)

prints information about lua's call stack (file:line source).

this function returns e.g. 1 @/Users/mrupp/Documents/workspace/ug4svn/apps/amg//setup.lua:576 local dim = p.approxSpace:get_dim() 2 @/Users/mrupp/Documents/workspace/ug4svn/apps/amg//setup.lua:649 amgsetup.CreateApproxSpaceAndDisc() 3 @/Users/mrupp/Documents/workspace/ug4svn/apps/amg/famg_laplace.lua:21 amgsetup.LoadStdDomAndApproxSpace()

Parameters
L
fromLevelwhere to start
toLevelhow far we want to go back
Returns
a list list
Parameters
Lthe lua state
backtraceLevelnumber of calls to display (<= 0 -> all)

References ug::GetFileLine(), ug::StringTableStream::to_string(), and ug::TrimString().

Referenced by lua_backtrace(), and ug::bridge::lua::PrintLUACallStack().

◆ LUAStringEscape()

string ug::bridge::LUAStringEscape ( string  s)

References ug::ReplaceAll(), and s.

Referenced by WriteLUAObject2().

◆ LuaWrite()

void ug::bridge::LuaWrite ( const char *  filename,
const char *  obj 
)

◆ LuaWriteCout()

void ug::bridge::LuaWriteCout ( const char *  obj)

◆ ParamStackEntryToLuaStack()

template<typename T >
static void ug::bridge::ParamStackEntryToLuaStack ( const ParameterStack ps,
lua_State L,
int  index,
bool  bIsVector 
)
static

◆ ParamStackPointerEntryToLuaStack()

template<typename T >
static void ug::bridge::ParamStackPointerEntryToLuaStack ( const ParameterStack ps,
lua_State L,
int  index,
bool  bIsVector 
)
static

◆ ParamsToLuaStack()

◆ print()

void ug::bridge::print ( const std::string &  s)

References printf(), and s.

◆ PrintClassSubHierarchy()

void ug::bridge::PrintClassSubHierarchy ( ClassHierarchy c,
int  level 
)

◆ PrintParametersIn()

template<typename T >
string ug::bridge::PrintParametersIn ( const T &  thefunc,
const char *  highlightclassname 
)

References ParameterToString().

◆ PrintParametersOut()

string ug::bridge::PrintParametersOut ( const ExportedFunctionBase thefunc)

◆ PushLuaStackEntryToParamStack()

template<typename T >
static bool ug::bridge::PushLuaStackEntryToParamStack ( ParameterStack ps,
lua_State L,
int  index,
bool  bIsVector 
)
static

◆ PushLuaStackPointerEntryToParamStack()

template<typename T >
static bool ug::bridge::PushLuaStackPointerEntryToParamStack ( ParameterStack ps,
lua_State L,
int  index,
const char *  baseClassName,
bool  bIsVector 
)
static

◆ RegisterBridge_AdaptiveTools()

void ug::bridge::RegisterBridge_AdaptiveTools ( Registry reg,
string  grp 
)

◆ RegisterBridge_AlgebraCommon()

void ug::bridge::RegisterBridge_AlgebraCommon ( Registry reg,
string  grp 
)

◆ RegisterBridge_AlgebraOrdering()

void ug::bridge::RegisterBridge_AlgebraOrdering ( Registry reg,
string  grp 
)

◆ RegisterBridge_ConstrainedLinearIterator()

void ug::bridge::RegisterBridge_ConstrainedLinearIterator ( Registry reg,
string  grp 
)

◆ RegisterBridge_Constraints()

void ug::bridge::RegisterBridge_Constraints ( Registry reg,
string  grp 
)

◆ RegisterBridge_DiscAlgebra()

void ug::bridge::RegisterBridge_DiscAlgebra ( Registry reg,
string  grp 
)

◆ RegisterBridge_Domain()

void ug::bridge::RegisterBridge_Domain ( Registry reg,
string  grp 
)

◆ RegisterBridge_DomainDependentPreconditioner()

void ug::bridge::RegisterBridge_DomainDependentPreconditioner ( Registry reg,
string  grp 
)

◆ RegisterBridge_DomainDisc()

void ug::bridge::RegisterBridge_DomainDisc ( Registry reg,
string  grp 
)

◆ RegisterBridge_DomainRayTracing()

void ug::bridge::RegisterBridge_DomainRayTracing ( Registry reg,
string  grp 
)

◆ RegisterBridge_Eigensolver()

void ug::bridge::RegisterBridge_Eigensolver ( Registry reg,
string  grp 
)

◆ RegisterBridge_ElemDiscs()

void ug::bridge::RegisterBridge_ElemDiscs ( Registry reg,
string  grp 
)

◆ RegisterBridge_Evaluate()

void ug::bridge::RegisterBridge_Evaluate ( Registry reg,
string  grp 
)

◆ RegisterBridge_FiniteVolume()

void ug::bridge::RegisterBridge_FiniteVolume ( Registry reg,
string  grp 
)

◆ RegisterBridge_GPU()

void ug::bridge::RegisterBridge_GPU ( Registry reg,
string  grp 
)

◆ RegisterBridge_Grid()

◆ RegisterBridge_GridFunction()

void ug::bridge::RegisterBridge_GridFunction ( Registry reg,
string  grp 
)

◆ RegisterBridge_Integrate()

void ug::bridge::RegisterBridge_Integrate ( Registry reg,
string  grp 
)

◆ RegisterBridge_Interpolate()

void ug::bridge::RegisterBridge_Interpolate ( Registry reg,
string  grp 
)

◆ RegisterBridge_LoadBalancing()

void ug::bridge::RegisterBridge_LoadBalancing ( Registry reg,
string  grp 
)

◆ RegisterBridge_ManifoldUtil()

void ug::bridge::RegisterBridge_ManifoldUtil ( Registry reg,
string  grp 
)

◆ RegisterBridge_MaxError()

void ug::bridge::RegisterBridge_MaxError ( Registry reg,
string  grp 
)

◆ RegisterBridge_MultiGrid()

void ug::bridge::RegisterBridge_MultiGrid ( Registry reg,
string  grp 
)

◆ RegisterBridge_Obstacle()

void ug::bridge::RegisterBridge_Obstacle ( Registry reg,
string  grp 
)

◆ RegisterBridge_Ordering()

void ug::bridge::RegisterBridge_Ordering ( Registry reg,
string  grp 
)

◆ RegisterBridge_Output()

void ug::bridge::RegisterBridge_Output ( Registry reg,
string  grp 
)

◆ RegisterBridge_PeriodicBoundary()

void ug::bridge::RegisterBridge_PeriodicBoundary ( Registry reg,
string  grp 
)

◆ RegisterBridge_PILUT()

void ug::bridge::RegisterBridge_PILUT ( Registry reg,
std::string  grp 
)

Referenced by RegisterStandardBridges().

◆ RegisterBridge_Preconditioner()

void ug::bridge::RegisterBridge_Preconditioner ( Registry reg,
string  grp 
)

◆ RegisterBridge_Raster()

void ug::bridge::RegisterBridge_Raster ( Registry reg,
string  parentGroup 
)

Referenced by RegisterStandardBridges().

◆ RegisterBridge_ReferenceMappingTest()

void ug::bridge::RegisterBridge_ReferenceMappingTest ( Registry reg,
string  grp 
)

◆ RegisterBridge_Refinement()

void ug::bridge::RegisterBridge_Refinement ( Registry reg,
string  grp 
)

◆ RegisterBridge_Restart()

void ug::bridge::RegisterBridge_Restart ( Registry reg,
string  grp 
)

◆ RegisterBridge_Schur()

void ug::bridge::RegisterBridge_Schur ( Registry reg,
string  grp 
)

◆ RegisterBridge_Selection()

void ug::bridge::RegisterBridge_Selection ( Registry reg,
string  grp 
)

◆ RegisterBridge_Solver()

void ug::bridge::RegisterBridge_Solver ( Registry reg,
string  grp 
)

◆ RegisterBridge_Transform()

void ug::bridge::RegisterBridge_Transform ( Registry reg,
string  grp 
)

◆ RegisterBridge_UserData()

void ug::bridge::RegisterBridge_UserData ( Registry reg,
string  grp 
)

◆ RegisterConverter()

bool ug::bridge::RegisterConverter ( Registry reg,
const char *  parentGroup 
)

◆ RegisterDegeneratedLayerManager()

template<int dim>
static void ug::bridge::RegisterDegeneratedLayerManager ( Registry reg,
string  grp 
)
static

A template function for registering a degenerated layer manager for a specified dimensionality.

References ug::bridge::Registry::add_class_(), ug::bridge::Registry::add_class_to_group(), close(), contains(), and name.

◆ RegisterGeometry()

template<int dim>
void ug::bridge::RegisterGeometry ( Registry reg,
string  grp 
)

◆ RegisterGridBridge_Balancing() [1/2]

void ug::bridge::RegisterGridBridge_Balancing ( Registry reg,
std::string  parentGroup 
)

◆ RegisterGridBridge_Balancing() [2/2]

void ug::bridge::RegisterGridBridge_Balancing ( Registry reg,
string  parentGroup 
)

◆ RegisterGridBridge_Debug() [1/2]

void ug::bridge::RegisterGridBridge_Debug ( Registry reg,
std::string  parentGroup 
)

◆ RegisterGridBridge_Debug() [2/2]

◆ RegisterGridBridge_FileIO() [1/2]

void ug::bridge::RegisterGridBridge_FileIO ( Registry reg,
std::string  parentGroup 
)

◆ RegisterGridBridge_FileIO() [2/2]

◆ RegisterGridBridge_Grid() [1/2]

void ug::bridge::RegisterGridBridge_Grid ( Registry reg,
std::string  parentGroup 
)

◆ RegisterGridBridge_Grid() [2/2]

void ug::bridge::RegisterGridBridge_Grid ( Registry reg,
string  parentGroup 
)

◆ RegisterGridBridge_Layers() [1/2]

void ug::bridge::RegisterGridBridge_Layers ( Registry reg,
std::string  parentGroup 
)

Referenced by RegisterBridge_Grid().

◆ RegisterGridBridge_Layers() [2/2]

void ug::bridge::RegisterGridBridge_Layers ( Registry reg,
string  parentGroup 
)

◆ RegisterGridBridge_Misc() [1/2]

void ug::bridge::RegisterGridBridge_Misc ( Registry reg,
std::string  parentGroup 
)

Referenced by RegisterBridge_Grid().

◆ RegisterGridBridge_Misc() [2/2]

void ug::bridge::RegisterGridBridge_Misc ( Registry reg,
string  parentGroup 
)

◆ RegisterGridBridge_Refinement() [1/2]

void ug::bridge::RegisterGridBridge_Refinement ( Registry reg,
std::string  parentGroup 
)

Referenced by RegisterBridge_Grid().

◆ RegisterGridBridge_Refinement() [2/2]

void ug::bridge::RegisterGridBridge_Refinement ( Registry reg,
string  parentGroup 
)

◆ RegisterGridBridge_Selector() [1/2]

void ug::bridge::RegisterGridBridge_Selector ( Registry reg,
std::string  parentGroup 
)

Referenced by RegisterBridge_Grid().

◆ RegisterGridBridge_Selector() [2/2]

void ug::bridge::RegisterGridBridge_Selector ( Registry reg,
string  parentGroup 
)

◆ RegisterGridBridge_SubsetHandler() [1/2]

void ug::bridge::RegisterGridBridge_SubsetHandler ( Registry reg,
std::string  parentGroup 
)

Referenced by RegisterBridge_Grid().

◆ RegisterGridBridge_SubsetHandler() [2/2]

void ug::bridge::RegisterGridBridge_SubsetHandler ( Registry reg,
string  parentGroup 
)

◆ RegisterInfoCommands()

◆ RegisterLuaUserData() [1/2]

void ug::bridge::RegisterLuaUserData ( Registry reg,
std::string  grp 
)

◆ RegisterLuaUserData() [2/2]

void ug::bridge::RegisterLuaUserData ( Registry reg,
string  grp 
)

◆ RegisterRaster()

template<class TValue , int TDIM>
static void ug::bridge::RegisterRaster ( Registry reg,
string  name,
string  grp 
)
static

◆ RegisterRasterUserData()

template<class TValue , int dim>
static void ug::bridge::RegisterRasterUserData ( Registry reg,
string  name,
string  grp 
)
static

◆ RegisterSerializationCommands()

bool ug::bridge::RegisterSerializationCommands ( Registry reg,
const char *  parentGroup 
)

◆ RegisterStandardBridges()

void ug::bridge::RegisterStandardBridges ( Registry reg,
string  parentGroup 
)

◆ RunShell()

◆ SaveGrid() [1/3]

bool ug::bridge::SaveGrid ( Grid grid,
const char *  filename 
)

◆ SaveGrid() [2/3]

bool ug::bridge::SaveGrid ( Grid grid,
const ISubsetHandler sh,
const char *  filename 
)

◆ SaveGrid() [3/3]

bool ug::bridge::SaveGrid ( Grid grid,
ISubsetHandler sh,
const char *  filename 
)

◆ SaveGridHierarchy()

bool ug::bridge::SaveGridHierarchy ( MultiGrid mg,
const char *  filename 
)

◆ ScriptHasClass()

bool ug::bridge::ScriptHasClass ( const char *  classname)

◆ ScriptHasClassGroup()

bool ug::bridge::ScriptHasClassGroup ( const char *  classname)

◆ ScriptPrintClassHierarchy()

void ug::bridge::ScriptPrintClassHierarchy ( const char *  classname)

◆ ScriptPrintClassUsage()

void ug::bridge::ScriptPrintClassUsage ( const char *  classname)

References ClassUsage(), and UG_LOG.

Referenced by RegisterInfoCommands().

◆ SetLuaNamespace()

void ug::bridge::SetLuaNamespace ( string  name,
string  value 
)

◆ SetLuaNamespaceInTable()

void ug::bridge::SetLuaNamespaceInTable ( string  name,
string  value 
)

◆ TestNTree()

◆ ug_cacheline()

void ug::bridge::ug_cacheline ( string  str)

Referenced by DebugShell(), and RunShell().

◆ ug_readline()

string ug::bridge::ug_readline ( const char *  prompt,
bool &  quit 
)

Referenced by DebugShell(), and RunShell().

◆ UGTypeInfo()

UG_API int ug::bridge::UGTypeInfo ( const char *  p)

Prints info to a lua type.

Parameters
pthe name of the object in lua. you can use class names, function names or the names of an object
  • TypeInfo("class") prints all member functions+parameters of this class and its parents
  • TypeInfo("Function") prints all member functions+parameters
  • TypeInfo("variable") prints class information if variable is a object of a ug class, otherwise what type in lua it is

References ug::bridge::IExportedClass::class_names(), ClassHierarchyString(), ClassInfo(), ClassInstantiations(), FunctionInfo(), ug::bridge::ClassGroupDesc::get_class(), ug::bridge::Registry::get_class(), ug::bridge::Registry::get_class_group(), ug::bridge::ClassGroupDesc::get_default_class(), ug::script::GetDefaultLuaState(), GetLuaNamespace(), GetLuaTypeString(), GetUGRegistry(), LUA_STACK_CHECK, LuaPrintTable(), ug::bridge::IExportedClass::name(), ug::bridge::ClassGroupDesc::num_classes(), p, and UG_LOG.

Referenced by DebugShell(), GetClassesCompletitions(), GetGlobalsCompletitions(), GetNamespaceCompletitions(), RegisterInfoCommands(), and RunShell().

◆ WriteLUAObject()

void ug::bridge::WriteLUAObject ( lua_State L,
std::string  name,
std::ostream &  s 
)

References name, s, and WriteLUAObject2().

Referenced by LuaWrite(), and LuaWriteCout().

◆ WriteLUAObject2()

Variable Documentation

◆ iOtherCompletitionsLength

int ug::bridge::iOtherCompletitionsLength

◆ pOtherCompletitions

const char** ug::bridge::pOtherCompletitions =NULL

◆ UG4_DIM

int ug::bridge::UG4_DIM = -1
static

the dimension to which ug was initialized through InitUG

This dimension can be accessed through GetUGDim()

Referenced by GetUGDim(), and InitUG().