27 typedef uint8_t uint8;
28 typedef int16_t int16;
29 typedef uint16_t uint16;
30 typedef int32_t int32;
31 typedef uint32_t uint32;
32 typedef int64_t int64;
33 typedef uint64_t uint64;
37 typedef ptrdiff_t PtrOffset;
39 typedef double TimeType;
48 typedef rttr::type ActorType;
51 template<
typename PtrType >
52 using UPtr = std::shared_ptr< PtrType >;
54 template<
typename PtrType >
55 using Ptr = std::shared_ptr< PtrType >;
60 template<
typename PtrType >
61 using OPtr = std::unique_ptr< PtrType >;
63 template<
typename PtrType,
typename... Args >
64 Ptr< PtrType > MakePtr ( Args&&... args )
66 return std::make_shared< PtrType >( args... );
69 template<
typename PtrType,
typename... Args >
72 return std::make_unique< PtrType >( args... );
76 template<
typename PtrType,
typename... Args >
79 return std::make_unique< PtrType >( args... );
83 #define DEFINE_PTR_TYPE( type ) typedef Ptr< type > type ## Ptr;
84 #define DEFINE_UPTR_TYPE( type ) typedef UPtr< type > type ## UPtr;
85 #define DEFINE_WPTR_TYPE( type ) typedef std::weak_ptr< type > type ## WPtr;
86 #define DEFINE_OPTR_TYPE( type ) typedef OPtr< type > type ## OPtr;
89 #define CLASS_TESTER( type ) __ ## type ## __Tester
90 #define FRIEND_CLASS_TESTER( type ) friend class CLASS_TESTER( type );
Definition: TypesDefinitions.h:42
std::unique_ptr< PtrType > OPtr
Definition: TypesDefinitions.h:61