![]() |
KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Custom unordered map container to be used by the mapper. More...
#include <mapping_variables.h>
Public Member Functions | |
Life Cycle | |
| IndexMap () | |
| Default constructors. More... | |
| virtual | ~IndexMap () |
| Destructor. More... | |
Operations | |
| IndexType | GetId (IteratorType ThisIterator) |
| Returns the id corresponding a iterator. More... | |
| IndexType | GetOtherId (IteratorType ThisIterator) |
| Returns the new entity id corresponding a iterator. More... | |
| bool | Has (const IndexType IndexOrigin) override |
| It checks if an ID exists in the map. More... | |
| void | AddId (const IndexType IndexOrigin, const IndexType IndexNewEntity=0) override |
| It adds a new ID to the map. More... | |
| void | RemoveId (const IndexType IndexOrigin) override |
| It removes one particular pair from the map. More... | |
| IndexType | GetNewEntityId (const IndexType IndexOrigin) override |
| It returns the new created entity ID. More... | |
| void | SetNewEntityId (const IndexType IndexOrigin, const IndexType IndexNewEntity) override |
| It sets the new created entity ID. More... | |
| std::string | Info () const override |
| Turn back information as a string. More... | |
| void | save (Serializer &rSerializer) const override |
| void | load (Serializer &rSerializer) override |
Public Member Functions inherited from Kratos::IndexDatabase | |
| KRATOS_CLASS_POINTER_DEFINITION (IndexDatabase) | |
| IndexDatabase () | |
| Default constructors. More... | |
| virtual | ~IndexDatabase () |
| Destructor. More... | |
Type Definitions | |
Counted pointer of IndexMap | |
| typedef std::unordered_map< IndexType, IndexType > | BaseType |
| typedef iterator | IteratorType |
| KRATOS_CLASS_POINTER_DEFINITION (IndexMap) | |
Custom unordered map container to be used by the mapper.
Contains a map of IDs of paired conditions, and the new created condition
| typedef std::unordered_map<IndexType, IndexType> Kratos::IndexMap::BaseType |
| typedef iterator Kratos::IndexMap::IteratorType |
|
inline |
Default constructors.
|
inlinevirtual |
Destructor.
|
inlineoverridevirtual |
It adds a new ID to the map.
| IndexOrigin | The condition ID to remove |
| IndexNewEntity | The new created entity ID |
Reimplemented from Kratos::IndexDatabase.
|
inline |
Returns the id corresponding a iterator.
| ThisIterator | The iterator of the class |
It returns the new created entity ID.
| IndexOrigin | The condition ID to remove |
Reimplemented from Kratos::IndexDatabase.
|
inline |
Returns the new entity id corresponding a iterator.
| ThisIterator | The iterator of the class |
It checks if an ID exists in the map.
| IndexOrigin | The condition ID to remove |
Reimplemented from Kratos::IndexDatabase.
|
inlineoverridevirtual |
Turn back information as a string.
Reimplemented from Kratos::IndexDatabase.
| Kratos::IndexMap::KRATOS_CLASS_POINTER_DEFINITION | ( | IndexMap | ) |
|
inlineoverridevirtual |
Reimplemented from Kratos::IndexDatabase.
|
inlineoverridevirtual |
It removes one particular pair from the map.
| IndexOrigin | The condition ID to remove |
Reimplemented from Kratos::IndexDatabase.
|
inlineoverridevirtual |
Reimplemented from Kratos::IndexDatabase.
|
inlineoverridevirtual |
It sets the new created entity ID.
| IndexOrigin | The condition ID to remove |
| IndexNewEntity | The new created entity ID |
Reimplemented from Kratos::IndexDatabase.