pm::Vector< E > Class Template Reference

Vector type class which holds the elements in a contiguous array More...

Inheritance diagram for pm::Vector< E >:
Collaboration diagram for pm::Vector< E >:

List of all members.


Public Types

typedef E value_type
 element type
typedef E & reference
 reference to element type
typedef const E & const_reference
 constant reference to element type

Public Member Functions

 Vector ()
 create as empty
 Vector (int n)
 create vector of length n
int size () const
 number of elements
bool empty () const
 true if Vector does not contain any elements
void clear ()
 truncate to zero size
void resize (int n)
 change the size, initialize appended elements with default constructor
Vector & operator= (const Vector &v)
 assignment
E & operator[] (int i)
 random access
const E & operator[] (int i) const
 constant random access
template<typename Vector2>
Vector & operator|= (const GenericVector< Vector2, E > &v)
 appending a GenericVector
Vector & operator|= (const E &r)
 appending an element

Detailed Description

template<typename E>
class pm::Vector< E >

Vector type class which holds the elements in a contiguous array
The documentation for this class was generated from the following file:
Generated on Wed Mar 30 23:31:46 2011 for Polymake Template Library (PTL) by doxygen 1.5.6