Library of Assembled Shared Sources
 
Loading...
Searching...
No Matches
lass::python::StdSharedPointerTraits< T > Struct Template Reference

Pointer-traits for Python Shadow classes that use std::shared_ptr for storage. More...

#include <pyshadow_object.h>

Inheritance diagram for lass::python::StdSharedPointerTraits< T >:

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.
 

Detailed Description

template<typename T>
struct lass::python::StdSharedPointerTraits< T >

Pointer-traits for Python Shadow classes that use std::shared_ptr for storage.

Definition at line 606 of file pyshadow_object.h.


The documentation for this struct was generated from the following file: