IMP logo
IMP Reference Guide  develop.5651aa123e,2024/07/23
The Integrative Modeling Platform
IMP::Vector< T, Allocator > Class Template Reference

A more IMP-like version of the std::vector. More...

#include <IMP/Vector.h>

Inherits IMP::Value.

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

Detailed Description

template<class T, class Allocator = std::allocator<T>>
class IMP::Vector< T, Allocator >

A more IMP-like version of the std::vector.

Specifically this class 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 50 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: