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

Public Member Functions

 expected_std_vector_MR_EdgePoint_MR_PathError (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 expected_std_vector_MR_EdgePoint_MR_PathError ()
 expected_std_vector_MR_EdgePoint_MR_PathError (meshlib.expected_std_vector_MR_EdgePoint_MR_PathError other)
void assignFromAnother (meshlib.expected_std_vector_MR_EdgePoint_MR_PathError other)
boolean success ()
meshlib.std_vector_MR_EdgePoint value ()
meshlib.PathError error ()
meshlib.std_vector_MR_EdgePoint value_mut ()
java.lang.foreign.MemorySegment error_mut ()
meshlib.std_vector_MR_EdgePoint valueOrThrow ()
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 either a std::vector<MR::EdgePoint> that represents success or a MR::PathError that represents an error.

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

Constructor & Destructor Documentation

◆ expected_std_vector_MR_EdgePoint_MR_PathError() [1/3]

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

◆ expected_std_vector_MR_EdgePoint_MR_PathError() [2/3]

meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.expected_std_vector_MR_EdgePoint_MR_PathError ( )

Constructs an empty (default-constructed) instance.

Calls MR_expected_std_vector_MR_EdgePoint_MR_PathError_DefaultConstruct().

◆ expected_std_vector_MR_EdgePoint_MR_PathError() [3/3]

meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.expected_std_vector_MR_EdgePoint_MR_PathError ( meshlib.expected_std_vector_MR_EdgePoint_MR_PathError 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_expected_std_vector_MR_EdgePoint_MR_PathError_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

void meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.assignFromAnother ( meshlib.expected_std_vector_MR_EdgePoint_MR_PathError 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_expected_std_vector_MR_EdgePoint_MR_PathError_AssignFromAnother().

◆ error()

meshlib.PathError meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.error ( )

If this instance represents an error, returns the stored MR::PathError. Otherwise null. The reference to this object might be preserved as the return value.

Calls MR_expected_std_vector_MR_EdgePoint_MR_PathError_error().

◆ error_mut()

java.lang.foreign.MemorySegment meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.error_mut ( )

If this instance represents an error, returns the stored MR::PathError. Otherwise null. This version returns a mutable pointer. The reference to this object might be preserved as the return value.

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

◆ success()

boolean meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.success ( )

Returns true if this instance represents success, or false if it represents an error.

Calls MR_expected_std_vector_MR_EdgePoint_MR_PathError_success().

◆ value()

meshlib.std_vector_MR_EdgePoint meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.value ( )

If this instance represents success, returns the stored std::vector<MR::EdgePoint>. Otherwise null. The reference to this object might be preserved as the return value.

Calls MR_expected_std_vector_MR_EdgePoint_MR_PathError_value().

◆ value_mut()

meshlib.std_vector_MR_EdgePoint meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.value_mut ( )

If this instance represents success, returns the stored std::vector<MR::EdgePoint>. Otherwise null. This version returns a mutable pointer. The reference to this object might be preserved as the return value.

Calls MR_expected_std_vector_MR_EdgePoint_MR_PathError_value_mut().

◆ valueOrThrow()

meshlib.std_vector_MR_EdgePoint meshlib.expected_std_vector_MR_EdgePoint_MR_PathError.valueOrThrow ( )

The value, or throws UnexpectedResultException with the error. The returned reference keeps this object alive. The wrappers of the functions returning this type do this automatically.


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