src/smp/components/extenders/state_array_double.h

Go to the documentation of this file.
00001 
00008 #ifndef _SMP_STATE_ARRAY_DOUBLE_H_
00009 #define _SMP_STATE_ARRAY_DOUBLE_H_
00010 
00011 
00012 namespace smp {
00013 
00015 
00021     template <int NUM_STATES>
00022     class state_array_double {
00023 
00024     public:
00025 
00027 
00031         double state_vars[NUM_STATES];
00032     
00033         state_array_double ();    
00034         ~state_array_double ();
00035 
00036     
00040         state_array_double (const state_array_double<NUM_STATES> &state_in);
00041 
00042 
00049         const state_array_double<NUM_STATES> &operator=(const state_array_double<NUM_STATES> &state_in);
00050 
00051 
00061         inline double& operator[] (int index_in);
00062 
00063                 
00064     };
00065 
00066 
00067 }
00068 
00069 #endif