载入中...
搜索中...
未找到
CrowdUpdatePlan.cpp
浏览该文件的文档.
13Result<Crowd::AgentUpdatePlan> Crowd::prepareAgentUpdates(const AgentUpdateBatch& batch) const try {
43Result<AgentBatchReceipt> Crowd::commitAgentUpdates(AgentUpdatePlan&& plan, std::span<const std::uint8_t> selection) {
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Move-only owning preparation token; contains values and owner identity, never a Crowd pointer....
Definition Crowd.h:565
~AgentUpdatePlan()
Release prepared values without changing agents.
AgentUpdatePlan()
Construct an empty, uncommittable token.
Result< AgentBatchReceipt > commitAgentUpdates(AgentUpdatePlan &&plan, std::span< const std::uint8_t > selection)
Validate all identities then apply selected prepared updates without allocating success-path workspac...
Definition CrowdUpdatePlan.cpp:43
Definition Crowd.cpp:14
bool validAgentUpdate(const AgentUpdate &update)
Definition CrowdBatch.cpp:41
@ InvalidArgument
@ NotFound
@ Failed
@ Conflict
Caller-built atomic update batch; duplicate agent references are rejected.
Definition Crowd.h:173
Data(std::uint64_t identity)
Definition CrowdUpdatePlan.cpp:5
std::vector< AgentUpdate > updates
Definition CrowdUpdatePlan.cpp:7