Topological sphere connector. More...

#include <sphereTopology.hh>

Inheritance diagram for concepts::Sphere:
concepts::Connector3 concepts::Connector concepts::OutputOperator

Public Member Functions

const Attributeattrib () const
 Returns the attribute of the connector. More...
 
SphericalSurfaceboundary () const
 Return boundary connector. More...
 
const Connector3child (uint i) const override
 
Connector3child (uint i, bool mode) override
 Returns the ith child of the connector. More...
 
Connector1edge (uint i) const override
 Required method by Connector3. More...
 
Connector2face (uint i) const override
 Required method by Connector3. More...
 
std::ostream & info (std::ostream &os) const override
 Returns information in an output stream. More...
 
const Keykey () const
 Returns the key of the connector. More...
 
int operator== (const Connector &cntr) const
 Comparison operator. More...
 
int related (const Connector &conn) const
 Checks if this connector is related to conn. More...
 
void setAttrib (uint attrb)
 
 Sphere (SphericalSurface &surface, const Attribute attrib=Attribute())
 
Connector0vertex (uint i) const override
 Required method by Connector3. More...
 
 ~Sphere () override
 

Protected Attributes

Attribute attrib_
 Attribute. More...
 
Key key_
 Unique key of the connector. More...
 

Static Protected Attributes

static uint cnt_
 Counter for the connectors. More...
 

Private Attributes

SphericalSurfacesurface_
 

Detailed Description

Topological sphere connector.

In contrast to usual finite element connectors orientation flags are absent here.

Author
Lukas Drescher, 2014
Todo:
Introduce key counting on the base level of Connector, not ConnectorN since Sphere currently incorrectly needs to derive from Connector3 (unique keys are required by mortar library)

Definition at line 66 of file sphereTopology.hh.

Constructor & Destructor Documentation

◆ Sphere()

concepts::Sphere::Sphere ( SphericalSurface surface,
const Attribute  attrib = Attribute() 
)

◆ ~Sphere()

concepts::Sphere::~Sphere ( )
inlineoverride

Definition at line 70 of file sphereTopology.hh.

Member Function Documentation

◆ attrib()

const Attribute& concepts::Connector::attrib ( ) const
inlineinherited

Returns the attribute of the connector.

Definition at line 108 of file connector.hh.

◆ boundary()

SphericalSurface& concepts::Sphere::boundary ( ) const
inline

Return boundary connector.

Definition at line 73 of file sphereTopology.hh.

◆ child() [1/2]

const Connector3* concepts::Sphere::child ( uint  i) const
overridevirtual

Implements concepts::Connector3.

◆ child() [2/2]

Connector3* concepts::Sphere::child ( uint  i,
bool  mode 
)
overridevirtual

Returns the ith child of the connector.

Parameters
iIndex of the child
modeIf mode = false(0) the child is created if it does not yet exist, if mode = true(1) no new children are created (ie. 0 is returned if no children exist).
Invariant
Either all children or no children exist.

Implements concepts::Connector3.

◆ edge()

Connector1* concepts::Sphere::edge ( uint  i) const
overridevirtual

Required method by Connector3.

Implements concepts::Connector3.

◆ face()

Connector2* concepts::Sphere::face ( uint  i) const
overridevirtual

Required method by Connector3.

Implements concepts::Connector3.

◆ info()

std::ostream& concepts::Sphere::info ( std::ostream &  os) const
overridevirtual

Returns information in an output stream.

Reimplemented from concepts::Connector.

◆ key()

const Key& concepts::Connector::key ( ) const
inlineinherited

Returns the key of the connector.

Definition at line 105 of file connector.hh.

◆ operator==()

int concepts::Connector::operator== ( const Connector cntr) const
inlineinherited

Comparison operator.

Definition at line 102 of file connector.hh.

◆ related()

int concepts::Connector::related ( const Connector conn) const
inherited

Checks if this connector is related to conn.

It is being checked if one of the two is an ancestor of the other.

Parameters
connOther connector
Returns
An integer i.
i=0 if there is no relationship or the connectors are identical
i>0 if conn is an ancestor of this connector
i<0 if conn is a descendant of this connector
|i| gives the number of generations between the connectors

◆ setAttrib()

void concepts::Connector::setAttrib ( uint  attrb)
inlineinherited

Definition at line 111 of file connector.hh.

◆ vertex()

Connector0* concepts::Sphere::vertex ( uint  i) const
overridevirtual

Required method by Connector3.

Implements concepts::Connector3.

Member Data Documentation

◆ attrib_

Attribute concepts::Connector::attrib_
protectedinherited

Attribute.

Definition at line 132 of file connector.hh.

◆ cnt_

uint concepts::Connector3::cnt_
staticprotectedinherited

Counter for the connectors.

This counter is used to create the unique key of the connector.

Definition at line 322 of file connector.hh.

◆ key_

Key concepts::Connector::key_
protectedinherited

Unique key of the connector.

Definition at line 129 of file connector.hh.

◆ surface_

SphericalSurface* concepts::Sphere::surface_
private

Definition at line 88 of file sphereTopology.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich