MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Std.SharedPtr_ConstVoid Class Reference

Wraps a pointer to a single shared reference-counted heap-allocated const void. This is the non-const half of the class. More...

+ Inheritance diagram for MR.Std.SharedPtr_ConstVoid:

Public Member Functions

unsafe SharedPtr_ConstVoid ()
 Constructs an empty (default-constructed) instance.
 
unsafe SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_ConstVoid other)
 Constructs a copy of another instance. The source remains alive.
 
unsafe void assign (MR.Std._ByValue_SharedPtr_ConstVoid other)
 Assigns the contents from another instance. Both objects remain alive after the call.
 
unsafe SharedPtr_ConstVoid (void *ptr)
 Create a new instance, storing a non-owning pointer. Parameter ptr is a read-only pointer.
 
unsafe void assign (void *ptr)
 Overwrite the existing instance with a non-owning pointer. The previously owned object, if any, has its reference count decremented. Parameter ptr is a read-only pointer.
 
unsafe SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_Void ptr)
 Create a new instance from a non-const pointer to the same type.
 
unsafe void assign (MR.Std._ByValue_SharedPtr_Void ptr)
 Overwrite the existing instance with a non-const pointer to the same type.
 
unsafe SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_ConstVoid ownership, void *ptr)
 The aliasing constructor. Create a new instance, copying ownership from an existing shared pointer and storing an arbitrary raw pointer. The input pointer can be reinterpreted from any other std.shared_ptr<T> to avoid constructing a new std.shared_ptr<void>. Parameter ptr is a read-only pointer.
 
unsafe void assignAliasing (MR.Std._ByValue_SharedPtr_ConstVoid ownership, void *ptr)
 The aliasing assignment. Overwrite an existing instance, copying ownership from an existing shared pointer and storing an arbitrary raw pointer. The input pointer can be reinterpreted from any other std.shared_ptr<T> to avoid constructing a new std.shared_ptr<void>. Parameter ptr is a read-only pointer.
 
unsafe SharedPtr_ConstVoid (MR._ByValueShared_Object _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe void assign (MR._ByValueShared_Object _other)
 Overwrites an existing std.shared_ptr<void> to point to the same object as this instance.
 
unsafe SharedPtr_ConstVoid (MR._ByValueShared_Mesh _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe void assign (MR._ByValueShared_Mesh _other)
 Overwrites an existing std.shared_ptr<void> to point to the same object as this instance.
 
unsafe SharedPtr_ConstVoid (MR._ByValueShared_Polyline3 _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe void assign (MR._ByValueShared_Polyline3 _other)
 Overwrites an existing std.shared_ptr<void> to point to the same object as this instance.
 
unsafe SharedPtr_ConstVoid (MR._ByValueShared_PointCloud _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe void assign (MR._ByValueShared_PointCloud _other)
 Overwrites an existing std.shared_ptr<void> to point to the same object as this instance.
 
unsafe SharedPtr_ConstVoid (MR._ByValueShared_SceneRootObject _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe void assign (MR._ByValueShared_SceneRootObject _other)
 Overwrites an existing std.shared_ptr<void> to point to the same object as this instance.
 
- Public Member Functions inherited from MR.Std.Const_SharedPtr_ConstVoid
virtual void Dispose ()
 
unsafe Const_SharedPtr_ConstVoid ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_ConstVoid other)
 Constructs a copy of another instance. The source remains alive.
 
unsafe void * get ()
 Returns the stored pointer, possibly null. Returns a read-only pointer.
 
unsafe int useCount ()
 How many shared pointers share the managed object. Zero if no object is being managed. This being zero usually conincides with MR_std_shared_ptr_const_void_Get() returning null, but is ultimately orthogonal. Note that in multithreaded environments, the only safe way to use this number is comparing it with zero. Positive values might change by the time you get to use them.
 
unsafe Const_SharedPtr_ConstVoid (void *ptr)
 Create a new instance, storing a non-owning pointer. Parameter ptr is a read-only pointer.
 
unsafe Const_SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_Void ptr)
 Create a new instance from a non-const pointer to the same type.
 
unsafe Const_SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_ConstVoid ownership, void *ptr)
 The aliasing constructor. Create a new instance, copying ownership from an existing shared pointer and storing an arbitrary raw pointer. The input pointer can be reinterpreted from any other std.shared_ptr<T> to avoid constructing a new std.shared_ptr<void>. Parameter ptr is a read-only pointer.
 
unsafe Const_SharedPtr_ConstVoid (MR._ByValueShared_Object _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe Const_SharedPtr_ConstVoid (MR._ByValueShared_Mesh _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe Const_SharedPtr_ConstVoid (MR._ByValueShared_Polyline3 _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe Const_SharedPtr_ConstVoid (MR._ByValueShared_PointCloud _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
unsafe Const_SharedPtr_ConstVoid (MR._ByValueShared_SceneRootObject _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 

Static Public Member Functions

static unsafe implicit operator SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_Void ptr)
 Create a new instance from a non-const pointer to the same type.
 
static unsafe implicit operator SharedPtr_ConstVoid (MR._ByValueShared_Object _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator SharedPtr_ConstVoid (MR._ByValueShared_Mesh _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator SharedPtr_ConstVoid (MR._ByValueShared_Polyline3 _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator SharedPtr_ConstVoid (MR._ByValueShared_PointCloud _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator SharedPtr_ConstVoid (MR._ByValueShared_SceneRootObject _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
- Static Public Member Functions inherited from MR.Std.Const_SharedPtr_ConstVoid
static unsafe implicit operator Const_SharedPtr_ConstVoid (MR.Std._ByValue_SharedPtr_Void ptr)
 Create a new instance from a non-const pointer to the same type.
 
static unsafe implicit operator Const_SharedPtr_ConstVoid (MR._ByValueShared_Object _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator Const_SharedPtr_ConstVoid (MR._ByValueShared_Mesh _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator Const_SharedPtr_ConstVoid (MR._ByValueShared_Polyline3 _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator Const_SharedPtr_ConstVoid (MR._ByValueShared_PointCloud _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 
static unsafe implicit operator Const_SharedPtr_ConstVoid (MR._ByValueShared_SceneRootObject _other)
 Creates an untyped std.shared_ptr<void> pointing to the same object as the source typed pointer.
 

Additional Inherited Members

- Protected Member Functions inherited from MR.Std.Const_SharedPtr_ConstVoid
virtual unsafe void Dispose (bool disposing)
 
- Protected Attributes inherited from MR.Misc.Object< Const_SharedPtr_ConstVoid >
bool _IsOwningVal
 
- Properties inherited from MR.Misc.Object< Const_SharedPtr_ConstVoid >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Detailed Description

Wraps a pointer to a single shared reference-counted heap-allocated const void. This is the non-const half of the class.


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