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

Pointer-traits for Python Shadow classes that use raw * pointers for storage. More...

#include <pyshadow_object.h>

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

Classes

struct  Rebind
 Rebind pointer traits to other shadowee type. More...
 

Public Types

typedef T * TPtr
 Pointer to shadowee type.
 

Static Public Member Functions

static void acquire (TPtr)
 Raw pointers have no ownership rules.
 
static void release (TPtr)
 Raw pointers have no ownership rules.
 
static bool isEmpty (TPtr p)
 Return true when storing a nullptr.
 
static T * get (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 (U *p)
 Perform static cast on shadowee pointer.
 
template<typename U>
static TPtr dynamicCast (U *p)
 Perform dynamic cast on shadowee pointer.
 
template<typename U>
static TPtr constCast (U *p)
 Perform const cast on shadowee pointer.
 

Detailed Description

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

Pointer-traits for Python Shadow classes that use raw * pointers for storage.

Warning
The NakedPointerTraits does not govern the lifetime of the shadowee, so you must make sure that it outlives every Python reference!

Definition at line 551 of file pyshadow_object.h.


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