BALL::PyIndexList Class Reference
[Python extensions]

#include <BALL/PYTHON/pyIndexList.h>

Inheritance diagram for BALL::PyIndexList:
BALL::List< Index >

List of all members.


Public Types

Type Definitions
typedef Index ValueType
typedef Index PointerType
typedef List< Index >::iterator Iterator
typedef List< Index >
::const_iterator 
ConstIterator

Public Member Functions

Constructors and Destructors


 PyIndexList ()
 PyIndexList (const PyIndexList &new_list)
 

Copy constructor.


 PyIndexList (const std::vector< Index > &indices)
 PyIndexList (const std::list< Index > &fragment)
 PyIndexList (const std::vector< Position > &indices)
 PyIndexList (const std::list< Position > &fragment)
virtual ~PyIndexList () throw ()
Assignment
PyIndexListoperator= (const std::list< Index > &idx_list)
PyIndexListoperator= (const std::list< Position > &idx_list)
PyIndexListoperator= (const std::vector< Index > &idx_list)
PyIndexListoperator= (const std::vector< Position > &idx_list)

Detailed Description

Equivalent for an STL::List of numbers/indices in Python. This is used to express both, lits and arrays of signed/unsigned integers in Python.


Member Typedef Documentation

Iterator type.

Reimplemented from BALL::List< Index >.

Pointer type

Index type


Constructor & Destructor Documentation

BALL::PyIndexList::PyIndexList (  ) 

Default constructor. Create an empty list.

BALL::PyIndexList::PyIndexList ( const PyIndexList new_list  ) 

Copy constructor.

BALL::PyIndexList::PyIndexList ( const std::vector< Index > &  indices  ) 

Construct from a vector of Index. This constructor creates an PyIndexList object from a vector of Index.

BALL::PyIndexList::PyIndexList ( const std::list< Index > &  fragment  ) 

Construct from a list of Index. This constructor creates an PyIndexList object from a list of Index objects.

BALL::PyIndexList::PyIndexList ( const std::vector< Position > &  indices  ) 

Construct from a vector of Index. This constructor creates an PyIndexList object from a vector of Index.

BALL::PyIndexList::PyIndexList ( const std::list< Position > &  fragment  ) 

Construct from a list of Index. This constructor creates an PyIndexList object from a list of Index objects.

virtual BALL::PyIndexList::~PyIndexList (  )  throw () [virtual]

Destructor


Member Function Documentation

PyIndexList& BALL::PyIndexList::operator= ( const std::vector< Position > &  idx_list  ) 
PyIndexList& BALL::PyIndexList::operator= ( const std::vector< Index > &  idx_list  ) 
PyIndexList& BALL::PyIndexList::operator= ( const std::list< Position > &  idx_list  ) 
PyIndexList& BALL::PyIndexList::operator= ( const std::list< Index > &  idx_list  )