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:
Vinnie Falco
2015-07-24 21:06:16 -07:00
committed by Edward Hennis
parent 3e342e4b71
commit 2ec40cb6f1
14 changed files with 1230 additions and 249 deletions

View File

@@ -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)
{