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 
18 {
19 
20 }
21 
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 
37 {
38  return static_cast<const Reflection::TypeInfo&>(*this) == other;
39 }
40 
41 }
42 
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
bool operator==(const Object *other) const override