载入中...
搜索中...
未找到
eve::editor::EditorTargetCoordinator类 参考final

Coordinates editable targets, per-target histories and domain commands. 更多...

#include <EditorTargetCoordinator.h>

类 eve::editor::EditorTargetCoordinator 继承关系图:
eve::editing::IEditingCommandRegistry

类

struct  Impl
 
struct  TargetSummary
 Discovery metadata for one registered editable target. 更多...
 

Public 成员函数

 EditorTargetCoordinator (EditorCommandService &commands)
 Editor target coordinator.
 
 ~EditorTargetCoordinator ()
 Editor target coordinator.
 
 EditorTargetCoordinator (const EditorTargetCoordinator &)=delete
 
EditorTargetCoordinator & operator= (const EditorTargetCoordinator &)=delete
 
eve::editing::Result< void > registerPlannedCommand (eve::editing::EditingCommandDescriptor descriptor, eve::editing::EditingCommandPlanner planner) override
 Registers planned command.
 
eve::editing::Result< std::size_t > unregisterOwner (const std::string &ownerModule) override
 Unregisters owner.
 
Result< void > registerTarget (IEditableTarget &target)
 Registers target.
 
Result< void > registerSharedHistoryTarget (IEditableTarget &target, IEditorTransactionBackend &backend)
 Register a borrowed target and its existing history, rejecting conflicting registrations. @ownership Both arguments must outlive registration; unregister before either is destroyed. @thread Owner thread only; no callbacks. Existing history is preserved.
 
Result< void > unregisterSharedHistoryTarget (IEditableTarget &target, IEditorTransactionBackend &backend)
 Remove only this exact borrowed target/backend registration; absent or replaced entries are NoOp. @thread Owner thread only. Call before destroying either borrowed object.
 
std::weak_ptr< void > lifetime () const
 Weak owner-thread lifetime sentinel; expires before coordinator teardown.
 
Result< void > unregisterTarget (const TargetId &target)
 Unregisters target.
 
Result< void > bind (EditorSession &session, const TargetId &target)
 Binds .
 
Result< EditorValue > inspect (const TargetId &target) const
 Inspect.
 
Result< TransactionReceipt > undo (const TargetId &target)
 Undo.
 
Result< TransactionReceipt > redo (const TargetId &target)
 Redo.
 
std::vector< TargetSummary > targets () const
 Enumerate every registered target, ordered by id.
 
- Public 成员函数 继承自 eve::editing::IEditingCommandRegistry
virtual ~IEditingCommandRegistry ()=default
 Releases IEditingCommandRegistry resources.
 

友元

class EditorSession
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::editing::IEditingCommandRegistry
static constexpr const char * capabilityName = "IEditingCommandRegistry"
 

详细描述

Coordinates editable targets, per-target histories and domain commands.

The coordinator knows no concrete domain target. Domain satellites register planners through IEditingCommandRegistry; targets remain borrowed. @thread Owner-thread only.

在文件 EditorTargetCoordinator.h 第 26 行定义.

构造及析构函数说明

◆ EditorTargetCoordinator() [1/2]

eve::editor::EditorTargetCoordinator::EditorTargetCoordinator ( EditorCommandService &  commands)
explicit

Editor target coordinator.

在文件 EditorTargetCoordinator.cpp 第 111 行定义.

◆ ~EditorTargetCoordinator()

eve::editor::EditorTargetCoordinator::~EditorTargetCoordinator ( )

Editor target coordinator.

在文件 EditorTargetCoordinator.cpp 第 113 行定义.

引用了 owner , 以及 session.

◆ EditorTargetCoordinator() [2/2]

eve::editor::EditorTargetCoordinator::EditorTargetCoordinator ( const EditorTargetCoordinator &  )
delete

成员函数说明

◆ bind()

Result< void > eve::editor::EditorTargetCoordinator::bind ( EditorSession &  session,
const TargetId &  target 
)

Binds .

在文件 EditorTargetCoordinator.cpp 第 219 行定义.

引用了 selected, session, target , 以及 eve::UuidIdAdapter< Tag >::value().

