43 std::size_t n_components = 1);
48 std::size_t n_property_values,
49 std::size_t n_components);
62 int const number_of_components)
const;
80 int const n_components)
const;
88 int const n_components);
101 template <
typename T>
114 std::vector<std::size_t>
const& exclude_elem_ids,
115 std::vector<std::size_t>
const& exclude_node_ids)
const;
121 std::vector<MeshItemType>
const& exclude_mesh_item_types)
const;
132 std::map<std::string, PropertyVectorBase*>::const_iterator
begin()
const;
133 std::map<std::string, PropertyVectorBase*>::const_iterator
end()
const;
134 std::map<std::string, PropertyVectorBase*>::iterator
begin();
135 std::map<std::string, PropertyVectorBase*>::iterator
end();
136 std::map<std::string, PropertyVectorBase*>::size_type
size()
const;
138 std::map<std::string, PropertyVectorBase*>::size_type
size(
152template <
typename Function>
161 switch (mesh_item_type)
164 return "bulk_node_ids";
167 return "bulk_element_ids";
170 return "bulk_edge_ids";
173 return "bulk_face_ids";
176 OGS_FATAL(
"MeshItemType::IntegrationPoint is not handled.");
181 "Unknown mesh item type '{}'. At the moment mapping names only "
182 "for mesh item types 'Node', 'Cell', 'Edge', and 'Face' are "
184 static_cast<int>(mesh_item_type));
192 switch (mesh_item_type)
196 return "global_node_ids";
200 return "global_element_ids";
203 OGS_FATAL(
"MeshItemType::Edge is not handled in globalIDString.");
205 OGS_FATAL(
"MeshItemType::Face is not handled in globalIDString.");
208 "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)