FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Geometry::TargetSet Class Reference

Target set class. More...

#include <target_set.hpp>

Public Member Functions

 TargetSet ()
 standard constructor More...
 
 TargetSet (Index num_entities)
 Constructor. More...
 
 TargetSet (TargetSet &&other)
 move constructor More...
 
virtual ~TargetSet ()
 virtual destructor More...
 
std::size_t bytes () const
 
TargetSet clone () const
 
Indexget_indices ()
 
const Indexget_indices () const
 
Index get_num_entities () const
 Returns the number of entities. More...
 
TargetSetoperator= (TargetSet &&other)
 move-assignment operator More...
 
Indexoperator[] (Index i)
 Returns a target index. More...
 
const Indexoperator[] (Index i) const
 Returns a target index. More...
 
void permute_map (const Adjacency::Permutation &inv_perm)
 

Protected Member Functions

 TargetSet (const std::vector< Index > &idx)
 internal clone constructor More...
 

Protected Attributes

std::vector< Index_indices
 Index vector. _indices[i] = j means that entity i represents entity j in the parent. More...
 

Detailed Description

Target set class.

A MeshPart refers to its parent mesh through several TargetSets.

Author
Peter Zajac

Definition at line 26 of file target_set.hpp.

Constructor & Destructor Documentation

◆ TargetSet() [1/4]

FEAT::Geometry::TargetSet::TargetSet ( const std::vector< Index > &  idx)
inlineexplicitprotected

internal clone constructor

Definition at line 33 of file target_set.hpp.

◆ TargetSet() [2/4]

FEAT::Geometry::TargetSet::TargetSet ( )
inline

standard constructor

Definition at line 40 of file target_set.hpp.

Referenced by clone().

◆ TargetSet() [3/4]

FEAT::Geometry::TargetSet::TargetSet ( Index  num_entities)
inlineexplicit

Constructor.

Parameters
[in]num_entitiesThe number of entities that are to be indexed.

Definition at line 51 of file target_set.hpp.

◆ TargetSet() [4/4]

FEAT::Geometry::TargetSet::TargetSet ( TargetSet &&  other)
inline

move constructor

Definition at line 57 of file target_set.hpp.

◆ ~TargetSet()

virtual FEAT::Geometry::TargetSet::~TargetSet ( )
inlinevirtual

virtual destructor

Definition at line 75 of file target_set.hpp.

Member Function Documentation

◆ bytes()

std::size_t FEAT::Geometry::TargetSet::bytes ( ) const
inline
Returns
The size of dynamically allocated memory in bytes.

Definition at line 86 of file target_set.hpp.

References _indices.

◆ clone()

TargetSet FEAT::Geometry::TargetSet::clone ( ) const
inline
Returns
An independent clone of this target set object.

Definition at line 80 of file target_set.hpp.

References TargetSet().

◆ get_indices() [1/2]

Index * FEAT::Geometry::TargetSet::get_indices ( )
inline
Returns
A pointer to the target index array.

Definition at line 100 of file target_set.hpp.

References _indices.

Referenced by FEAT::Geometry::MeshPartOperations< MeshType_ >::join_elements().

◆ get_indices() [2/2]

const Index * FEAT::Geometry::TargetSet::get_indices ( ) const
inline

Returns
A pointer to the target index array.

Definition at line 106 of file target_set.hpp.

References _indices.

◆ get_num_entities()

Index FEAT::Geometry::TargetSet::get_num_entities ( ) const
inline

Returns the number of entities.

Definition at line 92 of file target_set.hpp.

References _indices.

Referenced by FEAT::Geometry::PatchPartMap::PatchPartMap(), FEAT::Assembly::StokesFBMAssembler< MeshType_ >::_add_fbm_target_set(), FEAT::Geometry::DistributedMeshDistortion< MeshType_ >::_calc_boundary_facets(), FEAT::Geometry::DistributedUmbrellaSmoother< MeshType_ >::_calc_boundary_facets(), FEAT::Geometry::DistributedMeshDistortion< MeshType_ >::_calc_shortest_edge(), FEAT::Geometry::DistributedMeshDistortion< MeshType_ >::_calc_vertex_owners(), FEAT::Control::Domain::VoxelDomainControl< DomainLevel_ >::_compute_base_mesh_coloring(), FEAT::Control::Domain::VoxelDomainControl< DomainLevel_ >::_compute_base_mesh_layering(), FEAT::Control::Domain::VoxelDomainControl< DomainLevel_ >::_compute_refined_mesh_coloring(), FEAT::Control::Domain::VoxelDomainControl< DomainLevel_ >::_compute_refined_mesh_layering(), FEAT::Control::Domain::VoxelDomainControl< DomainLevel_ >::_extract_patch_coloring(), FEAT::Control::Domain::VoxelDomainControl< DomainLevel_ >::_extract_patch_layering(), FEAT::Geometry::CGALWrapper< DT_ >::_init_wrapper(), FEAT::Geometry::DistributedMeshDistortion< MeshType_ >::_synchronize(), FEAT::Geometry::MaskedBoundaryFactory< ParentMesh_ >::add_mask_meshpart(), FEAT::Geometry::GlobalMaskedBoundaryFactory< ParentMesh_ >::add_mask_meshpart(), FEAT::Geometry::PatchPartMap::build(), FEAT::Geometry::PatchPartMap::fill_target_set(), FEAT::Geometry::MeshPartOperations< MeshType_ >::join_elements(), operator[](), and FEAT::Assembly::StokesFBMAssembler< MeshType_ >::sync().

◆ operator=()

TargetSet & FEAT::Geometry::TargetSet::operator= ( TargetSet &&  other)
inline

move-assignment operator

Definition at line 63 of file target_set.hpp.

References _indices, and FEAT::Geometry::other.

◆ operator[]() [1/2]

Index & FEAT::Geometry::TargetSet::operator[] ( Index  i)
inline

Returns a target index.

Parameters
[in]iThe index of the entity whose target index is to be returned.
Returns
A reference to the target index of entity i.

Definition at line 120 of file target_set.hpp.

References _indices, ASSERT, and get_num_entities().

◆ operator[]() [2/2]

const Index & FEAT::Geometry::TargetSet::operator[] ( Index  i) const
inline

Returns a target index.

Parameters
[in]iThe index of the entity whose target index is to be returned.
Returns
A reference to the target index of entity i.

Definition at line 127 of file target_set.hpp.

References _indices, ASSERT, and get_num_entities().

◆ permute_map()

void FEAT::Geometry::TargetSet::permute_map ( const Adjacency::Permutation inv_perm)
inline

Definition at line 133 of file target_set.hpp.

Member Data Documentation

◆ _indices

std::vector<Index> FEAT::Geometry::TargetSet::_indices
protected

Index vector. _indices[i] = j means that entity i represents entity j in the parent.

Definition at line 30 of file target_set.hpp.

Referenced by bytes(), get_indices(), get_num_entities(), operator=(), and operator[]().


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