IMP  2.2.1
The Integrative Modeling Platform
IMP::base::Array< D, Data, SwigData > Class Template Reference

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

#include <IMP/base/Array.h>

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

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
 

Detailed Description

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

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

Definition at line 33 of file base/Array.h.


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