Pointer-traits for Python Shadow classes that use std::shared_ptr for storage.
More...
#include <pyshadow_object.h>

Classes | |
| struct | Rebind |
| Rebind pointer traits to other shadowee type. More... | |
Public Types | |
| typedef std::shared_ptr< T > | TPtr |
| Pointer to shadowee type. | |
Static Public Member Functions | |
| static void | acquire (const TPtr &) |
| std::shared_ptr already handles reference counts | |
| static void | release (const TPtr &) |
| std::shared_ptr already handles reference counts | |
| static bool | isEmpty (const TPtr &p) |
| Return true when storing a nullptr. | |
| static T * | get (const TPtr &p) |
| Get the raw pointer to the shadowee. | |
| static TShadoweeID | id (TPtr p) |
| Convert shadowee pointer to ID for shadow cache. | |
| template<typename U> | |
| static TPtr | staticCast (const std::shared_ptr< U > &p) |
| Perform static cast on shadowee pointer. | |
| template<typename U> | |
| static TPtr | dynamicCast (const std::shared_ptr< U > &p) |
| Perform dynamic cast on shadowee pointer. | |
| template<typename U> | |
| static TPtr | constCast (const std::shared_ptr< U > &p) |
| Perform const cast on shadowee pointer. | |
Pointer-traits for Python Shadow classes that use std::shared_ptr for storage.
Definition at line 606 of file pyshadow_object.h.