51 std::size_t n_components = 1);
56 std::size_t n_property_values,
57 std::size_t n_components);
77 std::string
const& name,
78 std::size_t n_prop_groups,
79 std::vector<std::size_t>
const& item2group_mapping,
81 std::size_t n_components = 1);
94 int const number_of_components)
const;
103 template <
typename T>
109 template <
typename T>
112 int const n_components)
const;
117 template <
typename T>
120 int const n_components);
133 template <
typename T>
146 std::vector<std::size_t>
const& exclude_elem_ids,
147 std::vector<std::size_t>
const& exclude_node_ids)
const;
153 std::vector<MeshItemType>
const& exclude_mesh_item_types)
const;
164 std::map<std::string, PropertyVectorBase*>::const_iterator
begin()
const;
165 std::map<std::string, PropertyVectorBase*>::const_iterator
end()
const;
166 std::map<std::string, PropertyVectorBase*>::iterator
begin();
167 std::map<std::string, PropertyVectorBase*>::iterator
end();
168 std::map<std::string, PropertyVectorBase*>::size_type
size()
const;
170 std::map<std::string, PropertyVectorBase*>::size_type
size(
184template <
typename Function>
193 switch (mesh_item_type)
196 return "bulk_node_ids";
199 return "bulk_element_ids";
202 return "bulk_edge_ids";
205 return "bulk_face_ids";
208 OGS_FATAL(
"MeshItemType::IntegrationPoint is not handled.");
213 "Unknown mesh item type {:s}. At the moment mapping names only "
214 "for mesh item types 'Node', 'Cell', 'Edge', and 'Face' are "
Implemenatiom of the template part of the class Properties.
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 > * createNewPropertyVector(std::string const &name, std::size_t n_prop_groups, std::vector< std::size_t > const &item2group_mapping, MeshItemType mesh_item_type, std::size_t n_components=1)
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)
static constexpr char const * toString(const MeshItemType t)
Returns a char array for a specific MeshItemType.