MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::CombinedHistoryAction Struct Reference
Inheritance diagram for meshlib::CombinedHistoryAction:

Public Member Functions

auto name () const -> meshlib::Owned< meshlib::std_string >
void set_name (name:&str)
void action (type:meshlib::HistoryAction_Type)
auto get_stack_mut () -> &mut meshlib::std_vector_std_shared_ptr_MR_HistoryAction
auto get_stack () const -> &meshlib::std_vector_std_shared_ptr_MR_HistoryAction
auto filter (filteringCondition:&meshlib::std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref) -> bool
auto empty () const -> bool
auto get_dynamic_name () const -> meshlib::Owned< meshlib::std_optional_std_string >
auto heap_bytes () const -> usize
auto upcast_to_history_action () const -> &meshlib::HistoryAction
auto upcast_to_history_action_mut () -> &mut meshlib::HistoryAction

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::CombinedHistoryAction) -> meshlib::Owned< meshlib::CombinedHistoryAction >
static auto construct (name:&str, actions:&meshlib::std_vector_std_shared_ptr_MR_HistoryAction, dynNameGetter:Option<&meshlib::std_function_std_string >) -> meshlib::Owned< meshlib::CombinedHistoryAction >
static auto static_downcast_from_history_action (object:&meshlib::HistoryAction) -> &Self
static auto static_downcast_from_history_action_mut (object:&mut meshlib::HistoryAction) -> &mut Self
static auto dynamic_downcast_from_history_action (object:&meshlib::HistoryAction) -> Option<&Self >
static auto dynamic_downcast_from_history_action_mut (object:&mut meshlib::HistoryAction) -> Option<&mut Self >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

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

Generated from class MR::CombinedHistoryAction. Heap-allocated instances are held in Owned<CombinedHistoryAction>.

Member Function Documentation

◆ action()

void meshlib::CombinedHistoryAction::action ( type:meshlib::HistoryAction_Type )

Generated from method MR::CombinedHistoryAction::action.

Calls MR_CombinedHistoryAction_action().

◆ construct()

auto meshlib::CombinedHistoryAction::construct ( name:& str,
actions:&meshlib::std_vector_std_shared_ptr_MR_HistoryAction ,
dynNameGetter:Option<&meshlib::std_function_std_string >  ) -> meshlib::Owned< meshlib::CombinedHistoryAction >
static

Will call action() for each actions in given order (undo in reverse, redo in forward) Generated from constructor MR::CombinedHistoryAction::CombinedHistoryAction.

Calls MR_CombinedHistoryAction_Construct(). The reference to the parameter name might be preserved in the constructed object. The reference to the parameter actions might be preserved in the constructed object. The reference to the parameter dynNameGetter might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::CombinedHistoryAction::construct_from_another ( _other:&meshlib::CombinedHistoryAction ) -> meshlib::Owned< meshlib::CombinedHistoryAction >
static

Generated from constructor MR::CombinedHistoryAction::CombinedHistoryAction.

Calls MR_CombinedHistoryAction_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ dynamic_downcast_from_history_action()

auto meshlib::CombinedHistoryAction::dynamic_downcast_from_history_action ( object:&meshlib::HistoryAction ) -> Option<&Self >
static

Dynamic downcast from the base class MR::HistoryAction. Returns None if the object isn't actually a CombinedHistoryAction.

Calls MR_CombinedHistoryAction_DynamicDowncastFrom_MR_HistoryAction().

◆ dynamic_downcast_from_history_action_mut()

auto meshlib::CombinedHistoryAction::dynamic_downcast_from_history_action_mut ( object:&mut meshlib::HistoryAction ) -> Option<&mut Self >
static

Dynamic downcast from the base class MR::HistoryAction. Returns None if the object isn't actually a CombinedHistoryAction.

Calls MR_CombinedHistoryAction_MutableDynamicDowncastFrom_MR_HistoryAction().

◆ empty()

auto meshlib::CombinedHistoryAction::empty ( ) const -> bool

Generated from method MR::CombinedHistoryAction::empty.

Calls MR_CombinedHistoryAction_empty().

◆ filter()

auto meshlib::CombinedHistoryAction::filter ( filteringCondition:&meshlib::std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref ) -> bool

Remove some actions according to condition inside combined actions. Do deep filtering. Generated from method MR::CombinedHistoryAction::filter.

Calls MR_CombinedHistoryAction_filter().

◆ get_dynamic_name()

auto meshlib::CombinedHistoryAction::get_dynamic_name ( ) const -> meshlib::Owned< meshlib::std_optional_std_string >

For actions with a dynamic name getter calls the getter and returns the dynamic name; otherwise returns std::nullopt. Generated from method MR::CombinedHistoryAction::getDynamicName.

Calls MR_CombinedHistoryAction_getDynamicName().

◆ get_stack()

auto meshlib::CombinedHistoryAction::get_stack ( ) const -> &meshlib::std_vector_std_shared_ptr_MR_HistoryAction

Generated from method MR::CombinedHistoryAction::getStack.

Calls MR_CombinedHistoryAction_getStack().

◆ get_stack_mut()

auto meshlib::CombinedHistoryAction::get_stack_mut ( ) -> &mut meshlib::std_vector_std_shared_ptr_MR_HistoryAction

Generated from method MR::CombinedHistoryAction::getStack.

Calls MR_CombinedHistoryAction_getStack_mut().

◆ heap_bytes()

auto meshlib::CombinedHistoryAction::heap_bytes ( ) const -> usize

Generated from method MR::CombinedHistoryAction::heapBytes.

Calls MR_CombinedHistoryAction_heapBytes().

◆ name()

auto meshlib::CombinedHistoryAction::name ( ) const -> meshlib::Owned< meshlib::std_string >

Generated from method MR::CombinedHistoryAction::name.

Calls MR_CombinedHistoryAction_name().

◆ set_name()

void meshlib::CombinedHistoryAction::set_name ( name:& str)

Generated from method MR::CombinedHistoryAction::setName.

Calls MR_CombinedHistoryAction_setName().

◆ static_downcast_from_history_action()

auto meshlib::CombinedHistoryAction::static_downcast_from_history_action ( object:&meshlib::HistoryAction ) -> &Self
static

Static downcast from the base class MR::HistoryAction.

Calls MR_CombinedHistoryAction_StaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a CombinedHistoryAction.

Note
This function is unsafe.

◆ static_downcast_from_history_action_mut()

auto meshlib::CombinedHistoryAction::static_downcast_from_history_action_mut ( object:&mut meshlib::HistoryAction ) -> &mut Self
static

Static downcast from the base class MR::HistoryAction.

Calls MR_CombinedHistoryAction_MutableStaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a CombinedHistoryAction.

Note
This function is unsafe.

◆ upcast_to_history_action()

auto meshlib::CombinedHistoryAction::upcast_to_history_action ( ) const -> &meshlib::HistoryAction

Upcasts to the base class MR::HistoryAction.

Calls MR_CombinedHistoryAction_UpcastTo_MR_HistoryAction().

◆ upcast_to_history_action_mut()

auto meshlib::CombinedHistoryAction::upcast_to_history_action_mut ( ) -> &mut meshlib::HistoryAction

Upcasts to the base class MR::HistoryAction.

Calls MR_CombinedHistoryAction_MutableUpcastTo_MR_HistoryAction().


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