ug4
Bridge

Modules

 Algebra Bridge
 
 Discretization Bridge
 
 Domain Bridge
 
 Misc Bridge
 
 Registry
 

Classes

struct  ug::bridge::AlgebraTypeIDProvider
 
struct  ug::bridge::RegisterAlgebraDependent< Functionality, List >
 
struct  ug::bridge::RegisterDomain1dAlgebraDependent< Functionality, AlgebraList >
 
struct  ug::bridge::RegisterDomain2d3dAlgebraDependent< Functionality, AlgebraList >
 
struct  ug::bridge::RegisterDomain2dAlgebraDependent< Functionality, AlgebraList >
 
struct  ug::bridge::RegisterDomain3dAlgebraDependent< Functionality, AlgebraList >
 
struct  ug::bridge::RegisterDomainAlgebraDependent< Functionality, DomainList, AlgebraList >
 
struct  ug::bridge::RegisterDomainDependent< Functionality, List >
 

Typedefs

typedef boost::mpl::list< end_boost_listug::bridge::CompileAlgebraList
 
typedef boost::mpl::list<> ug::bridge::CompileDomainList
 

Functions

template<typename TAlgebra >
std::string ug::bridge::GetAlgebraSuffix ()
 returns the algebra-suffix (e.g. "CPU3", "CPUFlex") More...
 
template<typename TAlgebraTypeType >
std::string ug::bridge::GetAlgebraSuffix (const TAlgebraTypeType &algType)
 returns the algebra-suffix (e.g. "CPU3", "CPUFlex") More...
 
template<typename TAlgebra >
std::string ug::bridge::GetAlgebraTag ()
 returns the algebra-suffix (e.g. "alg=CPU3", "alg=CPUVariable") More...
 
template<typename TAlgebraTypeType >
std::string ug::bridge::GetAlgebraTag (const TAlgebraTypeType &algType)
 returns the algebra-suffix (e.g. "alg=CPU3", "alg=CPUVariable") More...
 
template<int dim, typename TAlgebra >
std::string ug::bridge::GetDimensionAlgebraSuffix ()
 returns the algebra-dim-suffix for a domain (e.g. "3dCPU1") More...
 
template<int dim, typename TAlgebra >
std::string ug::bridge::GetDimensionAlgebraTag ()
 returns the dim-tag for a domain (e.g. "dim=3d;alg=CPU1;") More...
 
template<typename TAlgebraTypeType >
std::string ug::bridge::GetDimensionAlgebraTag (int dim, const TAlgebraTypeType &algType)
 returns dim tag at runtime (e.g. "dim=3d;alg=CPU1;") More...
 
template<int dim>
std::string ug::bridge::GetDimensionSuffix ()
 returns the dim-suffix for a domain (e.g. "3d") More...
 
template<int dim>
std::string ug::bridge::GetDimensionTag ()
 returns the dim-tag for a domain (e.g. "dim=3d") More...
 
std::string ug::bridge::GetDimensionTag (int dim)
 returns dim tag at runtime (e.g. "dim=3d") More...
 
template<typename TDomain , typename TAlgebra >
std::string ug::bridge::GetDomainAlgebraSuffix ()
 returns the dim-suffix for a domain (e.g. "3dCPU1") More...
 
template<typename TDomain , typename TAlgebra >
std::string ug::bridge::GetDomainAlgebraTag ()
 returns the dim-tag for a domain (e.g. "dim=3d;alg=CPU1;") More...
 
template<typename TDomain >
std::string ug::bridge::GetDomainSuffix ()
 returns the dim-suffix for a domain (e.g. "3d") More...
 
template<typename TDomain >
std::string ug::bridge::GetDomainTag ()
 returns the dim-tag for a domain (e.g. "dim=3d") More...
 
int ug::bridge::GetUGDim ()
 returns the dimension to which UG was initialized through InitUG More...
 
Registryug::bridge::GetUGRegistry ()
 returns the default registry used in ug More...
 
void ug::bridge::InitBridge ()
 calls RegisterStandardInterfaces More...
 
void ug::bridge::InitUG (int dim, const AlgebraType &algebraType)
 Sets the default classes of class-groups based on a tags using default DoFManager. More...
 
void ug::bridge::RegisterBridge_DiscCommon (Registry &reg, std::string grp=UG4_GRP)
 Registers the common part of lib_discretization. More...
 
