PolyBoRi
Public Member Functions
polybori::groebner::PolyEntryVector Class Reference

#include <PolyEntryVector.h>

Inheritance diagram for polybori::groebner::PolyEntryVector:
polybori::groebner::ReductionStrategy

List of all members.

Public Member Functions

reference first ()
 Alternative to front which allows partial (but consistent) access.
const_reference first () const
 Constant variant, equivalent to front, for completeness reasons.
reference last ()
 Alternative to back() which allows partial (but consistent) access.
const_reference last () const
 Constant variant, equivalent to back, for completeness reasons.
 PolyEntryVector ()
 Default constructor.
virtual void append (const PolyEntry &element)
 Just insert element.
template<class KeyType >
const_reference operator() (const KeyType &key) const
 Read-only access to element by index, leading term or monomial.
template<class KeyType >
reference operator() (const KeyType &rhs)
 (Partially) write access to element by index, leading term or monomial
template<class KeyType , class Type >
void exchange (const KeyType &key, const Type &rhs)
 Exchange element given by key.
template<class KeyType >
size_type index (const KeyType &key) const
 Retrieve index associated to key.
template<class KeyType >
size_type checked_index (const KeyType &key) const
 Retrieve index associated to key if key exists, -1 otherwise.
template<class KeyType >
const Polynomialpolynomial (const KeyType &key) const
 Retrieve polynomial associated to key.
typedef data_type::value_type value_type
 Vector-style interface.
typedef data_type::size_type size_type
typedef data_type::const_iterator const_iterator
typedef data_type::const_reference const_reference
typedef PolyEntryReference reference
bool empty () const
size_type size () const
const_iterator begin () const
const_iterator end () const
const_reference front () const
const_reference back () const
template<class KeyType >
const_reference operator[] (const KeyType &rhs) const
 Read-only access to element by index, leading term or monomial.

Member Typedef Documentation

typedef data_type::const_iterator polybori::groebner::PolyEntryVector::const_iterator
typedef data_type::const_reference polybori::groebner::PolyEntryVector::const_reference
typedef data_type::size_type polybori::groebner::PolyEntryVector::size_type
typedef data_type::value_type polybori::groebner::PolyEntryVector::value_type

Vector-style interface.


Constructor & Destructor Documentation

Default constructor.


Member Function Documentation

virtual void polybori::groebner::PolyEntryVector::append ( const PolyEntry element) [inline, virtual]

Just insert element.

Reimplemented in polybori::groebner::ReductionStrategy.

References PBORI_ASSERT.

template<class KeyType >
size_type polybori::groebner::PolyEntryVector::checked_index ( const KeyType &  key) const [inline]

Retrieve index associated to key if key exists, -1 otherwise.

template<class KeyType , class Type >
void polybori::groebner::PolyEntryVector::exchange ( const KeyType &  key,
const Type &  rhs 
) [inline]

Exchange element given by key.

Alternative to front which allows partial (but consistent) access.

Constant variant, equivalent to front, for completeness reasons.

template<class KeyType >
size_type polybori::groebner::PolyEntryVector::index ( const KeyType &  key) const [inline]

Alternative to back() which allows partial (but consistent) access.

Referenced by polybori::groebner::GroebnerStrategy::addGenerator().

Constant variant, equivalent to back, for completeness reasons.

template<class KeyType >
const_reference polybori::groebner::PolyEntryVector::operator() ( const KeyType &  key) const [inline]

Read-only access to element by index, leading term or monomial.

template<class KeyType >
reference polybori::groebner::PolyEntryVector::operator() ( const KeyType &  rhs) [inline]

(Partially) write access to element by index, leading term or monomial

template<class KeyType >
const_reference polybori::groebner::PolyEntryVector::operator[] ( const KeyType &  rhs) const [inline]

Read-only access to element by index, leading term or monomial.

template<class KeyType >
const Polynomial& polybori::groebner::PolyEntryVector::polynomial ( const KeyType &  key) const [inline]

Retrieve polynomial associated to key.


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