The SKIRT project
advanced radiative transfer for astrophysics
DoubleListPropertyHandler Class Reference

#include <DoubleListPropertyHandler.hpp>

Inheritance diagram for DoubleListPropertyHandler:

Public Member Functions

void acceptVisitor (PropertyHandlerVisitor *visitor) override
vector< double > defaultValue () const
void insertNames () override
bool isValidValue (string value) const override
void setValue (vector< double > value)
vector< double > value () const
Public Member Functions inherited from AbstractDoublePropertyHandler
bool isInRange (const vector< double > &value) const
bool isInRange (double value) const
bool isValidDouble (string value) const
bool isValidDoubleList (string value) const
 PropertyHandler (const PropertyHandler &)=delete
 PropertyHandler (Item *target, const PropertyDef *property, const SchemaDef *schema, NameManager *nameMgr)
string quantity () const
string rangeDescription () const
double toDouble (string value) const
vector< double > toDoubleList (string value) const
string toString (double value) const
string toString (vector< double > value) const
Public Member Functions inherited from PropertyHandler
 PropertyHandler (const PropertyHandler &)=delete
 PropertyHandler (Item *target, const PropertyDef *property, const SchemaDef *schema, NameManager *nameMgr)
virtual ~PropertyHandler ()=default
virtual vector< Item * > children () const
bool hasChanged () const
bool hasDefaultValue () const
virtual bool isCompound () const
bool isConfigured ()
bool isConfiguredByUser ()
bool isDisplayed () const
bool isRelevant () const
bool isRequired () const
bool isSilent () const
string name () const
NameManagernameManager () const
PropertyHandleroperator= (const PropertyHandler &)=delete
void rebuildNames ()
Itemroot () const
const SchemaDefschema () const
void setConfiguredByUser (bool valid=true)
void setConfiguredToDefault ()
void setNotConfigured ()
string title () const
string type () const

Additional Inherited Members

Protected Member Functions inherited from PropertyHandler
const PropertyDefproperty () const
void setChanged ()
Itemtarget () const

Detailed Description

This class handles SMILE data item properties that hold a list of floating point values with an optional unit specification, seperated by commas.

Member Function Documentation

◆ acceptVisitor()

void DoubleListPropertyHandler::acceptVisitor ( PropertyHandlerVisitor * visitor)
overridevirtual

Accepts the specified visitor. This function is part of the "visitor" design pattern implementation used to handle properties of various types.

Implements PropertyHandler.

◆ defaultValue()

vector< double > DoubleListPropertyHandler::defaultValue ( ) const

Returns the default value for the handled property, or zero if unavailable.

◆ insertNames()

void DoubleListPropertyHandler::insertNames ( )
overridevirtual

Causes the name manager associated with this handler to insert names into the global and/or local name sets corresponding to the current value of the target property. For double list properties, the function inserts the target property's name if the current property value is a nonempty list (i.e. including at least one number), and does not insert any names if the value is the empty list. In addition, the function inserts the names provided in the conditional expression of the "insert" attribute of the target property, if any.

Implements PropertyHandler.

◆ isValidValue()

bool DoubleListPropertyHandler::isValidValue ( string value) const
overridevirtual

Returns true if the given string can be successfully converted to a value of the property's type. For double list properties, the function returns true if the string conforms to the syntax recognized by the AbstractDoublePropertyHandler::isValidDoubleList() function, and false otherwise.

Implements PropertyHandler.

◆ setValue()

void DoubleListPropertyHandler::setValue ( vector< double > value)

Sets the value of the handled property in the target item.

◆ value()

vector< double > DoubleListPropertyHandler::value ( ) const

Returns the value of the handled property in the target item.


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