#include <sparkapi.h>
Public Types | |
typedef T | value_type |
template type for the parameter | |
Public Member Functions | |
simulation_parameter () | |
Default constructor: empty parameter. | |
simulation_parameter (T value) | |
Explicit constructor: stores value as parameter. | |
simulation_parameter (const simulation_parameter &p) | |
Copy constructor: deep copy of parameter value. | |
bool | empty () const |
Returns true if parameter is empty, false otherwise. | |
value_type | get () const |
Returns a copy of the parameter value. | |
operator value_type () const | |
Automatic conversion to parameter type. |
Wrapper class around a POD object of type T that keeps track of whether the parameter was initialized in the constructor. Used in the various simulation methods that accept parameters as arguments.
|
template type for the parameter
|
|
Default constructor: empty parameter.
|
|
Explicit constructor: stores value as parameter.
|
|
Copy constructor: deep copy of parameter value.
|
|
Returns true if parameter is empty, false otherwise.
|
|
Returns a copy of the parameter value.
|
|
Automatic conversion to parameter type.
|