41 for(
size_t i = 0; i < size; i++)
46 std::stringstream str;
48 "There should be " << size <<
" RigidBodies, reached eof after restoring " << i;
ObjectPtrVectorType::iterator end()
const agx::Vector< T * > & getObjects()
RestoreObjects(agxStream::InputArchive &archive, const char *collectionTitle, const char *elementTitle)
agx::Vector< T * > ObjectPtrVectorType
agxStream::InputArchive & m_archive
const char * m_collectionTitle
ObjectPtrVectorType::iterator begin()
ObjectPtrVectorType m_objects
const char * m_elementTitle
void resize(size_t size)
Resize the vector, which then enables direct addressing using the bracket '[]' operator.
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...