Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::Line Class Reference

#include <meshes1D.hh>

Inheritance diagram for concepts::Line:
concepts::Mesh1 concepts::Mesh concepts::OutputOperator

Public Member Functions

 Line (const uint n=1)
 
 Line (Real left, Real right)
 Constructor for two vertices.
 
 Line (Real left, Real mid, Real right)
 Constructor for three vertices.
 
 Line (Real v0, Real v1, Real v2, Real v3)
 Constructor for four vertices.
 
unsigned int ncell () const
 Returns the number of cells in the mesh.
 
Scan1scan ()
 
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Detailed Description

Mesh for the interval of the real axis.

The two boundary vertices have attribute 1 and 2.

Author
Kersten Schmidt, 2009

Definition at line 23 of file meshes1D.hh.

Constructor & Destructor Documentation

◆ Line()

concepts::Line::Line ( const uint  n = 1)

Default constructor for interval (0,1).

The coordinates are uniformly distributed.

Parameters
nnumber of cells

Member Function Documentation

◆ info()

virtual std::ostream & concepts::Line::info ( std::ostream &  os) const
virtual

Returns information in an output stream.

Reimplemented from concepts::Mesh.

◆ ncell()

unsigned int concepts::Line::ncell ( ) const
inlinevirtual

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 42 of file meshes1D.hh.

◆ scan()

Scan1 * concepts::Line::scan ( )
inlinevirtual

Returns a scanner over the cells of the mesh.

Postcondition
The scanner must be deleted after usage. This has to be done by the user.

Implements concepts::Mesh1.

Definition at line 43 of file meshes1D.hh.


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