- /// Returns the referenced object by the zero-based index
- MODELAPI_EXPORT virtual ObjectPtr object(const int theIndex) const = 0;
+ /// Returns the referenced object by the zero-based index
+ ///\param theIndex zero-based index in the list
+ ///\param theWithEmpty if it is false, counts the not-empty referenced objects only
+ virtual ObjectPtr object(const int theIndex, const bool theWithEmpty = true) const = 0;