Add test for properties_and_types()

This commit is contained in:
Simon Giraudot 2021-01-18 15:45:51 +01:00
parent d257d999fb
commit e962498b3a
1 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,11 @@ int main (int, char**)
point_set.add_property_map<int> ("label", 0);
point_set.add_property_map<double> ("intensity", 0.0);
auto pnt = point_set.properties_and_types();
std::cerr << "Properties = " << std::endl;
for (const auto& p : pnt)
std::cerr << " * " << p.first << " with type " << p.second.name() << std::endl;
test (point_set.base().n_properties() == 4, "point set should have 4 properties.");
Point p_before = *(point_set.points().begin());