Class Output

Nested Relationships

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class Output : public Module

Configurable output base class.

Subclassed by HDF5Output, TextOutput

Public Types

enum OutputColumn

Values:

TrajectoryLengthColumn
ColumnDensityColumn
RedshiftColumn
CurrentIdColumn
CurrentEnergyColumn
CurrentPositionColumn
CurrentDirectionColumn
SourceIdColumn
SourceEnergyColumn
SourcePositionColumn
SourceDirectionColumn
CreatedIdColumn
CreatedEnergyColumn
CreatedPositionColumn
CreatedDirectionColumn
SerialNumberColumn
WeightColumn
enum OutputType

Values:

Trajectory1D
Trajectory3D
Event1D
Event3D
Everything

Public Functions

std::string OutputTypeName(OutputType outputtype)
Output()
Output(OutputType outputtype)
void setEnergyScale(double scale)
void setLengthScale(double scale)
void setOutputType(OutputType outputtype)
void set(OutputColumn field, bool value)
void enableProperty(const std::string &property, const Variant &defaultValue, const std::string &comment = "")

Add a property to output. Default value is required to assign a type in the output.

void enable(OutputColumn field)
void disable(OutputColumn field)
void enableAll()
void disableAll()
void set1D(bool value)
size_t size() const
void process(Candidate *c) const
std::string getDescription() const
void setDescription(const std::string &description)
void process(ref_ptr<Candidate> candidate) const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Public Members

const std::string outputName

Protected Functions

void modify()

Protected Attributes

double lengthScale
double energyScale
std::bitset<64> fields
std::vector<Property> properties
bool oneDimensional
size_t count
size_t _referenceCount
struct Property

Public Members

std::string name
std::string comment
Variant defaultValue