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

Classes

interface  Fn

Public Member Functions

 std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId ()
 std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId (meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId other)
void assignFromAnother (meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId other)
boolean has_value ()
void reset ()
void call (meshlib.GraphEdgeId _1, meshlib.GraphEdgeId _2)
void assignFn (Fn func)
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 ()

Static Public Member Functions

static meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId of (Fn func)

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 a functor of type: void(MR::GraphEdgeId, MR::GraphEdgeId). Possibly stateful.

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

Constructor & Destructor Documentation

◆ std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId() [1/3]

meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId ( 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_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId() [2/3]

meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId ( )

Constructs an empty (default-constructed) instance.

Calls MR_std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_DefaultConstruct().

◆ std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId() [3/3]

meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId ( meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId 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_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_ConstructFromAnother().

Member Function Documentation

◆ assignFn()

void meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.assignFn ( Fn func)

Replaces the stored callable with a Java one.

Calls MR_std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_AssignEx().

◆ assignFromAnother()

void meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.assignFromAnother ( meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId 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_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_AssignFromAnother().

◆ call()

void meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.call ( meshlib.GraphEdgeId _1,
meshlib.GraphEdgeId _2 )

Calls the stored callable.

Calls MR_std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_call().

◆ has_value()

boolean meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.has_value ( )

Returns true if this instance stores a callable, as opposed to being null.

Calls MR_std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_has_value().

◆ of()

meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.of ( Fn func)
static

Constructs an instance holding a Java callable. The copies of the instance share it. An exception thrown by the callable is rethrown by the wrapper that called into C.

Calls MR_std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_ConstructEx().

◆ reset()

void meshlib.std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId.reset ( )

Destroys the stored callable, making this instance null.

Calls MR_std_function_void_from_MR_GraphEdgeId_MR_GraphEdgeId_reset().


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