smp::input_array_double< NUM_INPUTS > Class Template Reference

Implementation of the input data structure as a double array. More...

#include <input_array_double.h>

List of all members.

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.

Detailed Description

template<int NUM_INPUTS>
class smp::input_array_double< NUM_INPUTS >

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.


Member Function Documentation

template<int NUM_INPUTS>
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.

template<int NUM_INPUTS>
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.

Parameters:
index_inThe index of the input variable.
Returns:
Returns a reference to the input variable with index index_in.

Member Data Documentation

template<int NUM_INPUTS>
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.


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