43 std::size_t n_components = 1);
48 std::size_t n_property_values,
49 std::size_t n_components);
69 std::string
const& name,
70 std::size_t n_prop_groups,
71 std::vector<std::size_t>
const& item2group_mapping,
73 std::size_t n_components = 1);
86 int const number_of_components)
const;
101 template <
typename T>
104 int const n_components)
const;
109 template <
typename T>
112 int const n_components);
125 template <
typename T>
138 std::vector<std::size_t>
const& exclude_elem_ids,
139 std::vector<std::size_t>
const& exclude_node_ids)
const;
145 std::vector<MeshItemType>
const& exclude_mesh_item_types)
const;
156 std::map<std::string, PropertyVectorBase*>::const_iterator
begin()
const;
157 std::map<std::string, PropertyVectorBase*>::const_iterator
end()
const;
158 std::map<std::string, PropertyVectorBase*>::iterator
begin();
159 std::map<std::string, PropertyVectorBase*>::iterator
end();
160 std::map<std::string, PropertyVectorBase*>::size_type
size()
const;
162 std::map<std::string, PropertyVectorBase*>::size_type
size(
176template <
typename Function>
185 switch (mesh_item_type)
188 return "bulk_node_ids";
191 return "bulk_element_ids";
194 return "bulk_edge_ids";
197 return "bulk_face_ids";
200 OGS_FATAL(
"MeshItemType::IntegrationPoint is not handled.");
205 "Unknown mesh item type '{}'. At the moment mapping names only "
206 "for mesh item types 'Node', 'Cell', 'Edge', and 'Face' are "
208 static_cast<int>(mesh_item_type));
216 switch (mesh_item_type)
220 return "global_node_ids";
224 return "global_element_ids";
227 OGS_FATAL(
"MeshItemType::Edge is not handled in globalIDString.");
229 OGS_FATAL(
"MeshItemType::Face is not handled in globalIDString.");
232 "MeshItemType::IntegrationPoint is not handled in "
Property manager on mesh items. Class Properties manages scalar, vector or matrix properties....
Properties & operator=(Properties &&properties)=default
std::vector< std::string > getPropertyVectorNames() const
std::map< std::string, PropertyVectorBase * > _properties
bool hasPropertyVector(std::string_view name) const
bool existsPropertyVector(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
PropertyVector< T > * createNewPropertyVector(std::string_view name, MeshItemType mesh_item_type, std::size_t n_components=1)
PropertyVector< T > const * getPropertyVector(std::string_view name) const
std::map< std::string, PropertyVectorBase * >::const_iterator end() const
Properties(Properties &&properties)=default
void removePropertyVector(std::string_view name)
Properties & operator=(Properties const &properties)
PropertyVector< T > const * getPropertyVector(std::string_view name, MeshItemType const item_type, int const n_components) const
constexpr std::string_view getBulkIDString(MeshItemType mesh_item_type)
void applyToPropertyVectors(Properties const &properties, Function f)
constexpr std::string_view globalIDString(MeshLib::MeshItemType const mesh_item_type)