IMP logo
IMP Reference Guide  develop.27926d84dc,2024/04/22
The Integrative Modeling Platform
IMP::ConstVector< Data, SwigData > Class Template Reference

Store an array of values of the same type. More...

#include <IMP/ConstVector.h>

+ Inheritance diagram for IMP::ConstVector< Data, SwigData >:

Detailed Description

template<class Data, class SwigData = Data>
class IMP::ConstVector< Data, SwigData >

Store an array of values of the same type.

Items must be comparable and hashable and the arrays cannot be changed after creation.

Definition at line 27 of file ConstVector.h.

Public Member Functions

 ConstVector (unsigned int sz, Data fill)
 
template<class It >
 ConstVector (It b, It e)
 
template<class Vector >
 ConstVector (const Vector &i)
 
Data operator[] (unsigned int i) const
 
void show (std::ostream &out=std::cout) const
 
unsigned int size () const
 

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