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
24
class
MLCSO_EXPORT
CSOHeapObject
25
{
26
public
:
27
28
CSOHeapObject
()
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
40
int
heapPosition
;
41
double
value
;
42
};
43
MLCSOSystem.h
MLCSO_EXPORT
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition
MLCSOSystem.h:23
CSOHeapObject::heapPosition
int heapPosition
The position in the heap; -1 means not sorted at all.
Definition
CSOHeapObject.h:40
CSOHeapObject::CSOHeapObject
CSOHeapObject()
Definition
CSOHeapObject.h:28
CSOHeapObject::value
double value
Some value for comparison, determining the heap position.
Definition
CSOHeapObject.h:41
CSOHeapObject::reset
void reset()
Definition
CSOHeapObject.h:34
MeVisLab
Standard
Sources
ML
MLCSO
CSOTools
CSOHeapObject.h
Generated by
1.15.0