PropertyManager: Added PropertyManager::propertyExists() method.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@807 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Hans-Christian Ebke
2013-02-20 12:19:26 +00:00
parent 152719a838
commit 7d9d01a7e2

View File

@@ -115,6 +115,11 @@ class PropertyManager {
std::swap(retain_, rhs.retain_);
}
static bool propertyExists(MeshT &mesh, const char *propname) {
PROPTYPE dummy;
return mesh.get_property_handle(dummy, propname);
}
#if __cplusplus > 199711L or __GXX_EXPERIMENTAL_CXX0X__
/**
* Move constructor. Transfers ownership (delete responsibility).