42 #ifndef OPENMESH_HANDLES_HH
43 #define OPENMESH_HANDLES_HH
48 #include <OpenMesh/Core/System/config.h>
64 explicit BaseHandle(
int _idx=-1) : idx_(_idx) {}
67 int idx()
const {
return idx_; }
77 bool operator==(
const BaseHandle& _rhs)
const {
78 return (this->idx_ == _rhs.idx_);
81 bool operator!=(
const BaseHandle& _rhs)
const {
82 return (this->idx_ != _rhs.idx_);
85 bool operator<(
const BaseHandle& _rhs)
const {
86 return (this->idx_ < _rhs.idx_);
91 void __increment() { ++idx_; }
92 void __decrement() { --idx_; }
106 return (_os << _hnd.
idx());
144 #endif // OPENMESH_HANDLES_HH