FleCSI User API Version: 2.4.2
Loading...
Searching...
No Matches
particle_accessor< T, P, M > Struct Template Reference

Accessor for particle fields. More...

Public Member Functions

std::hive operations
size_type size () const noexcept
size_type capacity () const noexcept
bool empty () const noexcept
iterator begin () const noexcept
iterator end () const noexcept
iterator get_iterator_from_pointer (element_type *the_pointer) const noexcept
 Implements std::hive::get_iterator.

Detailed Description

template<class T, Privileges P, bool M>
struct flecsi::data::particle_accessor< T, P, M >

Accessor for particle fields.

This class is supported for GPU execution. Provides bidirectional iterators over the existing particles.

Template Parameters
Pif write-only, particles are not created or destroyed but they are reinitialized

Member Function Documentation

◆ size()

template<class T, Privileges P, bool M>
size_type size ( ) const
noexcept

◆ capacity()

template<class T, Privileges P, bool M>
size_type capacity ( ) const
noexcept

◆ empty()

template<class T, Privileges P, bool M>
bool empty ( ) const
nodiscardnoexcept

◆ begin()

template<class T, Privileges P, bool M>
iterator begin ( ) const
noexcept

◆ end()

template<class T, Privileges P, bool M>
iterator end ( ) const
noexcept

◆ get_iterator_from_pointer()

template<class T, Privileges P, bool M>
iterator get_iterator_from_pointer ( element_type * the_pointer) const
noexcept

Implements std::hive::get_iterator.

T must be standard-layout.