Reference documentation for deal.II version 9.3.3
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Public Member Functions | List of all members
FETools::FEFactoryBase< dim, spacedim > Class Template Referenceabstract

#include <deal.II/fe/fe_tools.h>

Inheritance diagram for FETools::FEFactoryBase< dim, spacedim >:
[legend]

Public Member Functions

virtual std::unique_ptr< FiniteElement< dim, spacedim > > get (const unsigned int degree) const =0
 
virtual std::unique_ptr< FiniteElement< dim, spacedim > > get (const Quadrature< 1 > &quad) const =0
 
virtual ~FEFactoryBase () override=default
 

Subscriptor functionality

Classes derived from Subscriptor provide a facility to subscribe to this object. This is mostly used by the SmartPointer class.

void subscribe (std::atomic< bool > *const validity, const std::string &identifier="") const
 
void unsubscribe (std::atomic< bool > *const validity, const std::string &identifier="") const
 
unsigned int n_subscriptions () const
 
template<typename StreamType >
void list_subscribers (StreamType &stream) const
 
void list_subscribers () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
using map_value_type = decltype(counter_map)::value_type
 
using map_iterator = decltype(counter_map)::iterator
 
std::atomic< unsigned intcounter
 
std::map< std::string, unsigned intcounter_map
 
std::vector< std::atomic< bool > * > validity_pointers
 
const std::type_info * object_info
 
static std::mutex mutex
 
static ::ExceptionBaseExcInUse (int arg1, std::string arg2, std::string arg3)
 
static ::ExceptionBaseExcNoSubscriber (std::string arg1, std::string arg2)
 
void check_no_subscribers () const noexcept
 

Detailed Description

template<int dim, int spacedim = dim>
class FETools::FEFactoryBase< dim, spacedim >

A base class for factory objects creating finite elements of a given degree. Derived classes are called whenever one wants to have a transparent way to create a finite element object.

This class is used in the FETools::get_fe_by_name() and FETools::add_fe_name() functions.

Definition at line 86 of file fe_tools.h.

Constructor & Destructor Documentation

◆ ~FEFactoryBase()

template<int dim, int spacedim = dim>
virtual FETools::FEFactoryBase< dim, spacedim >::~FEFactoryBase ( )
overridevirtualdefault

Virtual destructor doing nothing but making the compiler happy.

Member Function Documentation

◆ get() [1/2]

template<int dim, int spacedim = dim>
virtual std::unique_ptr< FiniteElement< dim, spacedim > > FETools::FEFactoryBase< dim, spacedim >::get ( const unsigned int  degree) const
pure virtual

Create a FiniteElement and return a pointer to it.

Implemented in FETools::FEFactory< FE >.

◆ get() [2/2]

template<int dim, int spacedim = dim>
virtual std::unique_ptr< FiniteElement< dim, spacedim > > FETools::FEFactoryBase< dim, spacedim >::get ( const Quadrature< 1 > &  quad) const
pure virtual

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