Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Private Member Functions | Private Attributes
concepts::Line Class Reference

Mesh for the interval of the real axis. More...

#include <meshes1D.hh>

Inheritance diagram for concepts::Line:
Inheritance graph
[legend]
Collaboration diagram for concepts::Line:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Member Functions

void construct_ (const Array< Real > coord)

Private Attributes

Sequence< Cell1 * > cell_
Sequence< Edge * > edg_
const uint n_
Sequence< Vertex * > vtx_

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 21 of file meshes1D.hh.


Constructor & Destructor Documentation

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

Default constructor for interval (0,1).

The coordinates are uniformly distributed.

Parameters:
nnumber of cells
concepts::Line::Line ( Real  left,
Real  right 
)

Constructor for two vertices.

concepts::Line::Line ( Real  left,
Real  mid,
Real  right 
)

Constructor for three vertices.

concepts::Line::Line ( Real  v0,
Real  v1,
Real  v2,
Real  v3 
)

Constructor for four vertices.

virtual concepts::Line::~Line ( ) [virtual]

Member Function Documentation

void concepts::Line::construct_ ( const Array< Real coord) [private]
virtual std::ostream& concepts::Line::info ( std::ostream &  os) const [virtual]

Returns information in an output stream.

Reimplemented from concepts::Mesh.

unsigned int concepts::Line::ncell ( ) const [inline, virtual]

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 40 of file meshes1D.hh.

Scan1* concepts::Line::scan ( ) [inline, virtual]

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 41 of file meshes1D.hh.


Member Data Documentation

Definition at line 49 of file meshes1D.hh.

Definition at line 48 of file meshes1D.hh.

const uint concepts::Line::n_ [private]

Definition at line 45 of file meshes1D.hh.

Definition at line 47 of file meshes1D.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)