◆ inspect()

Result< EditorValue > eve::editor::EditorTargetCoordinator::inspect ( const TargetId &  target) const

◆ lifetime()

std::weak_ptr< void > eve::editor::EditorTargetCoordinator::lifetime ( ) const

Weak owner-thread lifetime sentinel; expires before coordinator teardown.

在文件 EditorTargetCoordinator.cpp 第 184 行定义.

◆ operator=()

EditorTargetCoordinator & eve::editor::EditorTargetCoordinator::operator= ( const EditorTargetCoordinator &  )
delete

◆ redo()

Result< TransactionReceipt > eve::editor::EditorTargetCoordinator::redo ( const TargetId &  target)

◆ registerPlannedCommand()

◆ registerSharedHistoryTarget()

Result< void > eve::editor::EditorTargetCoordinator::registerSharedHistoryTarget ( IEditableTarget &  target,
IEditorTransactionBackend &  backend 
)

Register a borrowed target and its existing history, rejecting conflicting registrations. @ownership Both arguments must outlive registration; unregister before either is destroyed. @thread Owner thread only; no callbacks. Existing history is preserved.

在文件 EditorTargetCoordinator.cpp 第 186 行定义.

引用了 backend, registerTarget() , 以及 target.

◆ registerTarget()

Result< void > eve::editor::EditorTargetCoordinator::registerTarget ( IEditableTarget &  target)

Registers target.

在文件 EditorTargetCoordinator.cpp 第 163 行定义.

引用了 found, id, eve::editing::noOp(), target , 以及 value.

被这些函数引用 eve::scene_editor::SceneEditorSession::Impl::Impl() , 以及 registerSharedHistoryTarget().

◆ targets()

std::vector< EditorTargetCoordinator::TargetSummary > eve::editor::EditorTargetCoordinator::targets ( ) const

Enumerate every registered target, ordered by id.

Discovery exists because a project can register targets the automation host never created (a script binds its own tile layer, height map or voxel world), and inspect/execute require the id up front.

返回
One summary per registered target; never null entries. @thread Owner-thread only.

在文件 EditorTargetCoordinator.cpp 第 259 行定义.

引用了 descriptor, eve::editor::EditorTargetCoordinator::TargetSummary::generation, eve::editor::EditorTargetCoordinator::TargetSummary::id, eve::editor::EditorTargetCoordinator::TargetSummary::revision , 以及 eve::editor::EditorTargetCoordinator::TargetSummary::type.

◆ undo()

Result< TransactionReceipt > eve::editor::EditorTargetCoordinator::undo ( const TargetId &  target)

◆ unregisterOwner()

eve::editing::Result< std::size_t > eve::editor::EditorTargetCoordinator::unregisterOwner ( const std::string &  ownerModule)
overridevirtual

Unregisters owner.

实现了 eve::editing::IEditingCommandRegistry.

在文件 EditorTargetCoordinator.cpp 第 155 行定义.

引用了 removed.

◆ unregisterSharedHistoryTarget()

Result< void > eve::editor::EditorTargetCoordinator::unregisterSharedHistoryTarget ( IEditableTarget &  target,
IEditorTransactionBackend &  backend 
)

Remove only this exact borrowed target/backend registration; absent or replaced entries are NoOp. @thread Owner thread only. Call before destroying either borrowed object.

在文件 EditorTargetCoordinator.cpp 第 198 行定义.

引用了 backend, eve::editing::noOp(), target , 以及 unregisterTarget().

◆ unregisterTarget()

Result< void > eve::editor::EditorTargetCoordinator::unregisterTarget ( const TargetId &  target)

Unregisters target.

在文件 EditorTargetCoordinator.cpp 第 205 行定义.

引用了 binding, eve::editing::noOp(), selected, session, sessions , 以及 target.

被这些函数引用 unregisterSharedHistoryTarget().

友元及相关函数文档

◆ EditorSession

friend class EditorSession
friend

在文件 EditorTargetCoordinator.h 第 88 行定义.


该类的文档由以下文件生成: