FleCSI Core API Version: 2.3.2
 
Loading...
Searching...
No Matches
particle_accessor< class, Privileges, bool > Struct Template Reference

Accessor for particle fields. More...

Public Member Functions

size_type capacity () const
 Get the maximum number of particles.
 
bool empty () const
 Test whether any particles exist.
 
iterator get_iterator_from_pointer (element_type *the_pointer) const
 Get an iterator that refers to a particle.
 
size_type size () const
 Get the number of extant particles.
 

Detailed Description

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

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 , Privileges , bool >
size_type size ( ) const

Get the number of extant particles.

◆ capacity()

template<class , Privileges , bool >
size_type capacity ( ) const

Get the maximum number of particles.

◆ empty()

template<class , Privileges , bool >
bool empty ( ) const
nodiscard

Test whether any particles exist.

◆ get_iterator_from_pointer()

template<class , Privileges , bool >
iterator get_iterator_from_pointer ( element_type * the_pointer) const

Get an iterator that refers to a particle.

T must be standard-layout.