IMP logo
IMP Reference Guide  2.9.0
The Integrative Modeling Platform
IMP::Array< D, Data, SwigData > Class Template Reference

A class to store an fixed array of same-typed values. More...

#include <IMP/Array.h>

+ Inheritance diagram for IMP::Array< D, Data, SwigData >:

Detailed Description

template<unsigned int D, class Data, class SwigData = Data>
class IMP::Array< D, Data, SwigData >

A class to store an fixed array of same-typed values.

Only the constructor with the correct number of arguments for the dimensionality can be used.

Note
These are mapped to/from Python tuples, so there is no need to use types that are typedefs of this on the Python side.
See Also
ConstVector

Definition at line 33 of file Array.h.

Public Types

typedef Storage::const_iterator const_iterator
 
typedef Storage::iterator iterator
 

Public Member Functions

 Array (SwigData x, SwigData y)
 
 Array (SwigData x, SwigData y, SwigData z)
 
 Array (SwigData x0, SwigData x1, SwigData x2, SwigData x3)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
SwigData get (unsigned int i) const
 
unsigned int get_dimension ()
 
std::string get_name () const
 
const Data operator[] (unsigned int i) const
 
Data & operator[] (unsigned int i)
 
void show (std::ostream &out=std::cout) const
 
unsigned int size () const
 

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