Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryObjectTypeInfo.cpp
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#include "
berryObjectTypeInfo.h
"
14
15
namespace
berry
{
16
17
ObjectTypeInfo::ObjectTypeInfo
()
18
{
19
20
}
21
22
ObjectTypeInfo::ObjectTypeInfo
(
const
Reflection::TypeInfo
&typeInfo)
23
: Reflection::
TypeInfo
(typeInfo)
24
{
25
}
26
27
bool
ObjectTypeInfo::operator==
(
const
Object
*other)
const
28
{
29
if
(
const
ObjectTypeInfo
* otherStr = dynamic_cast<const ObjectTypeInfo*>(other))
30
{
31
return
static_cast<
const
Reflection::TypeInfo
&
>
(*this) ==
static_cast<
const
Reflection::TypeInfo
&
>
(*otherStr);
32
}
33
return
false
;
34
}
35
36
bool
ObjectTypeInfo::operator==
(
const
Reflection::TypeInfo
&other)
const
37
{
38
return
static_cast<
const
Reflection::TypeInfo
&
>
(*this) == other;
39
}
40
41
}
42
berry::ObjectTypeInfo
Definition:
berryObjectTypeInfo.h:22
berry
Definition:
QmitkPropertyItemModel.h:23
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:72
berry::ObjectTypeInfo::ObjectTypeInfo
ObjectTypeInfo()
Definition:
berryObjectTypeInfo.cpp:17
berry::Reflection::TypeInfo::TypeInfo
TypeInfo()
Definition:
berryReflection.cpp:85
berry::Reflection::TypeInfo
Definition:
berryReflection.h:139
berry::ObjectTypeInfo::operator==
bool operator==(const Object *other) const override
Definition:
berryObjectTypeInfo.cpp:27
berryObjectTypeInfo.h
Source
Plugins
org.blueberry.core.runtime
src
berryObjectTypeInfo.cpp
Generated on Thu Mar 12 2020 10:23:33 for Medical Imaging Interaction Toolkit by
1.8.13