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_;
General iterator template. Provides iterator over objects of type ObjectIn in some container....
const ObjectOut & operator*() const
const ObjectOut * operator->() const
-> dereference operator
IterConvert(const ObjectIn &object)
General iterator template. Provides iterator over objects of type Object in some container.
Iter & operator++()
prefix increment
bool operator!=(const Iter &other)
non-equal operator
bool operator==(const Iter &other)
equal operator
const Object * operator->() const
-> dereference operator
const Object & operator*() const
Iter(const Object &object)
Iter< Object > make_iter(Object obj)