IMP logo
IMP Reference Guide  2.5.0
The Integrative Modeling Platform
IMP::Vector< T > Class Template Reference

#include <IMP/Vector.h>

Inherits IMP::Value.

Inherited by IMP::IndexVector< Tag, T >, and IMP::ParticleIndexPairsAdaptor.

Detailed Description

template<class T>
class IMP::Vector< T >

This class provides a more IMP-like version of the std::vector. Specifically it adds functionality from Python arrays such as

  • hashing
  • output to streams
  • use of +=es
  • implicit conversion when the contents are implicitly convertible
  • bounds checking in debug mode

Definition at line 37 of file Vector.h.

Public Member Functions

 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: