![]() |
MFEM v4.8.0
Finite element discretization library
|
#include <attribute_sets.hpp>
Public Member Functions | |
| AttributeSets (const Array< int > &attr) | |
| void | Copy (AttributeSets ©) const |
| Create a copy of the internal data to the provided copy. | |
| bool | SetsExist () const |
| Return true if any named sets are currently defined. | |
| std::set< std::string > | GetAttributeSetNames () const |
| Return all attribute set names as an STL set. | |
| bool | AttributeSetExists (const std::string &name) const |
| Return true is the named attribute set is present. | |
| Array< int > & | CreateAttributeSet (const std::string &set_name) |
| Create an empty named attribute set. | |
| void | DeleteAttributeSet (const std::string &set_name) |
| Delete a named attribute set. | |
| void | SetAttributeSet (const std::string &set_name, const Array< int > &attr) |
| Create a new attribute set. | |
| void | AddToAttributeSet (const std::string &set_name, int attr) |
| Add a single entry to an existing attribute set. | |
| void | AddToAttributeSet (const std::string &set_name, const Array< int > &attr) |
| Add an array of entries to an existing attribute set. | |
| void | RemoveFromAttributeSet (const std::string &set_name, int attr) |
| Remove a single entry from an existing attribute set. | |
| void | Print (std::ostream &out=mfem::out, int width=-1) const |
| Print the contents of the container to an output stream. | |
| Array< int > & | GetAttributeSet (const std::string &set_name) |
| Access a named attribute set. | |
| const Array< int > & | GetAttributeSet (const std::string &set_name) const |
| Access a constant reference to a named attribute set. | |
| Array< int > | GetAttributeSetMarker (const std::string &set_name) const |
| Return a marker array corresponding to a named attribute set. | |
Static Public Member Functions | |
| static Array< int > | AttrToMarker (int max_attr, const Array< int > &attrs) |
| Prepares a marker array corresponding to an array of element attributes. | |
Public Attributes | |
| ArraysByName< int > | attr_sets |
| Named sets of attributes. | |
Definition at line 26 of file attribute_sets.hpp.
| mfem::AttributeSets::AttributeSets | ( | const Array< int > & | attr | ) |
Definition at line 17 of file attribute_sets.cpp.
| void mfem::AttributeSets::AddToAttributeSet | ( | const std::string & | set_name, |
| const Array< int > & | attr ) |
Add an array of entries to an existing attribute set.
| [in] | set_name | The name of the set being augmented |
| [in] | attr | Array of attribute numbers to be inserted in the set |
AttributeSetExists() may be used to verify existence of a named set. Definition at line 70 of file attribute_sets.cpp.
| void mfem::AttributeSets::AddToAttributeSet | ( | const std::string & | set_name, |
| int | attr ) |
Add a single entry to an existing attribute set.
| [in] | set_name | The name of the set being augmented |
| [in] | attr | A single attribute number to be inserted in the set |
AttributeSetExists() may be used to verify existence of a named set. Definition at line 63 of file attribute_sets.cpp.
| bool mfem::AttributeSets::AttributeSetExists | ( | const std::string & | name | ) | const |
Return true is the named attribute set is present.
Definition at line 36 of file attribute_sets.cpp.
Prepares a marker array corresponding to an array of element attributes.
| [in] | max_attr | Number of entries to create in the marker array |
| [in] | attrs | An array of attribute numbers which should be activated |
The returned marker array will be of size max_attr and it will contain only zeroes and ones. Ones indicate which attribute numbers are present in the attrs array.
Definition at line 114 of file attribute_sets.cpp.
| void mfem::AttributeSets::Copy | ( | AttributeSets & | copy | ) | const |
Create a copy of the internal data to the provided copy.
Definition at line 21 of file attribute_sets.cpp.
| Array< int > & mfem::AttributeSets::CreateAttributeSet | ( | const std::string & | set_name | ) |
Create an empty named attribute set.
Definition at line 41 of file attribute_sets.cpp.
| void mfem::AttributeSets::DeleteAttributeSet | ( | const std::string & | set_name | ) |
Delete a named attribute set.
Definition at line 46 of file attribute_sets.cpp.
| Array< int > & mfem::AttributeSets::GetAttributeSet | ( | const std::string & | set_name | ) |
Access a named attribute set.
| [in] | set_name | The name of the set being accessed |
AttributeSetExists() may be used to verify existence of a named set.Definition at line 97 of file attribute_sets.cpp.
| const Array< int > & mfem::AttributeSets::GetAttributeSet | ( | const std::string & | set_name | ) | const |
Access a constant reference to a named attribute set.
| [in] | set_name | The name of the set being accessed |
AttributeSetExists() may be used to verify existence of a named set.Definition at line 103 of file attribute_sets.cpp.
| Array< int > mfem::AttributeSets::GetAttributeSetMarker | ( | const std::string & | set_name | ) | const |
Return a marker array corresponding to a named attribute set.
| [in] | set_name | The name of the set being accessed |
AttributeSetExists() may be used to verify existence of a named set. Definition at line 109 of file attribute_sets.cpp.
| std::set< std::string > mfem::AttributeSets::GetAttributeSetNames | ( | ) | const |
Return all attribute set names as an STL set.
Definition at line 31 of file attribute_sets.cpp.
| void mfem::AttributeSets::Print | ( | std::ostream & | out = mfem::out, |
| int | width = -1 ) const |
Print the contents of the container to an output stream.
Definition at line 92 of file attribute_sets.cpp.
| void mfem::AttributeSets::RemoveFromAttributeSet | ( | const std::string & | set_name, |
| int | attr ) |
Remove a single entry from an existing attribute set.
| [in] | set_name | The name of the set being modified |
| [in] | attr | A single attribute number to be removed from the set |
AttributeSetExists() may be used to verify existence of a named set. Definition at line 78 of file attribute_sets.cpp.
| void mfem::AttributeSets::SetAttributeSet | ( | const std::string & | set_name, |
| const Array< int > & | attr ) |
Create a new attribute set.
| [in] | set_name | The name of the new set |
| [in] | attr | An array of attribute numbers making up the new set |
Definition at line 51 of file attribute_sets.cpp.
| bool mfem::AttributeSets::SetsExist | ( | ) | const |
Return true if any named sets are currently defined.
Definition at line 26 of file attribute_sets.cpp.
| ArraysByName<int> mfem::AttributeSets::attr_sets |
Named sets of attributes.
Definition at line 35 of file attribute_sets.hpp.