VerticesCorrespondance Class Reference

#include <VerticesCorrespondance.hpp>

Collaboration diagram for VerticesCorrespondance:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const size_t & numberOfCorrespondances () const
const size_t & operator[] (const size_t &i) const
size_t & operator[] (const size_t &i)
 VerticesCorrespondance (const size_t &nbVertices)
 VerticesCorrespondance (const size_t &nbCorrespondances, ReferenceCounting< Vector< size_t > > verticesNumbers)
 VerticesCorrespondance (const VerticesCorrespondance &v)
 ~VerticesCorrespondance ()

Private Attributes

const size_t __numberOfCorrespondances
ReferenceCounting< Vector
< size_t > > 
__pVerticesNumbers
 This table contains correspondance to "real" vertices.
Vector< size_t > & __verticesNumbers
 This is used to avoid *__pVerticesNumbers.


Detailed Description

Definition at line 37 of file VerticesCorrespondance.hpp.


Constructor & Destructor Documentation

VerticesCorrespondance::VerticesCorrespondance ( const size_t &  nbVertices  )  [inline]

Constructor. This constructor considers that vertices are all non-periodic vertices.

Parameters:
nbVertices number of vertices

Definition at line 93 of file VerticesCorrespondance.hpp.

References __verticesNumbers.

00094     : __numberOfCorrespondances(nbVertices),
00095       __pVerticesNumbers(new Vector<size_t>(nbVertices)),
00096       __verticesNumbers(*__pVerticesNumbers)
00097   {
00098     for (size_t i=0; i<nbVertices; ++i) {
00099       __verticesNumbers[i] = i;
00100     }
00101   }

VerticesCorrespondance::VerticesCorrespondance ( const size_t &  nbCorrespondances,
ReferenceCounting< Vector< size_t > >  verticesNumbers 
) [inline]

Constructor.

Parameters:
nbCorrespondances the number of real vertices
verticesNumbers the vertices numbers

Definition at line 109 of file VerticesCorrespondance.hpp.

00111     : __numberOfCorrespondances(nbCorrespondances),
00112       __pVerticesNumbers(verticesNumbers),
00113       __verticesNumbers(*__pVerticesNumbers)
00114   {
00115     ;
00116   }

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

Copy constructor

Parameters:
v a VerticesCorrespondance to copy

Definition at line 123 of file VerticesCorrespondance.hpp.

VerticesCorrespondance::~VerticesCorrespondance (  )  [inline]

Destructor

Definition at line 135 of file VerticesCorrespondance.hpp.

00136   {
00137     ;
00138   }


Member Function Documentation

const size_t& VerticesCorrespondance::numberOfCorrespondances (  )  const [inline]

Read only access to the number of correspondance

Returns:
the __numberOfCorrespondances

Definition at line 58 of file VerticesCorrespondance.hpp.

References __numberOfCorrespondances.

00059   {
00060     return __numberOfCorrespondances;
00061   }

const size_t& VerticesCorrespondance::operator[] ( const size_t &  i  )  const [inline]

Read-only access to the vertices "real" numbers

Parameters:
i the number of the vertex
Returns:
the number of the i th vertex

Definition at line 70 of file VerticesCorrespondance.hpp.

References __verticesNumbers.

00071   {
00072     return __verticesNumbers[i];
00073   }

size_t& VerticesCorrespondance::operator[] ( const size_t &  i  )  [inline]

Access to the vertices "real" numbers

Parameters:
i the number of the vertex
Returns:
the number of the i th vertex

Definition at line 82 of file VerticesCorrespondance.hpp.

References __verticesNumbers.

00083   {
00084     return __verticesNumbers[i];
00085   }


Member Data Documentation

maximum number of correspondances. It represents the number of real vertices (periodic copies of vertices are not counted). It is usefull for instance to compute the number of degrees of freedom.

Definition at line 44 of file VerticesCorrespondance.hpp.

Referenced by numberOfCorrespondances().

This table contains correspondance to "real" vertices.

Definition at line 47 of file VerticesCorrespondance.hpp.

This is used to avoid *__pVerticesNumbers.

Definition at line 50 of file VerticesCorrespondance.hpp.

Referenced by operator[](), and VerticesCorrespondance().


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

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