Implementation of the input data structure as a double array. More...
#include <input_array_double.h>
Public Member Functions | |
input_array_double (const input_array_double< NUM_INPUTS > &input_in) | |
The copy constructor. | |
const input_array_double < NUM_INPUTS > & | operator= (const input_array_double< NUM_INPUTS > &input_in) |
The equality operator. | |
double & | operator[] (int index_in) |
The bracket operator that returns the given element from the array. | |
Public Attributes | |
double | input_vars [NUM_INPUTS] |
Input variables array. |
Implementation of the input data structure as a double array.
This class implements the input data structure as a double array. The dimension of the array is a template parameter to the class.
const input_array_double<NUM_INPUTS>& smp::input_array_double< NUM_INPUTS >::operator= | ( | const input_array_double< NUM_INPUTS > & | input_in | ) |
The equality operator.
Two inputs are equal if and only if all their components are equal. This function checks whether this criterion is satisfied.
double& smp::input_array_double< NUM_INPUTS >::operator[] | ( | int | index_in | ) | [inline] |
The bracket operator that returns the given element from the array.
The bracket operator returns a reference to the indexed element in the array.
index_in | The index of the input variable. |
double smp::input_array_double< NUM_INPUTS >::input_vars[NUM_INPUTS] |
Input variables array.
The implementation of the input variables as a double array of size NUM_INPUTS, which is the template argument for this class.