Cogs.Core
Type.inl
1#include "TypeDatabase.h"
2
3template<typename BaseType>
5{
6 setBase(&TypeDatabase::getType<BaseType>());
7
8 return *this;
9}
10
11template<typename DestinationType>
13{
14 return canCastTo(TypeDatabase::getType<DestinationType>());
15}
Represents a discrete type definition, describing a native type class.
Definition: Type.h:89
Type & setBase()
Set the base of this type to the given type.
bool canCastTo() const
Check if this type can be cast to the destination type.
Definition: Type.inl:12