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

Go to the source code of this file.

Typedefs

typedef struct MR_HistoryAction MR_HistoryAction
 
typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_ChangeNameAction MR_ChangeNameAction
 

Functions

MRC_API MR_ChangeNameActionMR_ChangeNameAction_ConstructFromAnother (MR_PassBy _other_pass_by, MR_ChangeNameAction *_other)
 
MRC_API const MR_ChangeNameActionMR_ChangeNameAction_OffsetPtr (const MR_ChangeNameAction *ptr, ptrdiff_t i)
 
MRC_API MR_ChangeNameActionMR_ChangeNameAction_OffsetMutablePtr (MR_ChangeNameAction *ptr, ptrdiff_t i)
 
MRC_API const MR_HistoryActionMR_ChangeNameAction_UpcastTo_MR_HistoryAction (const MR_ChangeNameAction *object)
 
MRC_API MR_HistoryActionMR_ChangeNameAction_MutableUpcastTo_MR_HistoryAction (MR_ChangeNameAction *object)
 Upcasts an instance of MR::ChangeNameAction to its base class MR::HistoryAction.
 
MRC_API MR_ChangeNameActionMR_ChangeNameAction_Construct (const char *actionName, const char *actionName_end, MR_PassBy obj_pass_by, MR_std_shared_ptr_MR_Object *obj)
 
MRC_API void MR_ChangeNameAction_Destroy (const MR_ChangeNameAction *_this)
 Destroys a heap-allocated instance of MR_ChangeNameAction. Does nothing if the pointer is null.
 
MRC_API void MR_ChangeNameAction_DestroyArray (const MR_ChangeNameAction *_this)
 Destroys a heap-allocated array of MR_ChangeNameAction. Does nothing if the pointer is null.
 
MRC_API MR_ChangeNameActionMR_ChangeNameAction_AssignFromAnother (MR_ChangeNameAction *_this, MR_PassBy _other_pass_by, MR_ChangeNameAction *_other)
 
MRC_API MR_std_stringMR_ChangeNameAction_name (const MR_ChangeNameAction *_this)
 
MRC_API void MR_ChangeNameAction_action (MR_ChangeNameAction *_this, MR_HistoryAction_Type _1)
 
MRC_API MR_uint64_t MR_ChangeNameAction_heapBytes (const MR_ChangeNameAction *_this)
 

Typedef Documentation

◆ MR_ChangeNameAction

This action to undo/redo the change of object name Generated from class MR::ChangeNameAction. Base classes: Direct: (non-virtual) MR::HistoryAction Supported MR_PassBy modes: MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_HistoryAction

◆ MR_std_shared_ptr_MR_Object

◆ MR_std_string

typedef struct MR_std_string MR_std_string

Function Documentation

◆ MR_ChangeNameAction_action()

MRC_API void MR_ChangeNameAction_action ( MR_ChangeNameAction * _this,
MR_HistoryAction_Type _1 )

Generated from method MR::ChangeNameAction::action. Parameter _this can not be null. It is a single object.

◆ MR_ChangeNameAction_AssignFromAnother()

MRC_API MR_ChangeNameAction * MR_ChangeNameAction_AssignFromAnother ( MR_ChangeNameAction * _this,
MR_PassBy _other_pass_by,
MR_ChangeNameAction * _other )

Generated from method MR::ChangeNameAction::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_ChangeNameAction_Construct()

MRC_API MR_ChangeNameAction * MR_ChangeNameAction_Construct ( const char * actionName,
const char * actionName_end,
MR_PassBy obj_pass_by,
MR_std_shared_ptr_MR_Object * obj )

construct before giving new name to the object Generated from constructor MR::ChangeNameAction::ChangeNameAction. Parameter actionName can not be null. If actionName_end is null, then actionName is assumed to be null-terminated. The reference to the parameter actionName might be preserved in the constructed object. The reference to the parameter obj might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ChangeNameAction_Destroy() to free it when you're done using it.

◆ MR_ChangeNameAction_ConstructFromAnother()

MRC_API MR_ChangeNameAction * MR_ChangeNameAction_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_ChangeNameAction * _other )

Generated from constructor MR::ChangeNameAction::ChangeNameAction. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_ChangeNameAction_Destroy() to free it when you're done using it.

◆ MR_ChangeNameAction_Destroy()

MRC_API void MR_ChangeNameAction_Destroy ( const MR_ChangeNameAction * _this)

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

◆ MR_ChangeNameAction_DestroyArray()

MRC_API void MR_ChangeNameAction_DestroyArray ( const MR_ChangeNameAction * _this)

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

◆ MR_ChangeNameAction_heapBytes()

MRC_API MR_uint64_t MR_ChangeNameAction_heapBytes ( const MR_ChangeNameAction * _this)

Generated from method MR::ChangeNameAction::heapBytes. Parameter _this can not be null. It is a single object.

◆ MR_ChangeNameAction_MutableUpcastTo_MR_HistoryAction()

MRC_API MR_HistoryAction * MR_ChangeNameAction_MutableUpcastTo_MR_HistoryAction ( MR_ChangeNameAction * object)

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

◆ MR_ChangeNameAction_name()

MRC_API MR_std_string * MR_ChangeNameAction_name ( const MR_ChangeNameAction * _this)

Generated from method MR::ChangeNameAction::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_ChangeNameAction_OffsetMutablePtr()

MRC_API MR_ChangeNameAction * MR_ChangeNameAction_OffsetMutablePtr ( MR_ChangeNameAction * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ChangeNameAction_OffsetPtr()

MRC_API const MR_ChangeNameAction * MR_ChangeNameAction_OffsetPtr ( const MR_ChangeNameAction * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ChangeNameAction_UpcastTo_MR_HistoryAction()

MRC_API const MR_HistoryAction * MR_ChangeNameAction_UpcastTo_MR_HistoryAction ( const MR_ChangeNameAction * object)

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