WRApplication
External kratos "application" for multiscale time integration.
ContainerProxy.hpp File Reference
Include dependency graph for ContainerProxy.hpp:

Go to the source code of this file.

Classes

class  ContainerProxy< TEntityProxy >
 A view with a uniform interface for ModelPart::NodesContainerType, ModelPart::ElementsContainerType, or ModelPart::ConditionsContainerType. More...
 

Namespaces

 Kratos
 
 Kratos::WRApp
 

Macros

#define WRAPP_DEFINE_CONTAINER_PROXY_FACTORY(TLocation)
 

Functions

template<>
auto MakeProxy< Globals::DataLocation::NodeHistorical, ModelPart > (const ModelPart &rModelPart)
 Convenience function for constructing immutable ContainerProxy instances. More...
 
template<>
auto MakeProxy< Globals::DataLocation::NodeHistorical, ModelPart > (ModelPart &rModelPart)
 Convenience function for constructing mutable ContainerProxy instances. More...
 
template<>
auto MakeProxy< Globals::DataLocation::NodeNonHistorical, ModelPart > (const ModelPart &rModelPart)
 Convenience function for constructing immutable ContainerProxy instances. More...
 
template<>
auto MakeProxy< Globals::DataLocation::NodeNonHistorical, ModelPart > (ModelPart &rModelPart)
 Convenience function for constructing mutable ContainerProxy instances. More...
 
template<>
auto MakeProxy< Globals::DataLocation::Element, ModelPart > (const ModelPart &rModelPart)
 Convenience function for constructing immutable ContainerProxy instances. More...
 
template<>
auto MakeProxy< Globals::DataLocation::Element, ModelPart > (ModelPart &rModelPart)
 Convenience function for constructing mutable ContainerProxy instances. More...
 
template<>
auto MakeProxy< Globals::DataLocation::Condition, ModelPart > (const ModelPart &rModelPart)
 Convenience function for constructing immutable ContainerProxy instances. More...
 
template<>
auto MakeProxy< Globals::DataLocation::Condition, ModelPart > (ModelPart &rModelPart)
 Convenience function for constructing mutable ContainerProxy instances. More...
 

Macro Definition Documentation

◆ WRAPP_DEFINE_CONTAINER_PROXY_FACTORY

#define WRAPP_DEFINE_CONTAINER_PROXY_FACTORY (   TLocation)
Value:
\
template <> \
inline auto MakeProxy<TLocation,ModelPart>(const ModelPart& rModelPart) \
{ \
const auto& r_container = ModelPartUtils::GetContainer<TLocation>(rModelPart); \
return ContainerProxy<EntityProxy<TLocation,false>>(r_container.begin(), \
r_container.end()); \
} \ \
template <> \
inline auto MakeProxy<TLocation,ModelPart>(ModelPart& rModelPart) \
{ \
auto& r_container = ModelPartUtils::GetContainer<TLocation>(rModelPart); \
return ContainerProxy<EntityProxy<TLocation,true>>(r_container.begin(), \
r_container.end()); \
}