IMP  2.0.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
Examples:
atom/dope_and_excluded_volume.cpp.

Definition at line 36 of file Vector.h.


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