////////////////////////////////////////////////////////////////////////// IsItemValid //////////////////////////////////////////////////////////////////////////
| 213 | // IsItemValid |
| 214 | /////////////////////////////////////////////////////////////////////////////// |
| 215 | bool cBlockRecordArray::IsItemValid(int index) const //throw (eArchive) |
| 216 | { |
| 217 | ASSERT(Initialized()); |
| 218 | |
| 219 | if ((index < 0) || (index >= GetNumItems())) |
| 220 | return false; |
| 221 | |
| 222 | cBlockFile::Block* pBlock = mpBlockFile->GetBlock(mBlockNum); |
| 223 | |
| 224 | return (util_GetIndexArray(pBlock).maRecordIndex[index].GetMainIndex() != INVALID_INDEX); |
| 225 | } |
| 226 | |
| 227 | |
| 228 | /////////////////////////////////////////////////////////////////////////////// |