[B]asic module for [unit] program testing:
|
Iteradores [CONST] simples para la clase "Graph"
.
More...
Public Member Functions | |
Rep_const_iterator () | |
Constructor. | |
Rep_const_iterator (const Rep_const_iterator &o) | |
Constructor de copia. | |
Rep_const_iterator & | operator= (const Rep_const_iterator &o) |
Copia. | |
Rep_const_iterator | operator++ (int) |
it++ | |
Rep_const_iterator | operator++ () |
++it | |
Rep_const_iterator | operator-- (int) |
it-- | |
Rep_const_iterator | operator-- () |
--it | |
const value_type & | operator* () |
*p | |
const value_type * | operator-> () |
p-> | |
Private Attributes | |
Rep::const_iterator | m_it |
Iterador [CONST] de "Graph" . | |
Friends | |
class | Graph |
bool | operator== (const Rep_const_iterator &p, const Rep_const_iterator &q) |
¿ p == q ? | |
bool | operator!= (const Rep_const_iterator &p, const Rep_const_iterator &q) |
¿ p != q ? |
Iteradores [CONST] simples para la clase "Graph"
.
{{ // test::Rep_const_iterator() Graph Tree; Tree.set("root", "child(1)", 1 ); Tree.set("root", "child(2)", 2*2 ); Tree.set("root", "child(3)", 3*3*3); Graph::Rep_const_iterator it, jt; int val = int(); for ( it = Tree.begin_Rep() ; it != Tree.end_Rep() ; ++it ) { for ( jt = Tree.begin_Rep() ; jt != Tree.end_Rep() ; ++jt ) { if ( Tree.isArc( it->first , jt->first , val ) ) { assertTrue( it->first == "root" ); assertTrue( jt->first.substr(0,5) == "child" ); } } } }}
Definition at line 46 of file ADH_Graph.h.
ADH::Graph::Rep_const_iterator::Rep_const_iterator | ( | ) | [inline] |
Constructor.
Definition at line 49 of file ADH_Graph.h.
ADH::Graph::Rep_const_iterator::Rep_const_iterator | ( | const Rep_const_iterator & | o | ) | [inline] |
Constructor de copia.
Definition at line 52 of file ADH_Graph.h.
Rep_const_iterator& ADH::Graph::Rep_const_iterator::operator= | ( | const Rep_const_iterator & | o | ) | [inline] |
Copia.
Definition at line 53 of file ADH_Graph.h.
Rep_const_iterator ADH::Graph::Rep_const_iterator::operator++ | ( | int | ) | [inline] |
it++
Definition at line 65 of file ADH_Graph.h.
Rep_const_iterator ADH::Graph::Rep_const_iterator::operator++ | ( | ) | [inline] |
++it
Definition at line 67 of file ADH_Graph.h.
Rep_const_iterator ADH::Graph::Rep_const_iterator::operator-- | ( | int | ) | [inline] |
it--
Definition at line 68 of file ADH_Graph.h.
Rep_const_iterator ADH::Graph::Rep_const_iterator::operator-- | ( | ) | [inline] |
--it
Definition at line 70 of file ADH_Graph.h.
const value_type& ADH::Graph::Rep_const_iterator::operator* | ( | ) | [inline] |
*p
Definition at line 72 of file ADH_Graph.h.
const value_type* ADH::Graph::Rep_const_iterator::operator-> | ( | ) | [inline] |
p->
Definition at line 73 of file ADH_Graph.h.
friend class Graph [friend] |
Definition at line 47 of file ADH_Graph.h.
bool operator== | ( | const Rep_const_iterator & | p, |
const Rep_const_iterator & | q | ||
) | [friend] |
¿ p == q
?
Definition at line 58 of file ADH_Graph.h.
bool operator!= | ( | const Rep_const_iterator & | p, |
const Rep_const_iterator & | q | ||
) | [friend] |
¿ p != q
?
Definition at line 61 of file ADH_Graph.h.
Rep::const_iterator ADH::Graph::Rep_const_iterator::m_it [private] |
Iterador [CONST] de "Graph"
.
Definition at line 75 of file ADH_Graph.h.