Commit dece923a authored by Jan Möbius's avatar Jan Möbius

Converted n_primitives() functions to size_t

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@838 fdac6126-5c0c-442c-9429-916003d36597
parent 20b17c45
......@@ -316,10 +316,10 @@ public:
void clean();
// --- number of items ---
unsigned int n_vertices() const { return vertices_.size(); }
unsigned int n_halfedges() const { return 2*edges_.size(); }
unsigned int n_edges() const { return edges_.size(); }
unsigned int n_faces() const { return faces_.size(); }
size_t n_vertices() const { return vertices_.size(); }
size_t n_halfedges() const { return 2*edges_.size(); }
size_t n_edges() const { return edges_.size(); }
size_t n_faces() const { return faces_.size(); }
bool vertices_empty() const { return vertices_.empty(); }
bool halfedges_empty() const { return edges_.empty(); }
......
......@@ -630,10 +630,10 @@ protected: // low-level access non-public
public: //----------------------------------------------------- element numbers
virtual uint n_vertices() const { return 0; }
virtual uint n_halfedges() const { return 0; }
virtual uint n_edges() const { return 0; }
virtual uint n_faces() const { return 0; }
virtual size_t n_vertices() const { return 0; }
virtual size_t n_halfedges() const { return 0; }
virtual size_t n_edges() const { return 0; }
virtual size_t n_faces() const { return 0; }
protected: //------------------------------------------- synchronize properties
......
......@@ -77,7 +77,7 @@ template <class Mesh> class ConstFaceIterT;
template <class Mesh> class FaceIterT;
template <class Mesh, class ValueHandle, class MemberOwner, bool (MemberOwner::*PrimitiveStatusMember)() const, uint (MemberOwner::*PrimitiveCountMember)() const>
template <class Mesh, class ValueHandle, class MemberOwner, bool (MemberOwner::*PrimitiveStatusMember)() const, size_t (MemberOwner::*PrimitiveCountMember)() const>
class GenericIteratorT {
public:
//--- Typedefs ---
......
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