Partio
|
#include <PartioIterator.h>
Public Member Functions | |
ParticleIterator () | |
Construct an invalid iterator. More... | |
ParticleIterator (const ParticleIterator &other) | |
Copy constructor. NOTE: Invalidates any accessors that have been registered with it. More... | |
ParticleIterator (PROVIDER *particles, size_t index, size_t indexEnd) | |
bool | valid () const |
Whether the iterator is valid. More... | |
ParticleIterator | operator++ (int) |
Increment the iterator (postfix). Prefer the prefix form below to this one. More... | |
ParticleIterator & | operator++ () |
Increment the iterator (prefix). More... | |
bool | operator== (const ParticleIterator &other) |
Iterator comparison equals. More... | |
bool | operator!= (const ParticleIterator &other) |
Iterator comparison not-equals. More... | |
void | addAccessor (ParticleAccessor &newAccessor) |
Public Attributes | |
size_t | index |
Start of non-interleaved index of contiguous block. More... | |
Private Types | |
typedef PROVIDER< constant >::TYPE | PROVIDER |
Private Attributes | |
PROVIDER * | particles |
Delegate, null if the iterator is false. More... | |
size_t | indexEnd |
End of non-interleaved index of contiguous block. More... | |
ParticleAccessor * | accessors |
This is used for both non-interleaved and interleaved particle attributes. More... | |
|
private |
|
inline |
Construct an invalid iterator.
|
inline |
Copy constructor. NOTE: Invalidates any accessors that have been registered with it.
|
inline |
Construct an iterator with iteration parameters. This is typically only called by implementations of Particle (not by users). For users, use begin() and end() on the particle type
|
inline |
|
inline |
Iterator comparison not-equals.
References Partio::ParticleIterator< constant >::particles.
|
inline |
Increment the iterator (prefix).
References Partio::ParticleIterator< constant >::index, Partio::ParticleIterator< constant >::indexEnd, Partio::ParticleIterator< constant >::particles, and Partio::Provider::setupIteratorNextBlock().
|
inline |
Increment the iterator (postfix). Prefer the prefix form below to this one.
References Partio::ParticleIterator< constant >::index.
|
inline |
Iterator comparison equals.
References Partio::ParticleIterator< constant >::index, and Partio::ParticleIterator< constant >::particles.
|
inline |
Whether the iterator is valid.
References Partio::ParticleIterator< constant >::particles.
|
private |
This is used for both non-interleaved and interleaved particle attributes.
Referenced by Partio::ParticleIterator< constant >::addAccessor().
size_t Partio::ParticleIterator< constant >::index |
Start of non-interleaved index of contiguous block.
Referenced by Partio::ParticleIterator< constant >::operator++(), and Partio::ParticleIterator< constant >::operator==().
|
private |
End of non-interleaved index of contiguous block.
Referenced by Partio::ParticleIterator< constant >::operator++().
|
private |
Delegate, null if the iterator is false.
Referenced by Partio::ParticleIterator< constant >::addAccessor(), Partio::ParticleIterator< constant >::operator!=(), Partio::ParticleIterator< constant >::operator++(), Partio::ParticleIterator< constant >::operator==(), and Partio::ParticleIterator< constant >::valid().