MGIS
Loading...
Searching...
No Matches
mgis::function::SharedSpace< SpaceType > Struct Template Reference

this class provides a way to encapsulate a space into a sharable object. More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/SharedSpace.hxx>

Inheritance diagram for mgis::function::SharedSpace< SpaceType >:
mgis::PreconditionsChecker< SharedSpace< SpaceType > >

Public Member Functions

 SharedSpace (const std::shared_ptr< const SpaceType > &s)
 
template<bool doPreconditionChecks>
 SharedSpace (const PreconditionsCheck< doPreconditionChecks > &pcheck, const std::shared_ptr< const SpaceType > &s)
 
 SharedSpace (SharedSpace &&)=default
 
 SharedSpace (const SharedSpace &)=default
 
const SpaceTypeoperator* () const noexcept
 
const SpaceTypeget () const noexcept
 

Static Public Member Functions

static bool checkPreconditions (AbstractErrorHandler &eh, const std::shared_ptr< const SpaceType > &s)
 

Detailed Description

template<SpaceConcept SpaceType>
struct mgis::function::SharedSpace< SpaceType >

this class provides a way to encapsulate a space into a sharable object.

This objet behaves exactly as the the underlying space (satifies the same concepts) except for the areEquivalent function which only enforces that the two shared spaces are equivalent only if they point to the same object.

Member Function Documentation

◆ checkPreconditions()

template<SpaceConcept SpaceType>
static bool mgis::function::SharedSpace< SpaceType >::checkPreconditions ( AbstractErrorHandler eh,
const std::shared_ptr< const SpaceType > &  s 
)
inlinestatic
Parameters
[in]eherror handler

The documentation for this struct was generated from the following file: