Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::mesh::SharedScalarComponent< ScalarType > Class Template Reference

#include <SharedComponent.hpp>

Inheritance diagram for mundy::mesh::SharedScalarComponent< ScalarType >:
[legend]

Public Types

using our_t = SharedScalarComponent<ScalarType>
using base_t = SharedComponent<ScalarType>
using canonical_access = access::scalar<ScalarType>
using view_t = decltype(get_scalar_view<ScalarType>(std::declval<ScalarType*>()))
using shared_type

Public Member Functions

 SharedScalarComponent ()=default
 SharedScalarComponent (ScalarType shared_value)
template<typename HostViewType>
 SharedScalarComponent (HostViewType host_view)
 SharedScalarComponent (const SharedScalarComponent &)=default
 SharedScalarComponent (SharedScalarComponent &&)=default
SharedScalarComponentoperator= (const SharedScalarComponent &)=default
SharedScalarComponentoperator= (SharedScalarComponent &&)=default
decltype(auto) operator() (stk::mesh::Entity entity) const
shared_typeshared_value ()
const shared_typeshared_value () const
void sync_to_device ()
void sync_to_host ()
void modify_on_device ()
void modify_on_host ()
void clear_host_sync_state ()
void clear_device_sync_state ()
void set_declaration_metadata (std::string name, stk::mesh::EntityRank rank)
const std::string & name () const
stk::mesh::EntityRank entity_rank () const

Member Typedef Documentation

◆ our_t

template<typename ScalarType>
using mundy::mesh::SharedScalarComponent< ScalarType >::our_t = SharedScalarComponent<ScalarType>

◆ base_t

template<typename ScalarType>
using mundy::mesh::SharedScalarComponent< ScalarType >::base_t = SharedComponent<ScalarType>

◆ canonical_access

template<typename ScalarType>
using mundy::mesh::SharedScalarComponent< ScalarType >::canonical_access = access::scalar<ScalarType>

◆ view_t

template<typename ScalarType>
using mundy::mesh::SharedScalarComponent< ScalarType >::view_t = decltype(get_scalar_view<ScalarType>(std::declval<ScalarType*>()))

◆ shared_type

using mundy::mesh::SharedComponent< ScalarType >::shared_type
inherited

Constructor & Destructor Documentation

◆ SharedScalarComponent() [1/5]

template<typename ScalarType>
mundy::mesh::SharedScalarComponent< ScalarType >::SharedScalarComponent ( )
default

◆ SharedScalarComponent() [2/5]

template<typename ScalarType>
mundy::mesh::SharedScalarComponent< ScalarType >::SharedScalarComponent ( ScalarType shared_value)
inlineexplicit

◆ SharedScalarComponent() [3/5]

template<typename ScalarType>
template<typename HostViewType>
mundy::mesh::SharedScalarComponent< ScalarType >::SharedScalarComponent ( HostViewType host_view)
inlineexplicit

◆ SharedScalarComponent() [4/5]

template<typename ScalarType>
mundy::mesh::SharedScalarComponent< ScalarType >::SharedScalarComponent ( const SharedScalarComponent< ScalarType > & )
default

◆ SharedScalarComponent() [5/5]

template<typename ScalarType>
mundy::mesh::SharedScalarComponent< ScalarType >::SharedScalarComponent ( SharedScalarComponent< ScalarType > && )
default

Member Function Documentation

◆ operator=() [1/2]

template<typename ScalarType>
SharedScalarComponent & mundy::mesh::SharedScalarComponent< ScalarType >::operator= ( const SharedScalarComponent< ScalarType > & )
default

◆ operator=() [2/2]

template<typename ScalarType>
SharedScalarComponent & mundy::mesh::SharedScalarComponent< ScalarType >::operator= ( SharedScalarComponent< ScalarType > && )
default

◆ operator()()

template<typename ScalarType>
decltype(auto) mundy::mesh::SharedScalarComponent< ScalarType >::operator() ( stk::mesh::Entity entity) const
inline

◆ shared_value() [1/2]

shared_type & mundy::mesh::SharedComponent< ScalarType >::shared_value ( )
inlineinherited

◆ shared_value() [2/2]

const shared_type & mundy::mesh::SharedComponent< ScalarType >::shared_value ( ) const
inlineinherited

◆ sync_to_device()

void mundy::mesh::SharedComponent< ScalarType >::sync_to_device ( )
inlineinherited

◆ sync_to_host()

void mundy::mesh::SharedComponent< ScalarType >::sync_to_host ( )
inlineinherited

◆ modify_on_device()

void mundy::mesh::SharedComponent< ScalarType >::modify_on_device ( )
inlineinherited

◆ modify_on_host()

void mundy::mesh::SharedComponent< ScalarType >::modify_on_host ( )
inlineinherited

◆ clear_host_sync_state()

void mundy::mesh::SharedComponent< ScalarType >::clear_host_sync_state ( )
inlineinherited

◆ clear_device_sync_state()

void mundy::mesh::SharedComponent< ScalarType >::clear_device_sync_state ( )
inlineinherited

◆ set_declaration_metadata()

void mundy::mesh::SharedComponent< ScalarType >::set_declaration_metadata ( std::string name,
stk::mesh::EntityRank rank )
inlineinherited

◆ name()

const std::string & mundy::mesh::SharedComponent< ScalarType >::name ( ) const
inlineinherited

◆ entity_rank()

stk::mesh::EntityRank mundy::mesh::SharedComponent< ScalarType >::entity_rank ( ) const
inlineinherited