#include <VtRelationList.hh>
◆ const_iterator
◆ const_reverse_iterator
◆ iterator
◆ reverse_iterator
◆ RelationList()
VERTEX::RelationList::RelationList |
( |
| ) |
|
◆ ~RelationList()
VERTEX::RelationList::~RelationList |
( |
| ) |
|
|
virtual |
virtual void clear()
clear all relations
Definition: VtRelationList.C:57
◆ back()
Relation * VERTEX::RelationList::back |
( |
| ) |
const |
|
inline |
return last relation
Relation_v rellist
Definition: VtRelationList.hh:288
◆ begin() [1/2]
iterator VERTEX::RelationList::begin |
( |
| ) |
|
|
inline |
RelationIterator iterator
Definition: VtRelationList.hh:229
◆ begin() [2/2]
ConstRelationIterator const_iterator
Definition: VtRelationList.hh:230
◆ clear()
void VERTEX::RelationList::clear |
( |
void |
| ) |
|
|
virtual |
clear all relations
Reimplemented in VERTEX::Vertex.
57 {
59
62
63
65 Relation* rel = *it;
66
67
68 rel->track.unbook(rel);
69 delete rel;
70 }
71 } else {
72
73
75 Relation* rel = *it;
76
77
78 rel->vertex.unbook(rel);
79 delete rel;
80 }
81 }
83 }
iterator end()
Definition: VtRelationList.hh:256
RelationList()
Definition: VtRelationList.C:50
std::list< Relation * >::const_iterator Relation_cit
Definition: VtRelationList.hh:60
◆ end() [1/2]
◆ end() [2/2]
◆ erase()
Erase an element.
Reimplemented in VERTEX::Vertex.
105 {
106 Relation* const rel = &(*pos);
108
109 rel->track.unbook(rel);
110 } else {
111
112 rel->vertex.unbook(rel);
113 }
114 delete rel;
116 }
◆ operator=()
121 {
122 if( this == &rhs ) { return *this; }
123
125 return *this;
126 }
◆ operator==()
bool VERTEX::RelationList::operator== |
( |
const RelationList & |
rhs | ) |
const |
|
inline |
◆ operator[]()
Relation *const VERTEX::RelationList::operator[] |
( |
unsigned int |
i | ) |
const |
direct access
141 {
143
145 unsigned int j=0;
146 while(j++<i) ++it;
147
148 return *it;
149 }
◆ print()
void VERTEX::RelationList::print |
( |
std::ostream & |
os | ) |
const |
131 {
134 cout << **it << " ";
135 return;
136 }
◆ push__back()
◆ rbegin() [1/2]
ReverseRelationIterator reverse_iterator
Definition: VtRelationList.hh:231
◆ rbegin() [2/2]
ConstReverseRelationIterator const_reverse_iterator
Definition: VtRelationList.hh:232
◆ remove()
remove a relation
Reimplemented in VERTEX::Vertex.
88 {
90
91 rel->track.unbook(rel);
92 } else {
93
94 rel->vertex.unbook(rel);
95 }
96
97 delete rel;
99 return;
100 }
◆ rend() [1/2]
◆ rend() [2/2]
◆ size()
unsigned int VERTEX::RelationList::size |
( |
| ) |
const |
|
inline |
◆ unbook()
get rid of relation pointer
◆ rellist
The documentation for this class was generated from the following files: