Static Public Member Functions | |
| static meshlib.std_shared_ptr_const_MR_Mesh | constructFromValue (meshlib.Mesh value) |
| static meshlib.std_shared_ptr_const_MR_Mesh | construct (meshlib.Mesh ptr) |
| static meshlib.std_shared_ptr_const_MR_Mesh | constructNonOwning (meshlib.Mesh ptr) |
Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppObject | |
| CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner) | |
Wraps a pointer to a single shared reference-counted heap-allocated const MR::Mesh.
Instances created here own their C++ objects, see CppObject.
| meshlib.std_shared_ptr_const_MR_Mesh.std_shared_ptr_const_MR_Mesh | ( | java.lang.foreign.MemorySegment | ptr, |
| boolean | owned, | ||
| java.lang.Object | owner ) |
Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.std_shared_ptr_const_MR_Mesh.std_shared_ptr_const_MR_Mesh | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_std_shared_ptr_const_MR_Mesh_DefaultConstruct().
| meshlib.std_shared_ptr_const_MR_Mesh.std_shared_ptr_const_MR_Mesh | ( | meshlib.std_shared_ptr_const_MR_Mesh | other | ) |
Constructs a copy of another instance. The source remains alive. The reference to the parameter other might be preserved in the constructed object.
Calls MR_std_shared_ptr_const_MR_Mesh_ConstructFromAnother().
| meshlib.std_shared_ptr_const_MR_Mesh.std_shared_ptr_const_MR_Mesh | ( | meshlib.std_shared_ptr_MR_Mesh | ptr | ) |
Create a new instance from a non-const pointer to the same type.
Calls MR_std_shared_ptr_const_MR_Mesh_ConstructFromMutable().
| meshlib.std_shared_ptr_const_MR_Mesh.std_shared_ptr_const_MR_Mesh | ( | meshlib.std_shared_ptr_const_void | ownership, |
| meshlib.Mesh | 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>. The reference to the parameter ptr might be preserved in the constructed object.
Calls MR_std_shared_ptr_const_MR_Mesh_ConstructAliasing().
| void meshlib.std_shared_ptr_const_MR_Mesh.assign | ( | meshlib.Mesh | ptr | ) |
Overwrite the existing instance, taking ownership of an existing pointer. The previously owned object, if any, has its reference count decremented.
Calls MR_std_shared_ptr_const_MR_Mesh_Assign().
| void meshlib.std_shared_ptr_const_MR_Mesh.AssignAliasing | ( | meshlib.std_shared_ptr_const_void | ownership, |
| meshlib.Mesh | 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>. The reference to the parameter ptr might be preserved in this object.
Calls MR_std_shared_ptr_const_MR_Mesh_AssignAliasing().
| void meshlib.std_shared_ptr_const_MR_Mesh.assignFromAnother | ( | meshlib.std_shared_ptr_const_MR_Mesh | other | ) |
Assigns the contents from another instance. Both objects remain alive after the call. The reference to the parameter other might be preserved in this object.
Calls MR_std_shared_ptr_const_MR_Mesh_AssignFromAnother().
| void meshlib.std_shared_ptr_const_MR_Mesh.assignFromMutable | ( | meshlib.std_shared_ptr_MR_Mesh | ptr | ) |
Overwrite the existing instance with a non-const pointer to the same type.
Calls MR_std_shared_ptr_const_MR_Mesh_AssignFromMutable().
| void meshlib.std_shared_ptr_const_MR_Mesh.assignNonOwning | ( | meshlib.Mesh | ptr | ) |
Overwrite the existing instance with a non-owning pointer. The previously owned object, if any, has its reference count decremented. The reference to the parameter ptr might be preserved in this object.
Calls MR_std_shared_ptr_const_MR_Mesh_AssignNonOwning().
| void meshlib.std_shared_ptr_const_MR_Mesh.AssignTo_MR_std_shared_ptr_const_void | ( | meshlib.std_shared_ptr_const_void | _target | ) |
Overwrites an existing std::shared_ptr<void> to point to the same object as this instance.
Calls MR_std_shared_ptr_const_MR_Mesh_AssignTo_MR_std_shared_ptr_const_void().
|
static |
Create a new instance, taking ownership of an existing pointer.
Calls MR_std_shared_ptr_const_MR_Mesh_Construct().
|
static |
Construct from a value. The reference to the parameter value might be preserved in the constructed object.
Calls MR_std_shared_ptr_const_MR_Mesh_ConstructFromValue().
|
static |
Create a new instance, storing a non-owning pointer. The reference to the parameter ptr might be preserved in the constructed object.
Calls MR_std_shared_ptr_const_MR_Mesh_ConstructNonOwning().
| meshlib.std_shared_ptr_const_void meshlib.std_shared_ptr_const_MR_Mesh.convertTo_MR_std_shared_ptr_const_void | ( | ) |
Creates an untyped std::shared_ptr<void> pointing to the same object as the source typed pointer.
Calls MR_std_shared_ptr_const_MR_Mesh_ConvertTo_MR_std_shared_ptr_const_void().
| meshlib.Mesh meshlib.std_shared_ptr_const_MR_Mesh.get | ( | ) |
Returns the stored pointer, possibly null. The reference to this object might be preserved as the return value.
Calls MR_std_shared_ptr_const_MR_Mesh_get().
| boolean meshlib.std_shared_ptr_const_MR_Mesh.has_value | ( | ) |
Returns true if non-null.
Calls MR_std_shared_ptr_const_MR_Mesh_has_value().
| void meshlib.std_shared_ptr_const_MR_Mesh.reset | ( | ) |
Resets the pointer to null.
Calls MR_std_shared_ptr_const_MR_Mesh_reset().
| int meshlib.std_shared_ptr_const_MR_Mesh.use_count | ( | ) |
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_MR_Mesh_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.
Calls MR_std_shared_ptr_const_MR_Mesh_use_count().