cgma
|
00001 //- Class: IndexedDouble 00002 //- Description: IndexedDouble associates an index with a double value for 00003 //- use with sorted or other lists. 00004 //- Owner: Scott Mitchell 00005 //- Version: $Id: 00006 00007 #ifndef INDEXED_DOUBLE 00008 #define INDEXED_DOUBLE 00009 00010 class IndexedDouble { 00011 public: 00012 int myIndex; 00013 int index() {return myIndex;} 00014 00015 double myDouble; 00016 double val() {return myDouble;} 00017 00018 IndexedDouble( int index_set, double double_set ) 00019 { myIndex = index_set; myDouble = double_set; } 00020 //- constructor 00021 00022 }; 00023 00024 #endif 00025