//! Direct const access to the item
const TheItemType& Find (const Standard_Size theIndex) const
{
- return *(TheItemType*)this->getValue(theIndex);
+ return Value(theIndex);
}
- //! Modification access to the item; allocates space if
- //! necessary and marks the item as defined
+ //! Modification access to the item
TheItemType& ChangeFind (const Standard_Size theIndex)
{
- return *(TheItemType*)(this->changeValue (theIndex));
+ return ChangeValue(theIndex);
}
//! Set a value as explicit method
Standard_EXPORT Standard_Address setValue (const Standard_Size theIndex,
const Standard_Address theValue);
- //! Modification access to the item; allocates necessary space
- //! and marks the item as defined
- Standard_EXPORT Standard_Address changeValue (const Standard_Size theIndex);
-
//! Copy contents of theOther to this;
//! assumes that this and theOther have exactly the same type of arguments
Standard_EXPORT void assign (const NCollection_SparseArrayBase& theOther);