IMP Reference Guide
develop.36b5e40f34,2024/10/13
The Integrative Modeling Platform
|
Implements a vector tied to a particular index of type Index<Tag>. More...
#include <IMP/Index.h>
Implements a vector tied to a particular index of type Index<Tag>.
When this class is serialized, the output data are compressed using simple run-length encoding, as these vectors are often sparse. For objects that do not implement operator== (e.g. VectorD, SphereD), a custom comparison functor should be provided.
Public Member Functions | |
IndexVector (unsigned int sz, const T &t=T()) | |
T & | at (Index< Tag >) |
const T | at (Index< Tag >) const |
T & | operator[] (Index< Tag >) |
const T | operator[] (Index< Tag >) const |
Public Member Functions inherited from IMP::Vector< T, Allocator > | |
Vector (unsigned int sz, const T &t=T()) | |
template<class It > | |
Vector (It b, It e) | |
template<class VO > | |
Vector (const std::vector< VO > &o) | |
template<class O > | |
operator Vector< O > () const | |
template<class OV > | |
Vector< T > | operator+= (const OV &o) |