|
Ditto 2.0.2
|
Public Member Functions | |
| void | set (std::size_t index, nlohmann::json value) DITTO_DEPRECATED |
| Set the element at the given index. Enables indexed modifications to the Rga values. More... | |
| void | remove (std::size_t index) DITTO_DEPRECATED |
| Removes a value at the specified index. More... | |
| void | insert (std::size_t index, nlohmann::json value) DITTO_DEPRECATED |
| Inserts a value into the Rga at the index specified. More... | |
| void | push (nlohmann::json value) DITTO_DEPRECATED |
| Push a value on to the end of the Rga. More... | |
| nlohmann::json | pop () DITTO_DEPRECATED |
| Pop a value off the end of the Rga. More... | |
Public Member Functions inherited from ditto::Rga | |
| Rga (std::vector< nlohmann::json > value=std::vector< nlohmann::json >()) DITTO_DEPRECATED | |
| Construct a new Rga object than can be used as part of a document's context. More... | |
| DittoCrdtType | get_type () const |
| std::vector< nlohmann::json > | get_value () const |
| Return the array representation of the RGA. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ditto::Rga | |
| size_t | size () const |
Protected Attributes inherited from ditto::Rga | |
| std::vector< nlohmann::json > | value |
| void ditto::MutableRga::insert | ( | std::size_t | index, |
| nlohmann::json | value | ||
| ) |
| nlohmann::json ditto::MutableRga::pop | ( | ) |
| void ditto::MutableRga::push | ( | nlohmann::json | value | ) |
Push a value on to the end of the Rga.
| index | the index of the element to remove. |
| void ditto::MutableRga::remove | ( | std::size_t | index | ) |
Removes a value at the specified index.
| index | the index of the element to remove. |
| void ditto::MutableRga::set | ( | std::size_t | index, |
| nlohmann::json | value | ||
| ) |