Partio
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Partio::PartioSe Class Reference

NOTE: This class is experimental and may be deleted/modified in future versions. More...

#include <PartioSe.h>

Inheritance diagram for Partio::PartioSe:

Public Types

typedef SeExpression::LocalVarTable::const_iterator LocalVarTableIterator
 

Public Member Functions

 PartioSe (Partio::ParticlesDataMutable *parts, const char *expr)
 
 PartioSe (Partio::ParticlesDataMutable *partsPairing, Partio::ParticlesDataMutable *parts, const char *expr)
 
void addSet (const char *prefix, Partio::ParticlesDataMutable *parts, int &setIndex)
 
void addExport (const std::string &name, LocalVarTableIterator it, Partio::ParticlesDataMutable *parts, int &setIndex)
 
virtual ~PartioSe ()
 
bool runAll ()
 
bool runRandom ()
 
void run (int i)
 
bool runRange (int istart, int iend)
 
void setTime (float val)
 
SeExprVarRef * resolveVar (const std::string &s) const
 

Private Types

typedef std::map< std::string, AttribVar< int > * > IntVarMap
 
typedef std::map< std::string, AttribVar< float > * > FloatVarMap
 
typedef std::vector< VarToPartio< int > * > IntVarToPartio
 
typedef std::vector< VarToPartio< float > * > FloatVarToPartio
 

Private Member Functions

 PartioSe (const PartioSe &)
 
PartioSeoperator= (const PartioSe &)
 

Private Attributes

bool isPaired
 
int currentIndex
 
Partio::ParticleAttribute pairH1
 
Partio::ParticleAttribute pairH2
 
int pairIndex1
 
int pairIndex2
 
Partio::ParticlesDataMutableparts
 
Partio::ParticlesDataMutablepartsPairing
 
IntVarMap intVars
 
FloatVarMap floatVars
 
IntVarToPartio intVarToPartio
 
FloatVarToPartio floatVarToPartio
 
SimpleVar indexVar
 
SimpleVar countVar
 
SimpleVar timeVar
 

Detailed Description

NOTE: This class is experimental and may be deleted/modified in future versions.

Member Typedef Documentation

◆ FloatVarMap

typedef std::map<std::string,AttribVar<float>*> Partio::PartioSe::FloatVarMap
private

◆ FloatVarToPartio

typedef std::vector<VarToPartio<float>*> Partio::PartioSe::FloatVarToPartio
private

◆ IntVarMap

typedef std::map<std::string,AttribVar<int>*> Partio::PartioSe::IntVarMap
private

◆ IntVarToPartio

typedef std::vector<VarToPartio<int>*> Partio::PartioSe::IntVarToPartio
private

◆ LocalVarTableIterator

typedef SeExpression::LocalVarTable::const_iterator Partio::PartioSe::LocalVarTableIterator

Constructor & Destructor Documentation

◆ PartioSe() [1/3]

Partio::PartioSe::PartioSe ( Partio::ParticlesDataMutable parts,
const char *  expr 
)

References addExport(), addSet(), currentIndex, and parts.

◆ PartioSe() [2/3]

Partio::PartioSe::PartioSe ( Partio::ParticlesDataMutable partsPairing,
Partio::ParticlesDataMutable parts,
const char *  expr 
)

◆ ~PartioSe()

Partio::PartioSe::~PartioSe ( )
virtual

◆ PartioSe() [3/3]

Partio::PartioSe::PartioSe ( const PartioSe )
private

Member Function Documentation

◆ addExport()

void Partio::PartioSe::addExport ( const std::string &  name,
LocalVarTableIterator  it,
Partio::ParticlesDataMutable parts,
int &  setIndex 
)

◆ addSet()

void Partio::PartioSe::addSet ( const char *  prefix,
Partio::ParticlesDataMutable parts,
int &  setIndex 
)

◆ operator=()

PartioSe& Partio::PartioSe::operator= ( const PartioSe )
private

◆ resolveVar()

SeExprVarRef * Partio::PartioSe::resolveVar ( const std::string &  s) const

References countVar, floatVars, indexVar, intVars, and timeVar.

◆ run()

void Partio::PartioSe::run ( int  i)

◆ runAll()

bool Partio::PartioSe::runAll ( )

◆ runRandom()

bool Partio::PartioSe::runRandom ( )

◆ runRange()

bool Partio::PartioSe::runRange ( int  istart,
int  iend 
)

◆ setTime()

void Partio::PartioSe::setTime ( float  val)

References timeVar, and Partio::SimpleVar::val.

Member Data Documentation

◆ countVar

SimpleVar Partio::PartioSe::countVar
mutableprivate

Referenced by resolveVar(), runRandom(), and runRange().

◆ currentIndex

int Partio::PartioSe::currentIndex
private

Referenced by PartioSe(), and run().

◆ floatVars

FloatVarMap Partio::PartioSe::floatVars
mutableprivate

Referenced by addSet(), resolveVar(), and ~PartioSe().

◆ floatVarToPartio

FloatVarToPartio Partio::PartioSe::floatVarToPartio
private

Referenced by addExport(), run(), and ~PartioSe().

◆ indexVar

SimpleVar Partio::PartioSe::indexVar
mutableprivate

Referenced by resolveVar(), and run().

◆ intVars

IntVarMap Partio::PartioSe::intVars
mutableprivate

Referenced by addSet(), resolveVar(), and ~PartioSe().

◆ intVarToPartio

IntVarToPartio Partio::PartioSe::intVarToPartio
private

Referenced by addExport(), run(), and ~PartioSe().

◆ isPaired

bool Partio::PartioSe::isPaired
private

Referenced by run().

◆ pairH1

Partio::ParticleAttribute Partio::PartioSe::pairH1
private

Referenced by PartioSe(), and run().

◆ pairH2

Partio::ParticleAttribute Partio::PartioSe::pairH2
private

Referenced by PartioSe(), and run().

◆ pairIndex1

int Partio::PartioSe::pairIndex1
private

Referenced by PartioSe(), and run().

◆ pairIndex2

int Partio::PartioSe::pairIndex2
private

Referenced by PartioSe(), and run().

◆ parts

Partio::ParticlesDataMutable* Partio::PartioSe::parts
private

◆ partsPairing

Partio::ParticlesDataMutable* Partio::PartioSe::partsPairing
private

Referenced by PartioSe(), and run().

◆ timeVar

SimpleVar Partio::PartioSe::timeVar
mutableprivate

Referenced by resolveVar(), and setTime().


The documentation for this class was generated from the following files: