#include "Assert.hpp"
#include <armnn/Exceptions.hpp>
#include <memory>
#include <type_traits>
Go to the source code of this file.
|
template<class T1 , class T2 > |
std::shared_ptr< T1 > | StaticPointerCast (const std::shared_ptr< T2 > &sp) |
|
template<class T1 , class T2 > |
std::shared_ptr< T1 > | DynamicPointerCast (const std::shared_ptr< T2 > &sp) |
|
template<class T1 , class T2 > |
T1 * | StaticPointerCast (T2 *ptr) |
|
template<class T1 , class T2 > |
T1 * | DynamicPointerCast (T2 *ptr) |
|
template<typename DestType , typename SourceType > |
DestType | PolymorphicDowncast (SourceType *value) |
| Polymorphic downcast for build in pointers only. More...
|
|
template<typename DestType , typename SourceType > |
auto | PolymorphicPointerDowncast (const SourceType &value) |
| Polymorphic downcast for shared pointers and build in pointers. More...
|
|
◆ ARMNN_POLYMORPHIC_CAST_CHECK
◆ ARMNN_POLYMORPHIC_CAST_CHECK_METHOD
#define ARMNN_POLYMORPHIC_CAST_CHECK_METHOD |
( |
|
cond | ) |
ARMNN_ASSERT(cond) |