WRApplication
External kratos "application" for multiscale time integration.
ContainerProxy< TEntityProxy > Class Template Reference

A view with a uniform interface for ModelPart::NodesContainerType, ModelPart::ElementsContainerType, or ModelPart::ConditionsContainerType. More...

Collaboration diagram for ContainerProxy< TEntityProxy >:

Public Types

using iterator = Iterator< IsMutable >
 
using const_iterator = Iterator< false >
 
using size_type = std::size_t
 
using value_type = typename iterator::value_type
 

Public Member Functions

 ContainerProxy () noexcept=default
 
 ContainerProxy (WrappedIterator Begin, WrappedIterator End) noexcept
 
const_iterator::value_type operator[] (size_type Index) const noexcept
 
iterator::value_type operator[] (size_type Index) noexcept
 
const_iterator::value_type at (size_type Index) const noexcept
 
iterator::value_type at (size_type Index) noexcept
 
size_type size () const noexcept
 
bool empty () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator begin () const noexcept
 
iterator begin () noexcept
 
const_iterator cend () const noexcept
 
const_iterator end () const noexcept
 
iterator end () noexcept
 

Detailed Description

template<class TEntityProxy>
class Kratos::WRApp::ContainerProxy< TEntityProxy >

A view with a uniform interface for ModelPart::NodesContainerType, ModelPart::ElementsContainerType, or ModelPart::ConditionsContainerType.

ContainerProxy provides uniform access to the Variable s stored in the entities of a container. Entities in the container are wrapped by EntityProxy. In this context, an entity can refer to:

  • a Node with historical variables (Globals::DataLocation::NodeHistorical)
  • a Node with non-historical variables (Globals::DataLocation::NodeNonHistorical)
  • an Element (Globals::DataLocation::Element)
  • a Condition (Globals::DataLocation::Condition)

Member Typedef Documentation

◆ const_iterator

using const_iterator = Iterator<false>

◆ iterator

using iterator = Iterator<IsMutable>

◆ size_type

using size_type = std::size_t

◆ value_type

using value_type = typename iterator::value_type

Constructor & Destructor Documentation

◆ ContainerProxy() [1/2]

ContainerProxy ( )
defaultnoexcept

◆ ContainerProxy() [2/2]

ContainerProxy ( WrappedIterator  Begin,
WrappedIterator  End 
)
inlinenoexcept

Member Function Documentation

◆ at() [1/2]

const_iterator::value_type at ( size_type  Index) const
inlinenoexcept

◆ at() [2/2]

iterator::value_type at ( size_type  Index)
inlinenoexcept

◆ begin() [1/2]

const_iterator begin ( ) const
inlinenoexcept

◆ begin() [2/2]

iterator begin ( )
inlinenoexcept

◆ cbegin()

const_iterator cbegin ( ) const
inlinenoexcept

◆ cend()

const_iterator cend ( ) const
inlinenoexcept

◆ empty()

bool empty ( ) const
inlinenoexcept

◆ end() [1/2]

const_iterator end ( ) const
inlinenoexcept

◆ end() [2/2]

iterator end ( )
inlinenoexcept

◆ operator[]() [1/2]

const_iterator::value_type operator[] ( size_type  Index) const
inlinenoexcept

◆ operator[]() [2/2]

iterator::value_type operator[] ( size_type  Index)
inlinenoexcept

◆ size()

size_type size ( ) const
inlinenoexcept

The documentation for this class was generated from the following file: