MoReFEM
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
MoReFEM::QuadratureRulePerTopology Class Reference

This class list the quadrature rule to use for each topology. More...

#include <QuadratureRulePerTopology.hpp>

Collaboration diagram for MoReFEM::QuadratureRulePerTopology:

Public Types

using self = QuadratureRulePerTopology
 Alias to the type of the class.
 
using const_unique_ptr = std::unique_ptr<const self>
 Alias to unique pointer.
 
using storage_type = std::map<TopologyNS::Type, QuadratureRule::const_shared_ptr>
 Convenient alias.
 

Public Member Functions

void Print (std::ostream &stream) const noexcept
 Print the list of quadrature rules in storage.
 
const storage_typeGetRulePerTopology () const noexcept
 Access to the list of quadrature rule to use for each topology.
 
const QuadratureRuleGetRule (TopologyNS::Type topology) const
 
Special members.
 QuadratureRulePerTopology (storage_type &&quadrature_rule_per_topology)
 Constructor.
 
 QuadratureRulePerTopology (std::size_t degree_of_exactness, std::size_t shape_function_order)
 Constructor to produce default choices for each topology.
 
 ~QuadratureRulePerTopology ()=default
 Destructor.
 
 QuadratureRulePerTopology (const QuadratureRulePerTopology &rhs)=delete
 The copy constructor.
 
 QuadratureRulePerTopology (QuadratureRulePerTopology &&rhs)=delete
 The move constructor.
 
QuadratureRulePerTopologyoperator= (const QuadratureRulePerTopology &rhs)=delete
 The (copy) operator=.
 
QuadratureRulePerTopologyoperator= (QuadratureRulePerTopology &&rhs)=delete
 The (move) operator=.
 

Private Attributes

const storage_type quadrature_rule_per_topology_
 Quadrature rule to use for each topology.
 

Detailed Description

This class list the quadrature rule to use for each topology.

It is intended to be used either in FEltSpace level or in GlobalVariationalOperator level (the latter supersedes the former if specified; if not the operator takes the set of rules defines within its FEltSpace).

Member Typedef Documentation

◆ self

Alias to the type of the class.

Constructor & Destructor Documentation

◆ QuadratureRulePerTopology() [1/4]

MoReFEM::QuadratureRulePerTopology::QuadratureRulePerTopology ( storage_type && quadrature_rule_per_topology)
explicit

Constructor.

Parameters
[in]quadrature_rule_per_topologyQuadrature rule to use for each topology.

◆ QuadratureRulePerTopology() [2/4]

MoReFEM::QuadratureRulePerTopology::QuadratureRulePerTopology ( std::size_t degree_of_exactness,
std::size_t shape_function_order )
explicit

Constructor to produce default choices for each topology.

Parameters
[in]degree_of_exactnessParameter used to determine rule to use for topologies that are built upon PerDegreeOfExactness process.
[in]shape_function_orderParameter used to determine rule to use for topologies that are built upon PerShapeFunctionOrder process.

◆ QuadratureRulePerTopology() [3/4]

MoReFEM::QuadratureRulePerTopology::QuadratureRulePerTopology ( const QuadratureRulePerTopology & rhs)
delete

The copy constructor.

Parameters
[in]rhsThe object from which the construction occurs.

◆ QuadratureRulePerTopology() [4/4]

MoReFEM::QuadratureRulePerTopology::QuadratureRulePerTopology ( QuadratureRulePerTopology && rhs)
delete

The move constructor.

Parameters
[in]rhsThe object from which the construction occurs.

Member Function Documentation

◆ operator=() [1/2]

QuadratureRulePerTopology & MoReFEM::QuadratureRulePerTopology::operator= ( const QuadratureRulePerTopology & rhs)
delete

The (copy) operator=.

Parameters
[in]rhsThe object from which the affectation occurs.
Returns
Reference to the object (to enable chained affectation).

◆ operator=() [2/2]

QuadratureRulePerTopology & MoReFEM::QuadratureRulePerTopology::operator= ( QuadratureRulePerTopology && rhs)
delete

The (move) operator=.

Parameters
[in]rhsThe object from which the affectation occurs.
Returns
Reference to the object (to enable chained affectation).

◆ Print()

void MoReFEM::QuadratureRulePerTopology::Print ( std::ostream & stream) const
noexcept

Print the list of quadrature rules in storage.

This method is mostly there for dev purposes.

Parameters
[in,out]streamStream upon which object information are written.

◆ GetRule()

const QuadratureRule & MoReFEM::QuadratureRulePerTopology::GetRule ( TopologyNS::Type topology) const

Return the rule to use with a given topology.

Parameters
[in]topologyTopology for which the QuadratureRule is sought.

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