Rewrote vertex-centered circulators.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@890 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -117,11 +117,13 @@ class GenericIteratorT {
|
||||
}
|
||||
|
||||
/// Get the handle of the item the iterator refers to.
|
||||
DEPRECATED("This function clutters your code. Use dereferencing operators -> and * instead.")
|
||||
value_handle handle() const {
|
||||
return hnd_;
|
||||
}
|
||||
|
||||
/// Cast to the handle of the item the iterator refers to.
|
||||
DEPRECATED("Implicit casts of iterators are unsafe. Use dereferencing operators -> and * instead.")
|
||||
operator value_handle() const {
|
||||
return hnd_;
|
||||
}
|
||||
@@ -144,6 +146,13 @@ class GenericIteratorT {
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Standard post-increment operator
|
||||
GenericIteratorT operator++(int) {
|
||||
GenericIteratorT cpy(*this);
|
||||
++(*this);
|
||||
return cpy;
|
||||
}
|
||||
|
||||
/// Standard pre-decrement operator
|
||||
GenericIteratorT& operator--() {
|
||||
hnd_.__decrement();
|
||||
@@ -152,6 +161,13 @@ class GenericIteratorT {
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Standard post-decrement operator
|
||||
GenericIteratorT operator--(int) {
|
||||
GenericIteratorT cpy(*this);
|
||||
--(*this);
|
||||
return cpy;
|
||||
}
|
||||
|
||||
/// Turn on skipping: automatically skip deleted/hidden elements
|
||||
void enable_skipping() {
|
||||
if (mesh_ && (mesh_->*PrimitiveStatusMember)()) {
|
||||
|
||||
Reference in New Issue
Block a user