const TheItemType& operator() (const Standard_Integer theIndex) const
{ return Value (theIndex); }
+ //! operator[] - alias to Value
+ const TheItemType& operator[] (Standard_Integer theIndex) const { return Value (theIndex); }
+
//! Variable value access
TheItemType& ChangeValue (const Standard_Integer theIndex)
{
TheItemType& operator() (const Standard_Integer theIndex)
{ return ChangeValue (theIndex); }
+ //! operator[] - alias to ChangeValue
+ TheItemType& operator[] (Standard_Integer theIndex) { return ChangeValue (theIndex); }
+
//! Set value
void SetValue (const Standard_Integer theIndex,
const TheItemType& theItem)
return Value (theIndex);
}
+ //! Operator[] - query the const value
+ const TheItemType& operator[] (Standard_Integer theIndex) const { return Value (theIndex); }
+
const TheItemType& Value (const Standard_Integer theIndex) const
{
return *(const TheItemType* )findV (theIndex);
return ChangeValue (theIndex);
}
+ //! Operator[] - query the value
+ TheItemType& operator[] ( Standard_Integer theIndex) { return ChangeValue (theIndex); }
+
TheItemType& ChangeValue (const Standard_Integer theIndex)
{
return *(TheItemType* )findV (theIndex);