Commit b3669c1c authored by Mike Kremer's avatar Mike Kremer

Get vertex handles by reference.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@179 66977474-1d4b-4f09-8fe9-267525286df2
parent 0a41f024
......@@ -60,10 +60,10 @@ public:
virtual ~OpenVolumeMeshEdge() {
}
VertexHandle from_vertex() const {
const VertexHandle& from_vertex() const {
return fromVertex_;
}
VertexHandle to_vertex() const {
const VertexHandle& to_vertex() const {
return toVertex_;
}
......
......@@ -72,13 +72,13 @@ public:
inline bool operator<(int _idx) const { return idx_ < _idx; }
inline int idx() const { return idx_; }
inline const int& idx() const { return idx_; }
void idx(const int& _idx) { idx_ = _idx; }
void reset() { idx_ = -1; }
operator int() const { return idx_; }
inline operator int() const { return idx_; }
private:
int idx_;
......
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