void ug::bridge::RegisterBridge_Domain (Registry &reg, std::string grp=UG4_GRP)
 Registers the domain object and related methods. More...
 
void ug::bridge::RegisterBridge_DomainRayTracing (Registry &reg, std::string grp=UG4_GRP)
 Registers methods to perform ray-tracing on domains. More...
 
void ug::bridge::RegisterBridge_ElemDiscs (Registry &reg, std::string grp=UG4_GRP)
 Registers the element discretizations. More...
 
void ug::bridge::RegisterBridge_Grid (Registry &reg, std::string grp=UG4_GRP)
 registers lib-grid interface methods at the registry. More...
 
void ug::bridge::RegisterBridge_LoadBalancing (Registry &reg, std::string grp=UG4_GRP)
 registers LoadBalancer, partitioners, etc More...
 
void ug::bridge::RegisterBridge_Misc (Registry &reg, std::string grp=UG4_GRP)
 
void ug::bridge::RegisterBridge_OrthoPoly (Registry &reg, std::string grp=UG4_GRP)
 registers orthogonal polynomials More...
 
void ug::bridge::RegisterBridge_PCL (Registry &reg, std::string grp=UG4_GRP)
 registers methods for a parallel environment More...
 
void ug::bridge::RegisterBridge_PeriodicBoundary (Registry &reg, std::string grp=UG4_GRP)
 Registers periodic boundary identification. More...
 
void ug::bridge::RegisterBridge_Profiler (Registry &reg, std::string grp=UG4_GRP)
 registers access to profiling functions at the registry More...
 
void ug::bridge::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 ug::bridge::RegisterBridge_ReferenceMappingTest (Registry &reg, std::string grp=UG4_GRP)
 registers reference mapping test functionality (common) More...
 
void ug::bridge::RegisterBridge_Refinement (Registry &reg, std::string grp=UG4_GRP)
 Registers refiners and marking methods. More...
 
void ug::bridge::RegisterBridge_Selection (Registry &reg, std::string grp=UG4_GRP)
 Registers methods to perform selections on the elements of a domain. More...
 
void ug::bridge::RegisterBridge_Test (Registry &reg, std::string grp=UG4_GRP)
 registers tests for the interface methods at the registry. More...
 
void ug::bridge::RegisterBridge_Transform (Registry &reg, std::string grp=UG4_GRP)
 Registers methods to transform the vertices of a domain. More...
 
void ug::bridge::RegisterBridge_UserData (Registry &reg, std::string grp=UG4_GRP)
 registers user data More...
 
void ug::bridge::RegisterBridge_Util (Registry &reg, std::string grp=UG4_GRP)
 registers some util methods like path-access and script-parsing. More...
 
void ug::bridge::RegisterBridge_VecMath (Registry &reg, std::string grp=UG4_GRP)
 Registers types and functions for 1, 2, 3 and 4 dimensional vector math. More...
 
