Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

PyIndexList Class Reference
[Python extensions]

Equivalent for an STL::List of numbers/indices in Python. More...

#include <pyIndexList.h>

Inheritance diagram for PyIndexList:

List< Index > List of all members.

Public Types

Type Definitions
typedef Index ValueType
 Index type.
typedef Index PointerType
 Pointer type.
typedef List< Index >::iterator Iterator
 Iterator type.
typedef List< Index >::const_iterator ConstIterator
 Constant iterator type.

Public Member Functions

Constructors and Destructors
 PyIndexList ()
 Default constructor.
 PyIndexList (const PyIndexList &new_list)
 Copy constructor.
 PyIndexList (const std::vector< Index > &indices)
 Construct from a vector of Index.
 PyIndexList (const std::list< Index > &fragment)
 Construct from a list of Index.
 PyIndexList (const std::vector< Position > &indices)
 Construct from a vector of Index.
 PyIndexList (const std::list< Position > &fragment)
 Construct from a list of Index.
virtual ~PyIndexList () throw ()
 Destructor.
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

typedef List<Index>::const_iterator PyIndexList::ConstIterator
 

Constant iterator type.

Reimplemented from List< Index >.

typedef List<Index>::iterator PyIndexList::Iterator
 

Iterator type.

Reimplemented from List< Index >.


Constructor & Destructor Documentation

PyIndexList::PyIndexList  ) 
 

Default constructor.

Create an empty list.

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

Construct from a vector of Index.

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

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.

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

Construct from a vector of Index.

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

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.