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

Public Types | Public Member Functions | Protected Member Functions | Private Attributes
graphics::VertexList Class Reference

Class containing a list of vertices. More...

#include <vertexList.hh>

Inheritance diagram for graphics::VertexList:
Inheritance graph
[legend]
Collaboration diagram for graphics::VertexList:
Collaboration graph
[legend]

List of all members.

Public Types

typedef __gnu_cxx::hash_map
< uint, VertexInfo >
::const_iterator 
const_iterator
typedef __gnu_cxx::hash_map
< uint, VertexInfo >::iterator 
iterator
enum  vtxInfo {
  COORD = 0, EDGES = 1, FACES = 2, VOLUMES = 4,
  ALL = 7
}
 Allows to chose if all information should be stored or only some parts. More...

Public Member Functions

VertexInfoaddVertex (uint v, concepts::Real3d coord)
 Add a new vertex.
const_iterator begin () const
iterator begin ()
 Beginning of the list.
iterator end ()
 End of the list.
const_iterator end () const
iterator find (uint k)
 Finds a vertex in the list.
const_iterator find (uint k) const
virtual void operator() (const Element< Real > &elm)=0
 Application operator.
virtual void operator() (const concepts::Cell &cell)
 Application operator.
virtual void operator() (const concepts::Element< Real > &elm)
 Application operator.
uint size () const
 Returns the size of the list.
VertexInfovertex (uint v)
 Looks for the vertex with the given key.
enum vtxInfo vertexInfo () const
 Returns vtxInfo_.
 VertexList (const VertexList &vl)
 Copy constructor.
 VertexList (enum vtxInfo info=ALL)
 Constructor.
virtual ~VertexList ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Private Attributes

__gnu_cxx::hash_map< uint,
VertexInfo
vertices_
 List of vertices.
enum vtxInfo vtxInfo_
 What information about the vertices should be stored.

Detailed Description

Class containing a list of vertices.

Adding a vertex should be done in three steps:

  1. Check if the vertex already exists (with vertex)
  2. Add a new vertex if it does not yet exist (with addVertex)
  3. If needed: fill in the connectivity information for the vertex. This is done using the methods of VertexInfo.
See also:
VertexInfo
Author:
Philipp Frauenfelder, 2001

Definition at line 95 of file vertexList.hh.


Member Typedef Documentation

typedef __gnu_cxx::hash_map<uint, VertexInfo>::const_iterator graphics::VertexList::const_iterator

Definition at line 99 of file vertexList.hh.

typedef __gnu_cxx::hash_map<uint, VertexInfo>::iterator graphics::VertexList::iterator

Definition at line 97 of file vertexList.hh.


Member Enumeration Documentation

Allows to chose if all information should be stored or only some parts.

To generate an image of the mesh using MeshDX, only the coordinates are needed.

See also:
MeshDX
Enumerator:
COORD 
EDGES 
FACES 
VOLUMES 
ALL 

Definition at line 107 of file vertexList.hh.


Constructor & Destructor Documentation

graphics::VertexList::VertexList ( enum vtxInfo  info = ALL) [inline]

Constructor.

Definition at line 111 of file vertexList.hh.

graphics::VertexList::VertexList ( const VertexList vl)

Copy constructor.

virtual graphics::VertexList::~VertexList ( ) [inline, virtual]

Definition at line 116 of file vertexList.hh.


Member Function Documentation

VertexInfo* graphics::VertexList::addVertex ( uint  v,
concepts::Real3d  coord 
)

Add a new vertex.

Precondition:
The vertex does not yet exist in the list.
Parameters:
vKey of the vertex
coordCoordinates of the vertex
iterator graphics::VertexList::begin ( ) [inline]

Beginning of the list.

Definition at line 135 of file vertexList.hh.

const_iterator graphics::VertexList::begin ( ) const [inline]

Definition at line 136 of file vertexList.hh.

iterator graphics::VertexList::end ( ) [inline]

End of the list.

Definition at line 139 of file vertexList.hh.

const_iterator graphics::VertexList::end ( ) const [inline]

Definition at line 140 of file vertexList.hh.

iterator graphics::VertexList::find ( uint  k) [inline]

Finds a vertex in the list.

Definition at line 143 of file vertexList.hh.

const_iterator graphics::VertexList::find ( uint  k) const [inline]

Definition at line 144 of file vertexList.hh.

virtual std::ostream& graphics::VertexList::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::CellPostprocess< Real >.

virtual void graphics::VertexList::operator() ( const concepts::Cell cell) [virtual]

Application operator.

Adds the vertex of this element to the list and updates the connectivity information of the vertex.

Parameters:
cellElement to be considered

Implements concepts::CellPostprocess< Real >.

virtual void concepts::CellPostprocess< Real >::operator() ( const Element< Real > &  elm) [pure virtual, inherited]

Application operator.

This application operator has to be overloaded to post process a space.

Parameters:
elmCurrent element

Implemented in concepts::CellFaceIntegral< F >, and concepts::CellEdgeIntegral< F >.

virtual void graphics::VertexList::operator() ( const concepts::Element< Real > &  elm) [virtual]

Application operator.

Adds the vertex of this element to the list and updates the connectivity information of the vertex.

Parameters:
elmElement to be considered
uint graphics::VertexList::size ( ) const [inline]

Returns the size of the list.

Definition at line 132 of file vertexList.hh.

VertexInfo* graphics::VertexList::vertex ( uint  v)

Looks for the vertex with the given key.

Returns:
A reference to the vertex, 0 if it does not yet exist
Parameters:
vKey of the vertex
enum vtxInfo graphics::VertexList::vertexInfo ( ) const [inline]

Returns vtxInfo_.

Definition at line 161 of file vertexList.hh.


Member Data Documentation

__gnu_cxx::hash_map<uint, VertexInfo> graphics::VertexList::vertices_ [private]

List of vertices.

Definition at line 166 of file vertexList.hh.

What information about the vertices should be stored.

Definition at line 169 of file vertexList.hh.


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

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