12#ifndef MFEM_ATTRIBUTE_SETS
13#define MFEM_ATTRIBUTE_SETS
31 const int def_width = 10;
void SetAttributeSet(const std::string &set_name, const Array< int > &attr)
Create a new attribute set.
Array< int > GetAttributeSetMarker(const std::string &set_name)
Return a marker array corresponding to a named attribute set.
bool SetsExist() const
Return true if any named sets are currently defined.
bool AttributeSetExists(const std::string &name) const
Return true is the named attribute set is present.
void RemoveFromAttributeSet(const std::string &set_name, int attr)
Remove a single entry from an existing attribute set.
Array< int > & GetAttributeSet(const std::string &set_name)
Access a named attribute set.
static Array< int > AttrToMarker(int max_attr, const Array< int > &attrs)
Prepares a marker array corresponding to an array of element attributes.
void AddToAttributeSet(const std::string &set_name, int attr)
Add a single entry to an existing attribute set.
ArraysByName< int > attr_sets
Named sets of attributes.
Array< int > & CreateAttributeSet(const std::string &set_name)
Create an empty named attribute set.
std::set< std::string > GetAttributeSetNames() const
Return all attribute set names as an STL set.
AttributeSets(const Array< int > &attr)
void Print(std::ostream &out=mfem::out, int width=-1) const
Print the contents of the container to an output stream.
void DeleteAttributeSet(const std::string &set_name)
Delete a named attribute set.
void Copy(AttributeSets ©) const
Create a copy of the internal data to the provided copy.
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...