MeVisLabToolboxReference
MeVisLab/Standard/Sources/ML/MLCSO/CSOTools/CSOHeapObject.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00004 
00009 //----------------------------------------------------------------------------------
00010 
00011 
00012 #ifndef __CSOHeapObject_H
00013 #define __CSOHeapObject_H
00014 
00016 
00018 class CSOHeapObject
00019 {
00020 public:
00021 
00022   CSOHeapObject() { 
00023     heapPosition = -1; // not sorted in heap by default
00024     value = DBL_MAX;
00025   }
00026 
00027   inline void reset() {
00028     heapPosition = -1;
00029     value = DBL_MAX;
00030   }
00031 
00032   int heapPosition; 
00033   double value;     
00034 };
00035 
00037 
00038 #endif // __CSOHeapObject_H