Drake
is_dynamic_castable.h File Reference
#include <memory>
#include <string>
#include <gtest/gtest.h>
#include "drake/common/nice_type_name.h"
Include dependency graph for is_dynamic_castable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 drake
 

Functions

template<typename ToType , typename FromType >
::testing::AssertionResult is_dynamic_castable (const FromType *ptr)
 Checks if ptr, a pointer to FromType class, can be safely converted to a pointer to ToType class. More...
 
template<typename ToType , typename FromType >
::testing::AssertionResult is_dynamic_castable (std::shared_ptr< FromType > ptr)
 Checks if ptr, a shared pointer to FromType class, can be safely converted to a shared pointer to ToType class. More...
 
template<typename ToType , typename FromType >
::testing::AssertionResult is_dynamic_castable (const std::unique_ptr< FromType > &ptr)
 Checks if ptr, a shared pointer to FromType class, can be safely converted to a shared pointer to ToType class. More...