Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
jafar::facetsmap::FacetsContainer Class Reference

This class is intended to store the facets. More...


Detailed Description

This class is intended to store the facets.

Definition at line 14 of file facetscontainer.hpp.

#include <facetscontainer.hpp>

Inheritance diagram for jafar::facetsmap::FacetsContainer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

id2Facet_cit begin () const
id2Facet_cit end () const
vFacets closestTo (Facet *f)
 This function will return a list of facet whose texture is closed to the one given in argument.
Facetoperator[] (uint i)
Facetget (unsigned int id)
unsigned int nbfacets () const
bool isMember (uint id)
lUints keysList ()
void dump ()

Protected Member Functions

uint nextId ()
void insertFacet (uint id, Facet *f, bool lookneigh=false)
 This function insert a facet, and look for its neighborhood.

Protected Attributes

uint m_nexid
id2Facet m_facets

Friends

std::ostream & operator<< (std::ostream &, const FacetsContainer &)
 implement operator <<

Member Function Documentation

id2Facet_cit jafar::facetsmap::FacetsContainer::begin ( ) const [inline]
Returns:
an iterator on the first facet

Definition at line 21 of file facetscontainer.hpp.

id2Facet_cit jafar::facetsmap::FacetsContainer::end ( ) const [inline]
Returns:
an iterator on the facet after the last one

Definition at line 25 of file facetscontainer.hpp.

Facet* jafar::facetsmap::FacetsContainer::get ( unsigned int  id) [inline]
Returns:
the facet associated with a given identifiant.

Definition at line 39 of file facetscontainer.hpp.

void jafar::facetsmap::FacetsContainer::insertFacet ( uint  id,
Facet f,
bool  lookneigh = false 
) [protected]

This function insert a facet, and look for its neighborhood.

Parameters:
idthe identifiant of the facet (should be equal to f->id())
fa pointer to the facet
lookneightells the function if we need to look for the facets which might be close to the facet we are adding

Reimplemented in jafar::facetsmap::FacetsAnalyser.

bool jafar::facetsmap::FacetsContainer::isMember ( uint  id) [inline]
Returns:
true if there is a facet in the container with the identifiant

Definition at line 51 of file facetscontainer.hpp.

Returns:
the list of identifiant
unsigned int jafar::facetsmap::FacetsContainer::nbfacets ( ) const [inline]
Returns:
the number of facets in the map

Definition at line 47 of file facetscontainer.hpp.

uint jafar::facetsmap::FacetsContainer::nextId ( ) [inline, protected]
Returns:
the next free identifiant

Definition at line 60 of file facetscontainer.hpp.

Facet* jafar::facetsmap::FacetsContainer::operator[] ( uint  i) [inline]
Returns:
the facet associated with a given identifiant.

Definition at line 35 of file facetscontainer.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:35 for Jafar by doxygen 1.7.6.1
LAAS-CNRS