IMP logo
IMP Reference Guide  2.20.1
The Integrative Modeling Platform
IMP::IndexVector< Tag, T, Equal > Class Template Reference

Implements a vector tied to a particular index of type Index<Tag>. More...

#include <IMP/Index.h>

+ Inheritance diagram for IMP::IndexVector< Tag, T, Equal >:

Detailed Description

template<class Tag, class T, class Equal = std::equal_to<T>>
class IMP::IndexVector< Tag, T, Equal >

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.

Definition at line 86 of file Index.h.

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 >
 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)
 

The documentation for this class was generated from the following file: