Flow123d  release_3.0.0-1026-ga6b0c21
Public Member Functions | Private Attributes | Friends | List of all members
IntersectionLocal< dimA, dimB > Class Template Reference

Class represents intersection of two elements. More...

#include <inspect_elements_algorithm.hh>

Inheritance diagram for IntersectionLocal< dimA, dimB >:
Inheritance graph
[legend]
Collaboration diagram for IntersectionLocal< dimA, dimB >:
Collaboration graph
[legend]

Public Member Functions

 IntersectionLocal ()
 Default constructor. More...
 
 IntersectionLocal (unsigned int component_element_idx, unsigned int bulk_element_idx)
 Constructor taking in element indices. More...
 
 IntersectionLocal (const IntersectionAux< dimA, dimB > &iaux)
 Copy constructor. More...
 
 ~IntersectionLocal ()
 Destructor. More...
 
double compute_measure () const override
 Computes the relative measure of intersection object. More...
 
Getters.
std::vector< IntersectionPoint< dimA, dimB > > & points ()
 Returns intersection points by a reference. More...
 
const std::vector< IntersectionPoint< dimA, dimB > > & points () const
 Returns intersection points by a constant reference. More...
 
const IntersectionPoint< dimA, dimB > & operator[] (unsigned int index) const
 Returns intersection point of given index. More...
 
unsigned int size () const
 Returns number of intersection points. More...
 
- Public Member Functions inherited from IntersectionLocalBase
 IntersectionLocalBase ()
 
 IntersectionLocalBase (unsigned int component_element_idx, unsigned int bulk_element_idx)
 Constructor taking in element indices. More...
 
 ~IntersectionLocalBase ()
 
unsigned int component_ele_idx () const
 Returns index of component element. More...
 
unsigned int bulk_ele_idx () const
 Returns index of bulk element. More...
 

Private Attributes

std::vector< IntersectionPoint< dimA, dimB > > i_points_
 Vector of intersection points. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const IntersectionLocal< dimA, dimB > &intersection)
 Friend output operator. More...
 

Additional Inherited Members

- Protected Attributes inherited from IntersectionLocalBase
unsigned int component_element_idx_
 Index of intersecting element in the component. More...
 
unsigned int bulk_element_idx_
 Index of intersecting element in the bulk. More...
 

Detailed Description

template<unsigned int dimA, unsigned int dimB>
class IntersectionLocal< dimA, dimB >

Class represents intersection of two elements.

It contains indices of intersecting elements (inherited from base class) and vector of intersection points which provides barycentric coordinates on both elements.

Definition at line 34 of file inspect_elements_algorithm.hh.

Constructor & Destructor Documentation

template<unsigned int dimA, unsigned int dimB>
IntersectionLocal< dimA, dimB >::IntersectionLocal ( )

Default constructor.

Definition at line 27 of file intersection_local.cc.

template<unsigned int dimA, unsigned int dimB>
IntersectionLocal< dimA, dimB >::IntersectionLocal ( unsigned int  component_element_idx,
unsigned int  bulk_element_idx 
)

Constructor taking in element indices.

Definition at line 31 of file intersection_local.cc.

template<unsigned int dimA, unsigned int dimB>
IntersectionLocal< dimA, dimB >::IntersectionLocal ( const IntersectionAux< dimA, dimB > &  iaux)

Copy constructor.

Definition at line 36 of file intersection_local.cc.

template<unsigned int dimA, unsigned int dimB>
IntersectionLocal< dimA, dimB >::~IntersectionLocal ( )

Destructor.

Definition at line 48 of file intersection_local.cc.

Member Function Documentation

template<unsigned int dimA, unsigned int dimB>
double IntersectionLocal< dimA, dimB >::compute_measure ( ) const
overridevirtual

Computes the relative measure of intersection object.

Implements IntersectionLocalBase.

Definition at line 53 of file intersection_local.cc.

Here is the caller graph for this function:

template<unsigned int dimA, unsigned int dimB>
const IntersectionPoint< dimA, dimB > & IntersectionLocal< dimA, dimB >::operator[] ( unsigned int  index) const
inline

Returns intersection point of given index.

Definition at line 138 of file intersection_local.hh.

template<unsigned int dimA, unsigned int dimB>
std::vector< IntersectionPoint< dimA, dimB > > & IntersectionLocal< dimA, dimB >::points ( )
inline

Returns intersection points by a reference.

Definition at line 130 of file intersection_local.hh.

template<unsigned int dimA, unsigned int dimB>
const std::vector< IntersectionPoint< dimA, dimB > > & IntersectionLocal< dimA, dimB >::points ( ) const
inline

Returns intersection points by a constant reference.

Definition at line 134 of file intersection_local.hh.

template<unsigned int dimA, unsigned int dimB>
unsigned int IntersectionLocal< dimA, dimB >::size ( ) const
inline

Returns number of intersection points.

Definition at line 143 of file intersection_local.hh.

Here is the caller graph for this function:

Friends And Related Function Documentation

template<unsigned int dimA, unsigned int dimB>
std::ostream& operator<< ( std::ostream &  os,
const IntersectionLocal< dimA, dimB > &  intersection 
)
friend

Friend output operator.

Member Data Documentation

template<unsigned int dimA, unsigned int dimB>
std::vector<IntersectionPoint<dimA,dimB> > IntersectionLocal< dimA, dimB >::i_points_
private

Vector of intersection points.

Definition at line 92 of file intersection_local.hh.


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