Mutator for particle fields. More...
Public Member Functions | |
void | clear () const |
Remove all particles. | |
template<class... AA> | |
iterator | emplace (AA &&... aa) const |
Create an element, in constant time. | |
iterator | erase (const iterator &it) const |
Remove an element, in constant time. | |
iterator | insert (const value_type &v) const |
Add a particle. | |
iterator | insert (value_type &&v) const |
Add a particle by moving. | |
Public Member Functions inherited from particle_accessor< T, P, true > | |
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. | |
Mutator for particle fields.
This class is supported for GPU execution; however, insertions and deletions are not thread-safe. Iterators are invalidated only if their particle is removed.
P | if write-only, all particles are discarded |
void clear | ( | ) | const |
Remove all particles.
iterator insert | ( | const value_type & | v | ) | const |
Add a particle.
iterator insert | ( | value_type && | v | ) | const |
Add a particle by moving.
iterator emplace | ( | AA &&... | aa | ) | const |
Create an element, in constant time.
It is unspecified where it appears in the sequence.
iterator erase | ( | const iterator & | it | ) | const |
Remove an element, in constant time.