MeshLib C Docs
Loading...
Searching...
No Matches
MRCombinedHistoryAction.h File Reference
#include <MRCMesh/MRHistoryAction.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_HistoryAction MR_HistoryAction
 
typedef struct MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_std_shared_ptr_MR_HistoryAction MR_std_vector_std_shared_ptr_MR_HistoryAction
 
typedef struct MR_CombinedHistoryAction MR_CombinedHistoryAction
 

Functions

MRC_API MR_CombinedHistoryActionMR_CombinedHistoryAction_ConstructFromAnother (MR_PassBy _other_pass_by, MR_CombinedHistoryAction *_other)
 
MRC_API const MR_CombinedHistoryActionMR_CombinedHistoryAction_OffsetPtr (const MR_CombinedHistoryAction *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_CombinedHistoryActionMR_CombinedHistoryAction_OffsetMutablePtr (MR_CombinedHistoryAction *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API const MR_HistoryActionMR_CombinedHistoryAction_UpcastTo_MR_HistoryAction (const MR_CombinedHistoryAction *object)
 
MRC_API MR_HistoryActionMR_CombinedHistoryAction_MutableUpcastTo_MR_HistoryAction (MR_CombinedHistoryAction *object)
 Upcasts an instance of MR::CombinedHistoryAction to its base class MR::HistoryAction.
 
MRC_API MR_CombinedHistoryActionMR_CombinedHistoryAction_Construct (const MR_std_string *name, const MR_std_vector_std_shared_ptr_MR_HistoryAction *actions)
 
MRC_API void MR_CombinedHistoryAction_Destroy (const MR_CombinedHistoryAction *_this)
 Destroys a heap-allocated instance of MR_CombinedHistoryAction. Does nothing if the pointer is null.
 
MRC_API void MR_CombinedHistoryAction_DestroyArray (const MR_CombinedHistoryAction *_this)
 Destroys a heap-allocated array of MR_CombinedHistoryAction. Does nothing if the pointer is null.
 
MRC_API MR_CombinedHistoryActionMR_CombinedHistoryAction_AssignFromAnother (MR_CombinedHistoryAction *_this, MR_PassBy _other_pass_by, MR_CombinedHistoryAction *_other)
 
MRC_API MR_std_stringMR_CombinedHistoryAction_name (const MR_CombinedHistoryAction *_this)
 
MRC_API void MR_CombinedHistoryAction_action (MR_CombinedHistoryAction *_this, MR_HistoryAction_Type type)
 
MRC_API MR_std_vector_std_shared_ptr_MR_HistoryActionMR_CombinedHistoryAction_getStack (MR_CombinedHistoryAction *_this)
 
MRC_API const MR_std_vector_std_shared_ptr_MR_HistoryActionMR_CombinedHistoryAction_getStack_const (const MR_CombinedHistoryAction *_this)
 
MRC_API bool MR_CombinedHistoryAction_filter (MR_CombinedHistoryAction *_this, MR_PassBy filteringCondition_pass_by, MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref *filteringCondition)
 
MRC_API bool MR_CombinedHistoryAction_empty (const MR_CombinedHistoryAction *_this)
 
MRC_API MR_uint64_t MR_CombinedHistoryAction_heapBytes (const MR_CombinedHistoryAction *_this)
 

Typedef Documentation

◆ MR_CombinedHistoryAction

History action for combine some history actions Generated from class MR::CombinedHistoryAction. Base classes: Direct: (non-virtual) MR::HistoryAction

◆ MR_HistoryAction

◆ MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_std_shared_ptr_MR_HistoryAction

Function Documentation

◆ MR_CombinedHistoryAction_action()

MRC_API void MR_CombinedHistoryAction_action ( MR_CombinedHistoryAction * _this,
MR_HistoryAction_Type type )

Generated from a method of class MR::CombinedHistoryAction named action. Parameter _this can not be null. It is a single object.

◆ MR_CombinedHistoryAction_AssignFromAnother()

MRC_API MR_CombinedHistoryAction * MR_CombinedHistoryAction_AssignFromAnother ( MR_CombinedHistoryAction * _this,
MR_PassBy _other_pass_by,
MR_CombinedHistoryAction * _other )

Generated from a method of class MR::CombinedHistoryAction named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_CombinedHistoryAction_Construct()

MRC_API MR_CombinedHistoryAction * MR_CombinedHistoryAction_Construct ( const MR_std_string * name,
const MR_std_vector_std_shared_ptr_MR_HistoryAction * actions )

Will call action() for each actions in given order (undo in reverse, redo in forward) Generated from a constructor of class MR::CombinedHistoryAction. Parameter name can not be null. It is a single object. Parameter actions can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_CombinedHistoryAction_Destroy() to free it when you're done using it.

◆ MR_CombinedHistoryAction_ConstructFromAnother()

MRC_API MR_CombinedHistoryAction * MR_CombinedHistoryAction_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_CombinedHistoryAction * _other )

Generated from a constructor of class MR::CombinedHistoryAction. Never returns null. Returns an instance allocated on the heap! Must call MR_CombinedHistoryAction_Destroy() to free it when you're done using it.

◆ MR_CombinedHistoryAction_Destroy()

MRC_API void MR_CombinedHistoryAction_Destroy ( const MR_CombinedHistoryAction * _this)

Destroys a heap-allocated instance of MR_CombinedHistoryAction. Does nothing if the pointer is null.

◆ MR_CombinedHistoryAction_DestroyArray()

MRC_API void MR_CombinedHistoryAction_DestroyArray ( const MR_CombinedHistoryAction * _this)

Destroys a heap-allocated array of MR_CombinedHistoryAction. Does nothing if the pointer is null.

◆ MR_CombinedHistoryAction_empty()

MRC_API bool MR_CombinedHistoryAction_empty ( const MR_CombinedHistoryAction * _this)

Generated from a method of class MR::CombinedHistoryAction named empty. Parameter _this can not be null. It is a single object.

◆ MR_CombinedHistoryAction_filter()

MRC_API bool MR_CombinedHistoryAction_filter ( MR_CombinedHistoryAction * _this,
MR_PassBy filteringCondition_pass_by,
MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref * filteringCondition )

Remove some actions according to condition inside combined actions. Do deep filtering. Generated from a method of class MR::CombinedHistoryAction named filter. Parameter _this can not be null. It is a single object.

◆ MR_CombinedHistoryAction_getStack()

MRC_API MR_std_vector_std_shared_ptr_MR_HistoryAction * MR_CombinedHistoryAction_getStack ( MR_CombinedHistoryAction * _this)

Generated from a method of class MR::CombinedHistoryAction named getStack. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_CombinedHistoryAction_getStack_const()

MRC_API const MR_std_vector_std_shared_ptr_MR_HistoryAction * MR_CombinedHistoryAction_getStack_const ( const MR_CombinedHistoryAction * _this)

Generated from a method of class MR::CombinedHistoryAction named getStack. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_CombinedHistoryAction_heapBytes()

MRC_API MR_uint64_t MR_CombinedHistoryAction_heapBytes ( const MR_CombinedHistoryAction * _this)

Generated from a method of class MR::CombinedHistoryAction named heapBytes. Parameter _this can not be null. It is a single object.

◆ MR_CombinedHistoryAction_MutableUpcastTo_MR_HistoryAction()

MRC_API MR_HistoryAction * MR_CombinedHistoryAction_MutableUpcastTo_MR_HistoryAction ( MR_CombinedHistoryAction * object)

Upcasts an instance of MR::CombinedHistoryAction to its base class MR::HistoryAction.

◆ MR_CombinedHistoryAction_name()

MRC_API MR_std_string * MR_CombinedHistoryAction_name ( const MR_CombinedHistoryAction * _this)

Generated from a method of class MR::CombinedHistoryAction named name. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy() to free it when you're done using it.

◆ MR_CombinedHistoryAction_OffsetMutablePtr()

MRC_API MR_CombinedHistoryAction * MR_CombinedHistoryAction_OffsetMutablePtr ( MR_CombinedHistoryAction * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_CombinedHistoryAction_OffsetPtr()

MRC_API const MR_CombinedHistoryAction * MR_CombinedHistoryAction_OffsetPtr ( const MR_CombinedHistoryAction * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_CombinedHistoryAction_UpcastTo_MR_HistoryAction()

MRC_API const MR_HistoryAction * MR_CombinedHistoryAction_UpcastTo_MR_HistoryAction ( const MR_CombinedHistoryAction * object)

Upcasts an instance of MR::CombinedHistoryAction to its base class MR::HistoryAction. This version is acting on mutable pointers.