Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Object.h
Go to the documentation of this file.
1 #pragma once
2 
9 #include "swCommonLib/Common/RTTR.h"
11 
42 class Object
43 {
44  RTTR_ENABLE()
45 
46 public:
47 
48  inline TypeID GetType () const { return this->get_type(); }
49  inline std::string GetTypeName () const { return std::string( this->get_type().get_name() ); }
50 
51 
54  virtual Size MemorySize () const;
55 
56  template< typename TargetType >
57  TargetType* DynamicCast () { return rttr::rttr_cast< TargetType* >( this ); }
58 };
59 
Plik zawiera definicje podstawowych typów zmiennych.
virtual Size MemorySize() const
Returns memory size possesed by this class and all it's nested objects. Result shoulb be computed rec...
Definition: Object.cpp:24
Base clas for all objects in sleeping wombat libraries.
Definition: Object.h:42