载入中...
搜索中...
未找到
eve::statepatch::PatchBatch类 参考

Ordered collection of set and remove operations committed atomically. 更多...

#include <StatePatch.h>

Public 成员函数

bool set (const std::string &subject, const std::string &key, const std::string &jsonValue)
 Appends an unconditional set operation.
 
bool setExpected (const std::string &subject, const std::string &key, const std::string &jsonValue, const std::string &expectedJson)
 Appends a set operation guarded by an expected current JSON value.
 
bool remove (const std::string &subject, const std::string &key)
 Appends an unconditional remove operation.
 
bool removeExpected (const std::string &subject, const std::string &key, const std::string &expectedJson)
 Appends a remove operation guarded by an expected current JSON value.
 
void clear ()
 Removes every operation and resets the latest result.
 
int size () const
 Returns the number of queued operations.
 
const PatchResult & result () const
 Returns the result of the most recent commit attempt.
 

友元

class Store
 

详细描述

Ordered collection of set and remove operations committed atomically.

在文件 StatePatch.h 第 86 行定义.

成员函数说明

◆ clear()

void eve::statepatch::PatchBatch::clear ( )

Removes every operation and resets the latest result.

在文件 StatePatch.cpp 第 188 行定义.

◆ remove()

bool eve::statepatch::PatchBatch::remove ( const std::string &  subject,
const std::string &  key 
)

Appends an unconditional remove operation.

在文件 StatePatch.cpp 第 176 行定义.

引用了 key , 以及 subject.

◆ removeExpected()

bool eve::statepatch::PatchBatch::removeExpected ( const std::string &  subject,
const std::string &  key,
const std::string &  expectedJson 
)

Appends a remove operation guarded by an expected current JSON value.

在文件 StatePatch.cpp 第 181 行定义.

引用了 key, subject , 以及 valid.

◆ result()

const PatchResult & eve::statepatch::PatchBatch::result ( ) const

Returns the result of the most recent commit attempt.

在文件 StatePatch.cpp 第 195 行定义.

◆ set()

bool eve::statepatch::PatchBatch::set ( const std::string &  subject,
const std::string &  key,
const std::string &  jsonValue 
)

Appends an unconditional set operation.

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

引用了 key, subject, valid , 以及 value.

◆ setExpected()

bool eve::statepatch::PatchBatch::setExpected ( const std::string &  subject,
const std::string &  key,
const std::string &  jsonValue,
const std::string &  expectedJson 
)

Appends a set operation guarded by an expected current JSON value.

在文件 StatePatch.cpp 第 162 行定义.

引用了 error, key, subject , 以及 value.

◆ size()

int eve::statepatch::PatchBatch::size ( ) const

Returns the number of queued operations.

在文件 StatePatch.cpp 第 193 行定义.

友元及相关函数文档

◆ Store

friend class Store
friend

在文件 StatePatch.h 第 105 行定义.


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