MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlMetaProfilePtr.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2010, 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
#ifndef ML_META_PROFILE_PTR_H
14
#define ML_META_PROFILE_PTR_H
15
16
#include <string>
17
#include "
mlProfilingManagerDllExport.h
"
18
19
class
MLMetaProfile
;
20
21
23
class
MLPROFILINGMANAGER_EXPORT
MLMetaProfilePtr
24
{
25
public
:
26
MLMetaProfilePtr
();
27
~MLMetaProfilePtr
();
28
29
void
createMetaProfile
(
const
std::string& description);
30
31
MLMetaProfile
*
operator->
()
const
32
{
33
return
_metaProfile;
34
}
35
MLMetaProfile
&
operator*
()
36
{
37
return
*_metaProfile;
38
}
39
const
MLMetaProfile
&
operator*
()
const
40
{
41
return
*_metaProfile;
42
}
43
44
MLMetaProfile
*
get
()
const
45
{
46
return
_metaProfile;
47
}
48
49
operator
bool
()
const
50
{
51
return
_metaProfile !=
nullptr
;
52
}
53
54
private
:
55
// disallow copying of the metaprofile pointer, because the metaprofile
56
// supports only one callback.
57
MLMetaProfilePtr
(
const
MLMetaProfilePtr
&);
58
MLMetaProfilePtr
& operator=(
const
MLMetaProfilePtr
&);
59
60
void
metaProfileIsDestroyed();
61
62
private
:
63
MLMetaProfile
* _metaProfile;
64
65
friend
class
MLMetaProfile
;
66
};
67
68
#endif
// _ML_META_PROFILE_PTR_H_
MLMetaProfilePtr
The pointer is automatically reset when the metaprofile is destroyed.
Definition
mlMetaProfilePtr.h:24
MLMetaProfilePtr::operator->
MLMetaProfile * operator->() const
Definition
mlMetaProfilePtr.h:31
MLMetaProfilePtr::MLMetaProfilePtr
MLMetaProfilePtr()
MLMetaProfilePtr::~MLMetaProfilePtr
~MLMetaProfilePtr()
MLMetaProfilePtr::operator*
const MLMetaProfile & operator*() const
Definition
mlMetaProfilePtr.h:39
MLMetaProfilePtr::createMetaProfile
void createMetaProfile(const std::string &description)
MLMetaProfilePtr::get
MLMetaProfile * get() const
Definition
mlMetaProfilePtr.h:44
MLMetaProfilePtr::operator*
MLMetaProfile & operator*()
Definition
mlMetaProfilePtr.h:35
MLMetaProfile
Definition
mlMetaProfile.h:36
mlProfilingManagerDllExport.h
MLPROFILINGMANAGER_EXPORT
#define MLPROFILINGMANAGER_EXPORT
Definition
mlProfilingManagerDllExport.h:19
mlrange_cast
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Definition
mlRangeCasts.h:305
MeVis
Foundation
Sources
MLProfilingManager
Include
mlMetaProfilePtr.h
Generated by
1.10.0