GEOSX
Public Types | Public Member Functions | List of all members
geos::InterObjectRelation< BASETYPE > Class Template Reference

#include <InterObjectRelation.hpp>

Public Types

using base_type = BASETYPE
 The type of the base class.
 

Public Member Functions

template<typename ... ARGS>
 InterObjectRelation (ARGS &&... args)
 A forwarding constructor. More...
 
InterObjectRelation< BASETYPE > & operator= (InterObjectRelation< BASETYPE > const &rhs)
 copy assignement operator More...
 
const base_typebase () const
 Get a reference to this object cast to BASETYPE const. More...
 
base_typebase ()
 Get a reference to this object cast to BASETYPE. More...
 
void setRelatedObject (ObjectManagerBase const &relatedObject)
 Set the related object. More...
 
const ObjectManagerBaserelatedObject () const
 Get the related object. More...
 
arrayView1d< globalIndex const > relatedObjectLocalToGlobal () const
 Get the LocalToGlobal mapping from the related object. More...
 
const unordered_map< globalIndex, localIndex > & relatedObjectGlobalToLocal () const
 Get the GlobalToLocal mapping from the related object. More...
 

Detailed Description

template<typename BASETYPE>
class geos::InterObjectRelation< BASETYPE >

Template Parameters
BASETYPEThe base class to provide the implementation of the relationship mapping.

Definition at line 31 of file BufferOps.hpp.

Constructor & Destructor Documentation

◆ InterObjectRelation()

template<typename BASETYPE >
template<typename ... ARGS>
geos::InterObjectRelation< BASETYPE >::InterObjectRelation ( ARGS &&...  args)
inline

A forwarding constructor.

Template Parameters
ARGSThe types of the arguments to forward to the BASETYPE constructor.
Parameters
argsA parameter pack of arguments to forward to the BASETYPE constructor.

Definition at line 47 of file InterObjectRelation.hpp.

Member Function Documentation

◆ base() [1/2]

template<typename BASETYPE >
base_type& geos::InterObjectRelation< BASETYPE >::base ( )
inline

Get a reference to this object cast to BASETYPE.

Returns
A reference to this object cast to BASETYPE.

Definition at line 74 of file InterObjectRelation.hpp.

◆ base() [2/2]

template<typename BASETYPE >
const base_type& geos::InterObjectRelation< BASETYPE >::base ( ) const
inline

Get a reference to this object cast to BASETYPE const.

Returns
A reference to this object cast to BASETYPE const.

Definition at line 68 of file InterObjectRelation.hpp.

◆ operator=()

template<typename BASETYPE >
InterObjectRelation< BASETYPE >& geos::InterObjectRelation< BASETYPE >::operator= ( InterObjectRelation< BASETYPE > const &  rhs)
inline

copy assignement operator

Parameters
rhsthe relation to copy
Returns
InterObjectRelation< BASETYPE >&

Definition at line 57 of file InterObjectRelation.hpp.

◆ relatedObject()

template<typename BASETYPE >
const ObjectManagerBase* geos::InterObjectRelation< BASETYPE >::relatedObject ( ) const
inline

Get the related object.

Returns
The related object.

Definition at line 87 of file InterObjectRelation.hpp.

◆ relatedObjectGlobalToLocal()

template<typename BASETYPE >
const unordered_map< globalIndex, localIndex >& geos::InterObjectRelation< BASETYPE >::relatedObjectGlobalToLocal ( ) const
inline

Get the GlobalToLocal mapping from the related object.

Returns
The GlobalToLocal mapping from the related object.

Definition at line 101 of file InterObjectRelation.hpp.

◆ relatedObjectLocalToGlobal()

template<typename BASETYPE >
arrayView1d< globalIndex const > geos::InterObjectRelation< BASETYPE >::relatedObjectLocalToGlobal ( ) const
inline

Get the LocalToGlobal mapping from the related object.

Returns
The LocalToGlobal mapping from the related object.

Definition at line 94 of file InterObjectRelation.hpp.

◆ setRelatedObject()

template<typename BASETYPE >
void geos::InterObjectRelation< BASETYPE >::setRelatedObject ( ObjectManagerBase const &  relatedObject)
inline

Set the related object.

Parameters
relatedObjectThe related object to use for mapping.

Definition at line 80 of file InterObjectRelation.hpp.


The documentation for this class was generated from the following files: