FacesSet< FaceType > Class Template Reference

#include <FacesSet.hpp>

Inheritance diagram for FacesSet< FaceType >:

Inheritance graph
[legend]
Collaboration diagram for FacesSet< FaceType >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const size_t & numberOfFaces () const
void setNumberOfFaces (const size_t &size)
const FaceType & operator[] (const size_t &i) const
FaceType & operator[] (const size_t &i)
size_t number (const FaceType &f) const
 FacesSet (const size_t &s)
 FacesSet (const FacesSet &F)
 ~FacesSet ()

Private Attributes

Vector< FaceType > __faces


Detailed Description

template<typename FaceType>
class FacesSet< FaceType >

Definition at line 26 of file FacesSet.hpp.


Constructor & Destructor Documentation

template<typename FaceType>
FacesSet< FaceType >::FacesSet ( const size_t &  s  )  [inline]

Constructs a FacesSet to a given size s

Parameters:
s the given size

Definition at line 95 of file FacesSet.hpp.

00096     : __faces(s)
00097   {
00098     ;
00099   }

template<typename FaceType>
FacesSet< FaceType >::FacesSet ( const FacesSet< FaceType > &  F  )  [inline]

Copies an EdgesSet

Parameters:
F the given FacesSet

Definition at line 106 of file FacesSet.hpp.

00107     : __faces(F.__faces)
00108   {
00109     ;
00110   }

template<typename FaceType>
FacesSet< FaceType >::~FacesSet (  )  [inline]

Destructs the FacesSet

Definition at line 115 of file FacesSet.hpp.

00116   {
00117     ;
00118   }


Member Function Documentation

template<typename FaceType>
const size_t& FacesSet< FaceType >::numberOfFaces (  )  const [inline]

Read-only access to the number of faces.

Returns:
the number of faces of the seto

Definition at line 37 of file FacesSet.hpp.

00038   {
00039     return __faces.size();
00040   }

template<typename FaceType>
void FacesSet< FaceType >::setNumberOfFaces ( const size_t &  size  )  [inline]

Change the size of the face container.

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

Definition at line 49 of file FacesSet.hpp.

00050   {
00051     __faces.resize(size);
00052   }

template<typename FaceType>
const FaceType& FacesSet< FaceType >::operator[] ( const size_t &  i  )  const [inline]

Access to an face according to its number

Parameters:
i the face number
Returns:
the ith faces

bounds are checked by the Vector class

Definition at line 61 of file FacesSet.hpp.

00062   {
00063     return __faces[i];
00064   }

template<typename FaceType>
FaceType& FacesSet< FaceType >::operator[] ( const size_t &  i  )  [inline]

Access to an face according to its number

Parameters:
i the face number
Returns:
the ith faces

bounds are checked by the Vector class

Definition at line 73 of file FacesSet.hpp.

00074   {
00075     return __faces[i];
00076   }

template<typename FaceType>
size_t FacesSet< FaceType >::number ( const FaceType &  f  )  const [inline]

Returns the number of a given face f

Parameters:
f the given face
Returns:
its number in the faces set

Definition at line 85 of file FacesSet.hpp.

00086   {
00087     return __faces.number(f);
00088   }


Member Data Documentation

template<typename FaceType>
Vector<FaceType> FacesSet< FaceType >::__faces [private]


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

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