Commit 4eccc31d authored by Mike Kremer's avatar Mike Kremer

Added const keyword to templated iterator typedefs. Using typedefs consistently.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@260 66977474-1d4b-4f09-8fe9-267525286df2
parent fb2f3cb9
......@@ -63,8 +63,8 @@ public:
typedef std::bidirectional_iterator_tag iterator_category;
typedef int difference_type;
typedef OH value_type;
typedef OH* pointer;
typedef OH& reference;
typedef const OH* pointer;
typedef const OH& reference;
BaseIterator(const TopologyKernel* _mesh, const IH& _ih, const OH& _ch) :
valid_(true), cur_handle_(_ch), ref_handle_(_ih), mesh_(_mesh) {}
......@@ -87,11 +87,11 @@ public:
return !this->operator==(_c);
}
const OH* operator->() const {
pointer operator->() const {
return &cur_handle_;
}
const OH& operator*() const {
reference operator*() const {
return cur_handle_;
}
......@@ -120,7 +120,7 @@ public:
void cur_handle(const OH& _h) {
cur_handle_ = _h;
}
const OH& cur_handle() const {
reference cur_handle() const {
return cur_handle_;
}
const IH& ref_handle() const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment