Partio
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
Partio::ParticleAccessor Struct Reference

#include <PartioIterator.h>

Public Member Functions

 ParticleAccessor (const ParticleAttribute &attr)
 
template<class TDATA , class TITERATOR >
TDATA * raw (const TITERATOR &it)
 
template<class TDATA , class TITERATOR >
const TDATA * raw (const TITERATOR &it) const
 
template<class TDATA , class TITERATOR >
TDATA & data (const TITERATOR &it)
 
template<class TDATA , class TITERATOR >
const TDATA & data (const TITERATOR &it) const
 

Public Attributes

int stride
 
char * basePointer
 
int attributeIndex
 
int count
 

Private Attributes

ParticleAttributeType type
 
ParticleAccessornext
 

Friends

class ParticleIterator< true >
 
class ParticleIterator< false >
 

Constructor & Destructor Documentation

Partio::ParticleAccessor::ParticleAccessor ( const ParticleAttribute attr)
inline

Member Function Documentation

template<class TDATA , class TITERATOR >
TDATA& Partio::ParticleAccessor::data ( const TITERATOR &  it)
inline

References basePointer, and stride.

template<class TDATA , class TITERATOR >
const TDATA& Partio::ParticleAccessor::data ( const TITERATOR &  it) const
inline

References basePointer, and stride.

template<class TDATA , class TITERATOR >
TDATA* Partio::ParticleAccessor::raw ( const TITERATOR &  it)
inline

References basePointer, and stride.

template<class TDATA , class TITERATOR >
const TDATA* Partio::ParticleAccessor::raw ( const TITERATOR &  it) const
inline

References basePointer, and stride.

Friends And Related Function Documentation

friend class ParticleIterator< false >
friend
friend class ParticleIterator< true >
friend

Member Data Documentation

int Partio::ParticleAccessor::attributeIndex
char* Partio::ParticleAccessor::basePointer

Referenced by data(), and raw().

int Partio::ParticleAccessor::count
ParticleAccessor* Partio::ParticleAccessor::next
private
int Partio::ParticleAccessor::stride

Referenced by data(), and raw().

ParticleAttributeType Partio::ParticleAccessor::type
private

The documentation for this struct was generated from the following file: