FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
particle_accessor< T, P, M > 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 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

Get the number of extant particles.

◆ capacity()

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

Get the maximum number of particles.

◆ empty()

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

Test whether any particles exist.

◆ get_iterator_from_pointer()

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

Get an iterator that refers to a particle.

T must be standard-layout.