Bembel
Bembel::ElementTreeNode Class Reference

The ElementTreeNode corresponds to an element in the element tree. More...

#include <ElementTreeNode.hpp>

Collaboration diagram for Bembel::ElementTreeNode:

Detailed Description

The ElementTreeNode corresponds to an element in the element tree.

Definition at line 21 of file ElementTreeNode.hpp.

Public Member Functions

 ElementTreeNode () noexcept
 constructors More...
 
 ElementTreeNode (ElementTreeNode &&other) noexcept
 Move constructor.
 
 ElementTreeNode (const ElementTreeNode &other)=delete
 Copy constructor (deleted). More...
 
ElementTreeNodeoperator= (const ElementTreeNode &other)=delete
 Copy assignment operator (deleted). More...
 
ElementTreeNodeoperator= (ElementTreeNode &&other)=delete
 Move assignment operator (deleted). More...
 
void print () const
 methods More...
 
Eigen::Vector2d mapToReferenceElement (const Eigen::Vector2d &in) const
 Maps a point in the reference domain of a patch to the reference element of this element. More...
 
Eigen::Vector2d referenceMidpoint () const
 Get the midpoint of this element with respect to the patch. More...
 
double get_h () const
 getter More...
 
int get_level () const
 Get the level of refinement of the element. More...
 
const ElementTreeNodefront () const
 Returns a const reference to the first son if any or itself. More...
 
const ElementTreeNodeback () const
 Returns a const reference to the last son if any or itself. More...
 
const_iterator cbegin () const
 Returns an iterator pointing to the element in the sequence before this ElementTreeNodes. More...
 
const_iterator cend () const
 Returns an iterator pointing to the element in the sequence after this ElementTreeNode. More...
 
const_iterator begin () const
 Returns an iterator pointing to the element in the sequence before this ElementTreeNodes. More...
 
const_iterator end () const
 Returns an iterator pointing to the element in the sequence after this ElementTreeNode. More...
 

Classes

struct  const_iterator
 iterator struct for element tree nodes. They may be used to iterator over the elements in a cluster. To do so, however, the cluster must be set up by ElementTree beforehand. More...
 

Public Attributes

std::vector< ElementTreeNodesons_
 member variables
 
std::vector< ElementTreeNode * > adjcents_
 children
 
std::vector< int > vertices_
 neighbouring elements indices
 
Eigen::Vector3d midpoint_
 indices of the vertices
 
Eigen::Vector2d llc_
 midpoint of the element
 
ElementTreeNodeprev_
 lower left corner on [0,1]^2
 
ElementTreeNodenext_
 
double radius_
 
int id_
 radius of the element
 
int level_
 element id with respect to the level
 
int patch_
 level of the element
 

Constructor & Destructor Documentation

◆ ElementTreeNode() [1/2]

Bembel::ElementTreeNode::ElementTreeNode ( )
inlinenoexcept

constructors

Default constructor.

Definition at line 88 of file ElementTreeNode.hpp.

◆ ElementTreeNode() [2/2]

Bembel::ElementTreeNode::ElementTreeNode ( const ElementTreeNode other)
delete

Copy constructor (deleted).

Parameters
otherThe ElementTreeNode instance to copy from.

Member Function Documentation

◆ back()

const ElementTreeNode& Bembel::ElementTreeNode::back ( ) const
inline

Returns a const reference to the last son if any or itself.

Returns
Const reference to the last son or this element itself.

Definition at line 218 of file ElementTreeNode.hpp.

◆ begin()

const_iterator Bembel::ElementTreeNode::begin ( ) const
inline

Returns an iterator pointing to the element in the sequence before this ElementTreeNodes.

Returns
Returns a ElementTreeNode::const_iterator object.

Definition at line 253 of file ElementTreeNode.hpp.

◆ cbegin()

const_iterator Bembel::ElementTreeNode::cbegin ( ) const
inline

Returns an iterator pointing to the element in the sequence before this ElementTreeNodes.

Returns
Returns a ElementTreeNode::const_iterator object.

Definition at line 231 of file ElementTreeNode.hpp.

◆ cend()

const_iterator Bembel::ElementTreeNode::cend ( ) const
inline

Returns an iterator pointing to the element in the sequence after this ElementTreeNode.

Returns
Returns a ElementTreeNode::const_iterator object.

Definition at line 242 of file ElementTreeNode.hpp.

◆ end()

const_iterator Bembel::ElementTreeNode::end ( ) const
inline

Returns an iterator pointing to the element in the sequence after this ElementTreeNode.

Returns
Returns a ElementTreeNode::const_iterator object.

Definition at line 261 of file ElementTreeNode.hpp.

◆ front()

const ElementTreeNode& Bembel::ElementTreeNode::front ( ) const
inline

Returns a const reference to the first son if any or itself.

Returns
Const reference to the first son or this element itself.

Definition at line 207 of file ElementTreeNode.hpp.

◆ get_h()

double Bembel::ElementTreeNode::get_h ( ) const
inline

getter

Get with of the reference element with respect to the reference domain of the patch.

Returns
Width of the reference element.

Definition at line 193 of file ElementTreeNode.hpp.

◆ get_level()

int Bembel::ElementTreeNode::get_level ( ) const
inline

Get the level of refinement of the element.

Returns
Level of refinement.

Definition at line 200 of file ElementTreeNode.hpp.

◆ mapToReferenceElement()

Eigen::Vector2d Bembel::ElementTreeNode::mapToReferenceElement ( const Eigen::Vector2d &  in) const
inline

Maps a point in the reference domain of a patch to the reference element of this element.

This function asserts that the correct element is chosen. So the return value must be with in [0,1]^2.

Parameters
inPoint in reference domain of the patch.
Returns
Point in reference domain of the element.

Definition at line 170 of file ElementTreeNode.hpp.

◆ operator=() [1/2]

ElementTreeNode& Bembel::ElementTreeNode::operator= ( const ElementTreeNode other)
delete

Copy assignment operator (deleted).

Parameters
otherThe ElementTreeNode instance to copy from.
Returns
Reference to this ElementTreeNode instance.

◆ operator=() [2/2]

ElementTreeNode& Bembel::ElementTreeNode::operator= ( ElementTreeNode &&  other)
delete

Move assignment operator (deleted).

Parameters
otherThe ElementTreeNode instance to move from.
Returns
Reference to this ElementTreeNode instance.

◆ print()

void Bembel::ElementTreeNode::print ( ) const
inline

methods

Prints the member variables of the element.

Definition at line 138 of file ElementTreeNode.hpp.

◆ referenceMidpoint()

Eigen::Vector2d Bembel::ElementTreeNode::referenceMidpoint ( ) const
inline

Get the midpoint of this element with respect to the patch.

Returns
Midpoint with respect to the patch containing the element.

Definition at line 181 of file ElementTreeNode.hpp.


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