Flow123d
JS_before_hm-2198-g122e1f2e2
|
Go to the documentation of this file.
19 #ifndef GENERAL_ITERATOR_HH_
20 #define GENERAL_ITERATOR_HH_
31 template<
class Object>
37 Iter(
const Object&
object);
62 template<
class ObjectIn,
class ObjectOut>
84 template<
class Object>
92 template<
class ObjectIn,
class ObjectOut>
102 template<
class Object>
107 template<
class Object>
110 return (object_ == other.
object_);
113 template<
class Object>
116 return !( *
this == other);
119 template<
class Object>
125 template<
class Object>
131 template<
class Object>
138 template<
class ObjectIn,
class ObjectOut>
140 :
Iter<ObjectIn>(object)
143 template<
class ObjectIn,
class ObjectOut>
146 out_ = (ObjectOut)this->object_;
150 template<
class ObjectIn,
class ObjectOut>
153 out_ = (ObjectOut)this->object_;
157 #endif // GENERAL_ITERATOR_HH_
const ObjectOut * operator->() const
-> dereference operator
General iterator template. Provides iterator over objects of type Object in some container.
const ObjectOut & operator*() const
const Object & operator*() const
General iterator template. Provides iterator over objects of type ObjectIn in some container....
const Object * operator->() const
-> dereference operator
IterConvert(const ObjectIn &object)
Iter & operator++()
prefix increment
Iter< Object > make_iter(Object obj)
bool operator!=(const Iter &other)
non-equal operator
bool operator==(const Iter &other)
equal operator
Iter(const Object &object)