|
iMSTK
Interactive Medical Simulation Toolkit
|
std::shared_ptr<T> obj = std::make_shared<T>(); equivalent, convenience class for STL shared allocations. Cannot be used in overloaded polymorphic calls More...
#include <imstkNew.h>
Public Member Functions | |
| template<typename ... Args> | |
| imstkNew (Args &&... args) | |
| imstkNew (imstkNew &&obj) | |
| T * | operator-> () const |
| T & | operator* () const |
| T * | getPtr () const |
| Returns the raw pointer. | |
| const std::shared_ptr< T > & | get () const |
| Returns const ref to STL smart pointer. | |
| operator std::shared_ptr< T > () const | |
| Implicit conversion. | |
| operator std::weak_ptr< T > () const | |
| Implicit conversion. | |
| template<typename U > | |
| operator std::shared_ptr< U > () const | |
| Hack for multiple implicit conversions, does not work with overloads though as it won't know what to cast too. | |
| template<typename U > | |
| operator std::weak_ptr< U > () const | |
| Hack for multiple implicit conversions, does not work with overloads though as it won't know what to cast too. | |
Friends | |
| template<typename U > | |
| class | imstkNew |
std::shared_ptr<T> obj = std::make_shared<T>(); equivalent, convenience class for STL shared allocations. Cannot be used in overloaded polymorphic calls
Definition at line 29 of file imstkNew.h.
1.8.13