MeVisLab Toolbox Reference
CSOHeapObject.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 
15 
16 #pragma once
17 
18 
19 #include "MLCSOSystem.h"
20 
22 
25 {
26 public:
27 
29  {
30  heapPosition = -1; // not sorted in heap by default
31  value = DBL_MAX;
32  }
33 
34  inline void reset()
35  {
36  heapPosition = -1;
37  value = DBL_MAX;
38  }
39 
41  double value;
42 };
43 
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition: MLCSOSystem.h:23
CSOHeapObject: base class for objects to be used with the heap.
Definition: CSOHeapObject.h:25
int heapPosition
The position in the heap; -1 means not sorted at all.
Definition: CSOHeapObject.h:40
double value
Some value for comparison, determining the heap position.
Definition: CSOHeapObject.h:41