template<typename Functionality >
void ug::bridge::RegisterCommon (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDimension1dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDimension2d3dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDimension2dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDimension3dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDimensionDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDomain1dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDomain2d3dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDomain2dDependent (Registry &reg, std::string grp)
 
template<typename Functionality >
void ug::bridge::RegisterDomain3dDependent (Registry &reg, std::string grp)
 
UG_API void ug::bridge::RegisterStandardBridges (Registry &reg, std::string grp=UG4_GRP)
 registers all standard interfaces. More...
 

Variables

static const size_t ug::bridge::NUM_ALGEBRA_TYPES = boost::mpl::size<CompileAlgebraList>::type::value - 1
 
const char * ug::bridge::UG4_GRP = "/ug4"
 string for ug4 group More...
 

Detailed Description

Typedef Documentation

◆ CompileAlgebraList

typedef boost::mpl::list< end_boost_list > ug::bridge::CompileAlgebraList

◆ CompileDomainList

typedef boost::mpl::list<> ug::bridge::CompileDomainList

Function Documentation

◆ GetAlgebraSuffix() [1/2]

template<typename TAlgebra >
std::string ug::bridge::GetAlgebraSuffix ( )

returns the algebra-suffix (e.g. "CPU3", "CPUFlex")

References ug::bridge::GetAlgebraSuffix().

◆ GetAlgebraSuffix() [2/2]

template<typename TAlgebraTypeType >
std::string ug::bridge::GetAlgebraSuffix ( const TAlgebraTypeType &  algType)
inline

returns the algebra-suffix (e.g. "CPU3", "CPUFlex")

References UG_THROW.

Referenced by ug::bridge::GetAlgebraSuffix().

◆ GetAlgebraTag() [1/2]

template<typename TAlgebra >
std::string ug::bridge::GetAlgebraTag ( )

returns the algebra-suffix (e.g. "alg=CPU3", "alg=CPUVariable")

References ug::bridge::GetAlgebraTag().

◆ GetAlgebraTag() [2/2]

template<typename TAlgebraTypeType >
std::string ug::bridge::GetAlgebraTag ( const TAlgebraTypeType &  algType)
inline

returns the algebra-suffix (e.g. "alg=CPU3", "alg=CPUVariable")

References UG_THROW.

Referenced by ug::bridge::GetAlgebraTag(), ug::bridge::GetDimensionAlgebraTag(), and ug::bridge::InitUG().

◆ GetDimensionAlgebraSuffix()

template<int dim, typename TAlgebra >
std::string ug::bridge::GetDimensionAlgebraSuffix ( )

returns the algebra-dim-suffix for a domain (e.g. "3dCPU1")

◆ GetDimensionAlgebraTag() [1/2]

template<int dim, typename TAlgebra >
std::string ug::bridge::GetDimensionAlgebraTag ( )

returns the dim-tag for a domain (e.g. "dim=3d;alg=CPU1;")

◆ GetDimensionAlgebraTag() [2/2]

template<typename TAlgebraTypeType >
std::string ug::bridge::GetDimensionAlgebraTag ( int  dim,
const TAlgebraTypeType &  algType 
)
inline

returns dim tag at runtime (e.g. "dim=3d;alg=CPU1;")

References dim, ug::bridge::GetAlgebraTag(), and ug::bridge::GetDimensionTag().

◆ GetDimensionSuffix()

template<int dim>
std::string ug::bridge::GetDimensionSuffix ( )

returns the dim-suffix for a domain (e.g. "3d")

References dim.

◆ GetDimensionTag() [1/2]

template<int dim>
std::string ug::bridge::GetDimensionTag ( )

returns the dim-tag for a domain (e.g. "dim=3d")

Referenced by ug::bridge::GetDimensionAlgebraTag(), and ug::bridge::InitUG().

◆ GetDimensionTag() [2/2]

std::string ug::bridge::GetDimensionTag ( int  dim)
inline

returns dim tag at runtime (e.g. "dim=3d")

References dim.

◆ GetDomainAlgebraSuffix()

template<typename TDomain , typename TAlgebra >
std::string ug::bridge::GetDomainAlgebraSuffix ( )

returns the dim-suffix for a domain (e.g. "3dCPU1")

◆ GetDomainAlgebraTag()

template<typename TDomain , typename TAlgebra >
std::string ug::bridge::GetDomainAlgebraTag ( )

returns the dim-tag for a domain (e.g. "dim=3d;alg=CPU1;")

◆ GetDomainSuffix()

template<typename TDomain >
std::string ug::bridge::GetDomainSuffix ( )

returns the dim-suffix for a domain (e.g. "3d")

◆ GetDomainTag()

template<typename TDomain >
std::string ug::bridge::GetDomainTag ( )

returns the dim-tag for a domain (e.g. "dim=3d")

◆ GetUGDim()

UG_API int ug::bridge::GetUGDim ( )

returns the dimension to which UG was initialized through InitUG

If ug::bridge::InitUG hasn't been called, the method returns -1.

References ug::bridge::UG4_DIM.

Referenced by ug::bridge::RegisterStandardBridges().

◆ GetUGRegistry()

◆ InitBridge()

UG_API void ug::bridge::InitBridge ( )

calls RegisterStandardInterfaces

calls RegisterStandardInterfaces and LoadPlugins if UG_PLUGINS is defined

References ug::bridge::GetUGRegistry(), PROFILE_FUNC, and ug::bridge::RegisterStandardBridges().

Referenced by ug_init_bridge(), and ug::UGInit().

◆ InitUG()

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

Sets the default classes of class-groups based on a tags using default DoFManager.

References dim.

Referenced by ug::bridge::RegisterStandardBridges().

◆ RegisterBridge_DiscCommon()

void ug::bridge::RegisterBridge_DiscCommon ( Registry reg,
std::string  grp = UG4_GRP 
)

Registers the common part of lib_discretization.

◆ RegisterBridge_Domain()

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

Registers the domain object and related methods.

◆ RegisterBridge_DomainRayTracing()

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

Registers methods to perform ray-tracing on domains.

◆ RegisterBridge_ElemDiscs()

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

Registers the element discretizations.

◆ RegisterBridge_Grid()

void ug::bridge::RegisterBridge_Grid ( Registry reg,
std::string  grp = UG4_GRP 
)

registers lib-grid interface methods at the registry.

This method is automatically invoked during the creation of the Registry.

◆ RegisterBridge_LoadBalancing()

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

registers LoadBalancer, partitioners, etc

◆ RegisterBridge_Misc()

void ug::bridge::RegisterBridge_Misc ( Registry reg,
std::string  grp = UG4_GRP 
)

◆ RegisterBridge_OrthoPoly()

void ug::bridge::RegisterBridge_OrthoPoly ( Registry reg,
std::string  grp = UG4_GRP 
)

registers orthogonal polynomials

◆ RegisterBridge_PCL()

void ug::bridge::RegisterBridge_PCL ( Registry reg,
std::string  grp = UG4_GRP 
)

registers methods for a parallel environment

◆ RegisterBridge_PeriodicBoundary()

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

Registers periodic boundary identification.

◆ RegisterBridge_Profiler()

void ug::bridge::RegisterBridge_Profiler ( Registry reg,
std::string  grp = UG4_GRP 
)

registers access to profiling functions at the registry

◆ RegisterBridge_Raster()

void ug::bridge::RegisterBridge_Raster ( Registry reg,
std::string  grp = UG4_GRP 
)

registers rasters, e.g. for 1,2,3 dimensional image data or density distributions

◆ RegisterBridge_ReferenceMappingTest()

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

registers reference mapping test functionality (common)

◆ RegisterBridge_Refinement()

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

Registers refiners and marking methods.

◆ RegisterBridge_Selection()

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

Registers methods to perform selections on the elements of a domain.

◆ RegisterBridge_Test()

void ug::bridge::RegisterBridge_Test ( Registry reg,
std::string  grp = UG4_GRP 
)

registers tests for the interface methods at the registry.

This method is automatically invoked during the creation of the Registry.

◆ RegisterBridge_Transform()

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

Registers methods to transform the vertices of a domain.

◆ RegisterBridge_UserData()

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

registers user data

◆ RegisterBridge_Util()

void ug::bridge::RegisterBridge_Util ( Registry reg,
std::string  grp = UG4_GRP 
)

registers some util methods like path-access and script-parsing.

◆ RegisterBridge_VecMath()

void ug::bridge::RegisterBridge_VecMath ( Registry reg,
std::string  grp = UG4_GRP 
)

Registers types and functions for 1, 2, 3 and 4 dimensional vector math.

◆ RegisterCommon()

template<typename Functionality >
void ug::bridge::RegisterCommon ( Registry reg,
std::string  grp 
)

◆ RegisterDimension1dDependent()

template<typename Functionality >
void ug::bridge::RegisterDimension1dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDimension2d3dDependent()

template<typename Functionality >
void ug::bridge::RegisterDimension2d3dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDimension2dDependent()

template<typename Functionality >
void ug::bridge::RegisterDimension2dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDimension3dDependent()

template<typename Functionality >
void ug::bridge::RegisterDimension3dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDimensionDependent()

template<typename Functionality >
void ug::bridge::RegisterDimensionDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDomain1dDependent()

template<typename Functionality >
void ug::bridge::RegisterDomain1dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDomain2d3dDependent()

template<typename Functionality >
void ug::bridge::RegisterDomain2d3dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDomain2dDependent()

template<typename Functionality >
void ug::bridge::RegisterDomain2dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterDomain3dDependent()

template<typename Functionality >
void ug::bridge::RegisterDomain3dDependent ( Registry reg,
std::string  grp 
)

◆ RegisterStandardBridges()

UG_API void ug::bridge::RegisterStandardBridges ( Registry reg,
std::string  grp = UG4_GRP 
)

registers all standard interfaces.

This method is called by the constructor of Registry automatically. You don't have to call it yourself!

Variable Documentation

◆ NUM_ALGEBRA_TYPES

const size_t ug::bridge::NUM_ALGEBRA_TYPES = boost::mpl::size<CompileAlgebraList>::type::value - 1
static

◆ UG4_GRP

const char * ug::bridge::UG4_GRP = "/ug4"

string for ug4 group