IMP  2.1.1
The Integrative Modeling Platform
IMP::base::Vector< T > Class Template Reference

#include <IMP/base/Vector.h>

Inherits IMP::base::Value.

Inherited by IMP::base::IndexVector< Tag, T >.

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)
 

Detailed Description

template<class T>
class IMP::base::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 base/Vector.h.


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