MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.std_variant_float_MR_Vector3f Class Reference
Inheritance diagram for meshlib.std_variant_float_MR_Vector3f:

Public Member Functions

 std_variant_float_MR_Vector3f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 std_variant_float_MR_Vector3f ()
 std_variant_float_MR_Vector3f (meshlib.std_variant_float_MR_Vector3f other)
void assignFromAnother (meshlib.std_variant_float_MR_Vector3f other)
long index ()
 std_variant_float_MR_Vector3f (float value)
 std_variant_float_MR_Vector3f (meshlib.Vector3f value)
void AssignAs_float (float value)
void AssignAs_MR_Vector3f (meshlib.Vector3f value)
java.lang.Float get_float ()
java.lang.foreign.MemorySegment get_float_mut ()
meshlib.Vector3f get_MR_Vector3f ()
meshlib.Vector3f get_MR_Vector3f_mut ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

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)

Detailed Description

Stores one of 2 objects: float, MR::Vector3f.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ std_variant_float_MR_Vector3f() [1/5]

meshlib.std_variant_float_MR_Vector3f.std_variant_float_MR_Vector3f ( 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.

◆ std_variant_float_MR_Vector3f() [2/5]

meshlib.std_variant_float_MR_Vector3f.std_variant_float_MR_Vector3f ( )

Constructs an empty (default-constructed) instance.

Calls MR_std_variant_float_MR_Vector3f_DefaultConstruct().

◆ std_variant_float_MR_Vector3f() [3/5]

meshlib.std_variant_float_MR_Vector3f.std_variant_float_MR_Vector3f ( meshlib.std_variant_float_MR_Vector3f 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_variant_float_MR_Vector3f_ConstructFromAnother().

◆ std_variant_float_MR_Vector3f() [4/5]

meshlib.std_variant_float_MR_Vector3f.std_variant_float_MR_Vector3f ( float value)

Constructs the variant storing the element 0, of type float.

Calls MR_std_variant_float_MR_Vector3f_ConstructAs_float().

◆ std_variant_float_MR_Vector3f() [5/5]

meshlib.std_variant_float_MR_Vector3f.std_variant_float_MR_Vector3f ( meshlib.Vector3f value)

Constructs the variant storing the element 1, of type MR::Vector3f. The reference to the parameter value might be preserved in the constructed object.

Calls MR_std_variant_float_MR_Vector3f_ConstructAs_MR_Vector3f().

Member Function Documentation

◆ AssignAs_float()

void meshlib.std_variant_float_MR_Vector3f.AssignAs_float ( float value)

Assigns to the variant, making it store the element 0, of type float.

Calls MR_std_variant_float_MR_Vector3f_AssignAs_float().

◆ AssignAs_MR_Vector3f()

void meshlib.std_variant_float_MR_Vector3f.AssignAs_MR_Vector3f ( meshlib.Vector3f value)

Assigns to the variant, making it store the element 1, of type MR::Vector3f. The reference to the parameter value might be preserved in this object.

Calls MR_std_variant_float_MR_Vector3f_AssignAs_MR_Vector3f().

◆ assignFromAnother()

void meshlib.std_variant_float_MR_Vector3f.assignFromAnother ( meshlib.std_variant_float_MR_Vector3f 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_variant_float_MR_Vector3f_AssignFromAnother().

◆ get_float()

java.lang.Float meshlib.std_variant_float_MR_Vector3f.get_float ( )

Returns the element 0, of type float, read-only. If it's not the active element, returns null. The reference to this object might be preserved as the return value.

Calls MR_std_variant_float_MR_Vector3f_get_float().

◆ get_float_mut()

java.lang.foreign.MemorySegment meshlib.std_variant_float_MR_Vector3f.get_float_mut ( )

Returns the element 0, of type float, mutable. If it's not the active element, returns null. The reference to this object might be preserved as the return value.

Calls MR_std_variant_float_MR_Vector3f_get_float_mut(). Some types are raw C types, see the C bindings for the details.

◆ get_MR_Vector3f()

meshlib.Vector3f meshlib.std_variant_float_MR_Vector3f.get_MR_Vector3f ( )

Returns the element 1, of type MR::Vector3f, read-only. If it's not the active element, returns null. The reference to this object might be preserved as the return value.

Calls MR_std_variant_float_MR_Vector3f_get_MR_Vector3f().

◆ get_MR_Vector3f_mut()

meshlib.Vector3f meshlib.std_variant_float_MR_Vector3f.get_MR_Vector3f_mut ( )

Returns the element 1, of type MR::Vector3f, mutable. If it's not the active element, returns null. The reference to this object might be preserved as the return value.

Calls MR_std_variant_float_MR_Vector3f_get_MR_Vector3f_mut().

◆ index()

long meshlib.std_variant_float_MR_Vector3f.index ( )

Returns the index of the stored element type. In rare cases may return -1 if this variant is "valueless by exception".

Calls MR_std_variant_float_MR_Vector3f_index().


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