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.
|
#include <geometry_container.h>
Public Member Functions | |
Life Cycle | |
GeometryContainer () | |
Default Constructor. More... | |
GeometryContainer (GeometryContainer const &rOther) | |
Copy Constructor. More... | |
GeometryContainer (GeometriesMapType &NewGeometries) | |
Components Constructor. More... | |
~GeometryContainer ()=default | |
Destructor. More... | |
Operations | |
GeometryContainer | Clone () |
void | Clear () |
Geometries | |
SizeType | NumberOfGeometries () const |
Return number of geometries stored inside this geometry container. More... | |
Add Functions | |
GeometryIterator | AddGeometry (GeometryPointerType pNewGeometry) |
Adds a geometry to the geometry container. More... | |
Get Functions | |
GeometryPointerType | pGetGeometry (IndexType GeometryId) |
Returns the Geometry::Pointer corresponding to its Id. More... | |
const GeometryPointerType | pGetGeometry (IndexType GeometryId) const |
Returns the const Geometry::Pointer corresponding to its Id. More... | |
GeometryPointerType | pGetGeometry (std::string GeometryName) |
Returns the Geometry::Pointer corresponding to its name. More... | |
const GeometryPointerType | pGetGeometry (std::string GeometryName) const |
Returns the Geometry::Pointer corresponding to its name. More... | |
TGeometryType & | GetGeometry (IndexType GeometryId) |
Returns a reference geometry corresponding to the id. More... | |
const TGeometryType & | GetGeometry (IndexType GeometryId) const |
Returns a const reference geometry corresponding to the id. More... | |
TGeometryType & | GetGeometry (std::string GeometryName) |
Returns a reference geometry corresponding to the name. More... | |
const TGeometryType & | GetGeometry (std::string GeometryName) const |
Returns a const reference geometry corresponding to the name. More... | |
Remove Functions | |
void | RemoveGeometry (IndexType GeometryId) |
Remove the geometry with given Id from geometry container. More... | |
void | RemoveGeometry (std::string GeometryName) |
Remove the geometry with given name from geometry container. More... | |
Search Functions | |
bool | HasGeometry (IndexType GeometryId) const |
bool | HasGeometry (std::string GeometryName) const |
Iterators | |
GeometryIterator | GeometriesBegin () |
GeometryConstantIterator | GeometriesBegin () const |
GeometryIterator | GeometriesEnd () |
GeometryConstantIterator | GeometriesEnd () const |
Container Functions | |
GeometriesMapType & | Geometries () |
const GeometriesMapType & | Geometries () const |
Input and output | |
std::string | Info () const |
Return information. More... | |
void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
virtual void | PrintInfo (std::ostream &rOStream, std::string const &PrefixString) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream, std::string const &PrefixString) const |
Print object's data. More... | |
Type Definitions | |
typedef std::size_t | IndexType |
typedef std::size_t | SizeType |
typedef TGeometryType::Pointer | GeometryPointerType |
typedef PointerHashMapSet< TGeometryType, std::hash< std::size_t >, GetGeometryId, GeometryPointerType > | GeometriesMapType |
Geometry Hash Map Container. More... | |
typedef GeometriesMapType::iterator | GeometryIterator |
Geometry Iterator. More... | |
typedef GeometriesMapType::const_iterator | GeometryConstantIterator |
Const Geometry Iterator. More... | |
KRATOS_CLASS_POINTER_DEFINITION (GeometryContainer) | |
Pointer definition of GeometryContainer. More... | |
Serialization | |
class | Serializer |
typedef PointerHashMapSet< TGeometryType, std::hash<std::size_t>, GetGeometryId, GeometryPointerType > Kratos::GeometryContainer< TGeometryType >::GeometriesMapType |
Geometry Hash Map Container.
typedef GeometriesMapType::const_iterator Kratos::GeometryContainer< TGeometryType >::GeometryConstantIterator |
Const Geometry Iterator.
typedef GeometriesMapType::iterator Kratos::GeometryContainer< TGeometryType >::GeometryIterator |
Geometry Iterator.
typedef TGeometryType::Pointer Kratos::GeometryContainer< TGeometryType >::GeometryPointerType |
typedef std::size_t Kratos::GeometryContainer< TGeometryType >::IndexType |
typedef std::size_t Kratos::GeometryContainer< TGeometryType >::SizeType |
|
inline |
Default Constructor.
|
inline |
Copy Constructor.
|
inline |
Components Constructor.
|
default |
Destructor.
|
inline |
Adds a geometry to the geometry container.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns a reference geometry corresponding to the id.
|
inline |
Returns a const reference geometry corresponding to the id.
|
inline |
Returns a reference geometry corresponding to the name.
|
inline |
Returns a const reference geometry corresponding to the name.
|
inline |
|
inline |
|
inline |
Return information.
Kratos::GeometryContainer< TGeometryType >::KRATOS_CLASS_POINTER_DEFINITION | ( | GeometryContainer< TGeometryType > | ) |
Pointer definition of GeometryContainer.
|
inline |
Return number of geometries stored inside this geometry container.
|
inline |
Returns the Geometry::Pointer corresponding to its Id.
|
inline |
Returns the const Geometry::Pointer corresponding to its Id.
|
inline |
Returns the Geometry::Pointer corresponding to its name.
|
inline |
Returns the Geometry::Pointer corresponding to its name.
|
inline |
Print object's data.
|
inlinevirtual |
Print object's data.
|
inline |
Print information about this object.
|
inlinevirtual |
Print information about this object.
|
inline |
Remove the geometry with given Id from geometry container.
|
inline |
Remove the geometry with given name from geometry container.
|
friend |