Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryObjectTypeInfo.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "berryObjectTypeInfo.h"
18 
19 namespace berry {
20 
22 {
23 
24 }
25 
27  : Reflection::TypeInfo(typeInfo)
28 {
29 }
30 
31 bool ObjectTypeInfo::operator==(const Object *other) const
32 {
33  if (const ObjectTypeInfo* otherStr = dynamic_cast<const ObjectTypeInfo*>(other))
34  {
35  return static_cast<const Reflection::TypeInfo&>(*this) == static_cast<const Reflection::TypeInfo&>(*otherStr);
36  }
37  return false;
38 }
39 
41 {
42  return static_cast<const Reflection::TypeInfo&>(*this) == other;
43 }
44 
45 }
46 
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
bool operator==(const Object *other) const override