mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add operator[] field accessors to STObject:
New array index operators allow for concise reading and writing of fields in the STObject, with associated unit test.
This commit is contained in:
committed by
Edward Hennis
parent
3e342e4b71
commit
2ec40cb6f1
@@ -77,6 +77,17 @@ public:
|
||||
return value_;
|
||||
}
|
||||
|
||||
STInteger& operator= (value_type const& v)
|
||||
{
|
||||
value_ = v;
|
||||
return *this;
|
||||
}
|
||||
|
||||
value_type value() const noexcept
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void
|
||||
setValue (Integer v)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user