Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
model::SimplexFactory< dim, order > Struct Template Reference

#include <SimplexFactory.h>

Inheritance diagram for model::SimplexFactory< dim, order >:
Collaboration diagram for model::SimplexFactory< dim, order >:

Public Types

using Base = WeakPtrFactory<SimplexFactory<dim, order>, Simplex<dim, order>>
using KeyType = typename SimplexTraits<dim, order>::SimplexIDType
using Pointer = std::shared_ptr<Simplex<dim, order>>
Public Types inherited from model::WeakPtrFactory< SimplexFactory< dim, order >, Simplex< dim, order > >
typedef Simplex< dim, order >::KeyType KeyType
typedef std::weak_ptr< Simplex< dim, order > > WeakPtrType
typedef std::shared_ptr< Simplex< dim, order > > SharedPtrType

Public Member Functions

 SimplexFactory ()=default
 SimplexFactory (const SimplexFactory &)=delete
SimplexFactory & operator= (const SimplexFactory &)=delete
template<typename... Args>
Pointer getOrCreate (const KeyType &input, const Args &...args)
auto liveSimplices () const
void pruneExpired ()
auto faces (const KeyType &id)
Public Member Functions inherited from model::WeakPtrFactory< SimplexFactory< dim, order >, Simplex< dim, order > >
SharedPtrType create (const Args &...args)
SharedPtrType get (const KeyType &key) const
const Simplex< dim, order > & getRef (const KeyType &key) const
SharedPtrType clone (const KeyType &key, const Args &... args)

Public Attributes

SimplicialMesh< dim > * mesh = nullptr

Detailed Description

template<short int dim, short int order>
struct model::SimplexFactory< dim, order >

Definition at line 14 of file SimplexFactory.h.

Member Typedef Documentation

◆ Base

template<short int dim, short int order>
using model::SimplexFactory< dim, order >::Base = WeakPtrFactory<SimplexFactory<dim, order>, Simplex<dim, order>>

Definition at line 16 of file SimplexFactory.h.

◆ KeyType

template<short int dim, short int order>
using model::SimplexFactory< dim, order >::KeyType = typename SimplexTraits<dim, order>::SimplexIDType

Definition at line 17 of file SimplexFactory.h.

◆ Pointer

template<short int dim, short int order>
using model::SimplexFactory< dim, order >::Pointer = std::shared_ptr<Simplex<dim, order>>

Definition at line 18 of file SimplexFactory.h.

Constructor & Destructor Documentation

◆ SimplexFactory() [1/2]

template<short int dim, short int order>
model::SimplexFactory< dim, order >::SimplexFactory ( )
default

◆ SimplexFactory() [2/2]

template<short int dim, short int order>
model::SimplexFactory< dim, order >::SimplexFactory ( const SimplexFactory< dim, order > & )
delete

Member Function Documentation

◆ faces()

template<short int dim, short int order>
auto model::SimplexFactory< dim, order >::faces ( const KeyType & id)
inline

Definition at line 81 of file SimplexFactory.h.

◆ getOrCreate()

template<short int dim, short int order>
template<typename... Args>
Pointer model::SimplexFactory< dim, order >::getOrCreate ( const KeyType & input,
const Args &... args )
inline

Definition at line 29 of file SimplexFactory.h.

◆ liveSimplices()

template<short int dim, short int order>
auto model::SimplexFactory< dim, order >::liveSimplices ( ) const
inline

Definition at line 55 of file SimplexFactory.h.

◆ operator=()

template<short int dim, short int order>
SimplexFactory & model::SimplexFactory< dim, order >::operator= ( const SimplexFactory< dim, order > & )
delete

◆ pruneExpired()

template<short int dim, short int order>
void model::SimplexFactory< dim, order >::pruneExpired ( )
inline

Definition at line 67 of file SimplexFactory.h.

Member Data Documentation

◆ mesh

template<short int dim, short int order>
SimplicialMesh<dim>* model::SimplexFactory< dim, order >::mesh = nullptr

Definition at line 19 of file SimplexFactory.h.


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