EdgesSet Class Reference

#include <EdgesSet.hpp>

Collaboration diagram for EdgesSet:

Collaboration graph
[legend]

List of all members.

Public Member Functions

size_t number (const Edge &e) const
const size_t & numberOfEdges () const
void setNumberOfEdges (const size_t &size)
const Edgeoperator[] (const size_t &i) const
Edgeoperator[] (const size_t &i)
 EdgesSet (const size_t &s)
 EdgesSet (const EdgesSet &E)
 ~EdgesSet ()

Private Attributes

Vector< Edge__edges


Detailed Description

Definition at line 37 of file EdgesSet.hpp.


Constructor & Destructor Documentation

EdgesSet::EdgesSet ( const size_t &  s  )  [inline]

Constructs an EdgesSet to a given size s

Parameters:
s the given size

Definition at line 105 of file EdgesSet.hpp.

00106     : __edges(s)
00107   {
00108     ;
00109   }

EdgesSet::EdgesSet ( const EdgesSet E  )  [inline]

Copies an EdgesSet

Parameters:
E the given EdgesSet

Definition at line 116 of file EdgesSet.hpp.

00117     : __edges(E.__edges)
00118   {
00119     ;
00120   }

EdgesSet::~EdgesSet (  )  [inline]

Destructs an EdgesSet

Definition at line 126 of file EdgesSet.hpp.

00127   {
00128     ;
00129   }


Member Function Documentation

size_t EdgesSet::number ( const Edge e  )  const [inline]

Returns the number of the edge e in the list

Parameters:
e an edge
Returns:
the edge number

Definition at line 49 of file EdgesSet.hpp.

References __edges, and Vector< T >::number().

00050   {
00051     return __edges.number(e);
00052   }

Here is the call graph for this function:

const size_t& EdgesSet::numberOfEdges (  )  const [inline]

Read-only access to the number of edges.

Returns:
the number of edges of the set

Definition at line 59 of file EdgesSet.hpp.

References __edges, and Vector< T >::size().

00060   {
00061     return __edges.size();
00062   }

Here is the call graph for this function:

void EdgesSet::setNumberOfEdges ( const size_t &  size  )  [inline]

Change the size of the edge container.

Parameters:
size the new size of the edge set
Note:
all data are lost!

Definition at line 71 of file EdgesSet.hpp.

References __edges, and Vector< T >::resize().

00072   {
00073     __edges.resize(size);
00074   }

Here is the call graph for this function:

const Edge& EdgesSet::operator[] ( const size_t &  i  )  const [inline]

Access to an edge according to its number

Parameters:
i the edge number
Returns:
the ith edge

bounds are checked by the Vector class

Definition at line 83 of file EdgesSet.hpp.

References __edges.

00084   {
00085     return __edges[i];
00086   }

Edge& EdgesSet::operator[] ( const size_t &  i  )  [inline]

Read-only access to an edge according to its number

Parameters:
i the edge number
Returns:
the ith edge

bounds are checked by the Vector class

Definition at line 95 of file EdgesSet.hpp.

References __edges.

00096   {
00097     return __edges[i];
00098   }


Member Data Documentation

Definition at line 40 of file EdgesSet.hpp.

Referenced by number(), numberOfEdges(), operator[](), and setNumberOfEdges().


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

Generated on Wed Nov 19 00:06:00 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6