Commit 1f0f036e authored by Nicolas Gallego-Ortiz's avatar Nicolas Gallego-Ortiz

accesors to internal typename from derived class

parent 7b461d62
......@@ -99,8 +99,10 @@ public:
public:
/// Default constructor
explicit PropertyT(const std::string& _name = "<unknown>")
: BaseProperty(_name)
explicit PropertyT(
const std::string& _name = "<unknown>",
const std::string& _internal_type_name = "<unknown>")
: BaseProperty(_name, _internal_type_name)
{}
/// Copy constructor
......@@ -173,17 +175,17 @@ public: // data access interface
return &data_[0];
}
/// Get reference to property vector (be careful, improper usage, e.g. resizing, may crash OpenMesh!!!)
vector_type& data_vector() {
return data_;
}
/// Const access to property vector
const vector_type& data_vector() const {
return data_;
}
/// Get reference to property vector (be careful, improper usage, e.g. resizing, may crash OpenMesh!!!)
vector_type& data_vector() {
return data_;
}
/// Const access to property vector
const vector_type& data_vector() const {
return data_;
}
/// Access the i'th element. No range check is performed!
reference operator[](int _idx)
{
......@@ -337,17 +339,17 @@ public:
public:
/// Get reference to property vector (be careful, improper usage, e.g. resizing, may crash OpenMesh!!!)
vector_type& data_vector() {
return data_;
}
/// Const access to property vector
const vector_type& data_vector() const {
return data_;
}
/// Get reference to property vector (be careful, improper usage, e.g. resizing, may crash OpenMesh!!!)
vector_type& data_vector() {
return data_;
}
/// Const access to property vector
const vector_type& data_vector() const {
return data_;
}
/// Access the i'th element. No range check is performed!
reference operator[](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