VerticesSet Class Reference

#include <VerticesSet.hpp>

Collaboration diagram for VerticesSet:

Collaboration graph
[legend]

List of all members.

Public Member Functions

size_t number (const Vertex &v) const
const size_t & numberOfVertices () const
void setNumberOfVertices (const size_t &size)
const Vertexoperator[] (const size_t &i) const
Vertexoperator[] (const size_t &i)
 VerticesSet (const size_t &s)
 VerticesSet (const VerticesSet &v)
 ~VerticesSet ()

Private Attributes

Vector< Vertex__vertices


Detailed Description

Definition at line 37 of file VerticesSet.hpp.


Constructor & Destructor Documentation

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

Constructs a VerticesSet to a given size s

Parameters:
s the given size

Definition at line 105 of file VerticesSet.hpp.

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

VerticesSet::VerticesSet ( const VerticesSet v  )  [inline]

Copies a VerticesSet

Parameters:
v the given VerticesSet

Definition at line 116 of file VerticesSet.hpp.

00117     : __vertices(v.__vertices)
00118   {
00119     ;
00120   }

VerticesSet::~VerticesSet (  )  [inline]

Destructs a VerticesSet

Definition at line 126 of file VerticesSet.hpp.

00127   {
00128     ;
00129   }


Member Function Documentation

size_t VerticesSet::number ( const Vertex v  )  const [inline]

Returns the number of the vertex V in the list

Parameters:
v a vertex
Returns:
the vertex number

Definition at line 49 of file VerticesSet.hpp.

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

00050   {
00051     return __vertices.number(v);
00052   }

Here is the call graph for this function:

const size_t& VerticesSet::numberOfVertices (  )  const [inline]

Read-only access to the number of vertices.

Returns:
the number of vertices of the set

Definition at line 59 of file VerticesSet.hpp.

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

Referenced by MeshReaderAM_FMTFormat::__readVertices(), MeshFormatReader::__readVertices(), MeshReaderAM_FMTFormat::__readVerticesReferences(), and OctreeMeshBuilder::buildMesh().

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

Here is the call graph for this function:

void VerticesSet::setNumberOfVertices ( const size_t &  size  )  [inline]

Change the size of the vertices container.

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

Definition at line 71 of file VerticesSet.hpp.

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

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

Here is the call graph for this function:

const Vertex& VerticesSet::operator[] ( const size_t &  i  )  const [inline]

Access to a vertex according to its number

Parameters:
i the vertex number
Returns:
the ith vertex

bounds are checked by the Vector class

Definition at line 83 of file VerticesSet.hpp.

References __vertices.

00084   {
00085     return __vertices[i];
00086   }

Vertex& VerticesSet::operator[] ( const size_t &  i  )  [inline]

Read-only access to a vertex according to its number

Parameters:
i the vertex number
Returns:
the ith vertex

bounds are checked by the Vector class

Definition at line 95 of file VerticesSet.hpp.

References __vertices.

00096   {
00097     return __vertices[i];
00098   }


Member Data Documentation

Definition at line 40 of file VerticesSet.hpp.

Referenced by number(), numberOfVertices(), operator[](), and setNumberOfVertices().


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

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