13 WARN(
"A property of the name '{:s}' does not exist.", name);
27 std::vector<std::string> names;
29 std::back_inserter(names),
30 [](
auto const& pair) { return std::string(pair.first); });
37 std::vector<std::string> names;
40 if (p.second->getMeshItemType() == t)
42 names.push_back(std::string(p.first));
49 std::vector<std::size_t>
const& exclude_elem_ids,
50 std::vector<std::size_t>
const& exclude_node_ids)
const
58 name_vector_pair.first,
59 name_vector_pair.second->clone(exclude_elem_ids)));
61 else if (name_vector_pair.second->getMeshItemType() ==
65 name_vector_pair.first,
66 name_vector_pair.second->clone(exclude_node_ids)));
73 std::vector<MeshItemType>
const& exclude_mesh_item_types)
const
78 if (std::find(exclude_mesh_item_types.begin(),
79 exclude_mesh_item_types.end(),
80 name_vector_pair.second->getMeshItemType()) !=
81 exclude_mesh_item_types.end())
86 std::vector<std::size_t>
const exclude_positions{};
88 std::make_pair(name_vector_pair.first,
89 name_vector_pair.second->clone(exclude_positions)));
91 return new_properties;
100 name_vector_pair.second = t;
106 if (&properties ==
this)
112 std::vector<std::size_t> exclude_positions;
116 name_vector_pair.second->clone(exclude_positions));
117 name_vector_pair.second = t;
127 delete name_vector_pair.second;
163 {
return p.second->getMeshItemType() == mesh_item_type; });
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
std::vector< std::string > getPropertyVectorNames() const
std::map< std::string, PropertyVectorBase * > _properties
bool hasPropertyVector(std::string_view name) const
std::map< std::string, PropertyVectorBase * >::size_type size() const
Properties excludeCopyProperties(std::vector< std::size_t > const &exclude_elem_ids, std::vector< std::size_t > const &exclude_node_ids) const
std::map< std::string, PropertyVectorBase * >::const_iterator begin() const
std::map< std::string, PropertyVectorBase * >::const_iterator end() const
void removePropertyVector(std::string_view name)
Properties & operator=(Properties const &properties)