#include <EdgesSet.hpp>

Public Member Functions | |
| size_t | number (const Edge &e) const |
| const size_t & | numberOfEdges () const |
| void | setNumberOfEdges (const size_t &size) |
| const Edge & | operator[] (const size_t &i) const |
| Edge & | operator[] (const size_t &i) |
| EdgesSet (const size_t &s) | |
| EdgesSet (const EdgesSet &E) | |
| ~EdgesSet () | |
Private Attributes | |
| Vector< Edge > | __edges |
Definition at line 37 of file EdgesSet.hpp.
| EdgesSet::EdgesSet | ( | const size_t & | s | ) | [inline] |
Constructs an EdgesSet to a given size s
| s | the given size |
Definition at line 105 of file EdgesSet.hpp.
00106 : __edges(s) 00107 { 00108 ; 00109 }
| EdgesSet::EdgesSet | ( | const EdgesSet & | E | ) | [inline] |
| EdgesSet::~EdgesSet | ( | ) | [inline] |
| size_t EdgesSet::number | ( | const Edge & | e | ) | const [inline] |
Returns the number of the edge e in the list
| e | an edge |
Definition at line 49 of file EdgesSet.hpp.
References __edges, and Vector< T >::number().

| const size_t& EdgesSet::numberOfEdges | ( | ) | const [inline] |
Read-only access to the number of edges.
Definition at line 59 of file EdgesSet.hpp.
References __edges, and Vector< T >::size().

| void EdgesSet::setNumberOfEdges | ( | const size_t & | size | ) | [inline] |
Change the size of the edge container.
| size | the new size of the edge set |
Definition at line 71 of file EdgesSet.hpp.
References __edges, and Vector< T >::resize().

| const Edge& EdgesSet::operator[] | ( | const size_t & | i | ) | const [inline] |
Access to an edge according to its number
| i | the edge number |
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
| i | the edge number |
bounds are checked by the Vector class
Definition at line 95 of file EdgesSet.hpp.
References __edges.
00096 { 00097 return __edges[i]; 00098 }
Vector<Edge> EdgesSet::__edges [private] |
Definition at line 40 of file EdgesSet.hpp.
Referenced by number(), numberOfEdges(), operator[](), and setNumberOfEdges().
1.5.6