CGenericIter.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_iterators_CGenericIter_h_
#define polybori_iterators_CGenericIter_h_
// include basic definitions
#include <polybori/pbori_defs.h>
#include <polybori/routines/pbori_algo.h>
// get stuff for term iteration
#include "CStackSelector.h"
#include "CTermIter.h"
#include "CTermGenerator.h"
BEGIN_NAMESPACE_PBORI
template <class OrderType, class NaviType, class RefType>
struct pbori_base<CGenericIter<OrderType, NaviType, RefType> > {
typedef typename CStackSelector<OrderType, NaviType>::type stack_type;
typedef CTermIter<stack_type, CTermGenerator<RefType> > type;
};
template <class OrderType, class NaviType, class RefType>
class CGenericIter:
public pbori_base<CGenericIter<OrderType, NaviType, RefType> >::type {
public:
typedef typename pbori_base<CGenericIter>::type base;
typedef typename base::term_generator term_generator;
template <class MgrType>
CGenericIter(NaviType navi, const MgrType& mgr): base(navi, mgr) {}
// CGenericIter(): base() {}
};
#if 0
template <class OrderType, class NaviType>
class CGenericIter<OrderType, NaviType, BooleMonomial>:
public pbori_base<CGenericIter<OrderType, NaviType, BooleMonomial> >::type {
public:
typedef typename pbori_base<CGenericIter>::type base;
typedef typename base::term_generator term_generator;
template <class MgrType>
CGenericIter(NaviType navi, const MgrType& mgr): base(navi, mgr) {}
// CGenericIter(): base() {}
};
#endif
template <class OrderType, class NaviType, class RefType>
struct pbori_base<CReverseIter<OrderType, NaviType, RefType> > {
typedef CReverseTermStack<NaviType, std::bidirectional_iterator_tag> stack_type;
typedef CTermIter<stack_type, CTermGenerator<RefType> > type;
};
template <class OrderType, class NaviType, class RefType>
class CReverseIter:
public pbori_base<CReverseIter<OrderType, NaviType, RefType> >::type {
public:
typedef typename pbori_base<CReverseIter>::type base;
typedef typename base::term_generator term_generator;
template <class MgrType>
CReverseIter(NaviType navi, const MgrType& mgr): base(navi, mgr) {}
// CReverseIter(): base() {}
};
END_NAMESPACE_PBORI
#endif
polybori::CReverseTermStack
This class defines an iterator for the monomials in a Boolean polynomial in reversed lexicographicxal...
Definition: CTermStack.h:527
polybori::CGenericIter::base
pbori_base< CGenericIter >::type base
Definition: CGenericIter.h:43
CTermGenerator.h
END_NAMESPACE_PBORI
#define END_NAMESPACE_PBORI
Finish project's namespace.
Definition: pbori_defs.h:77
BEGIN_NAMESPACE_PBORI
#define BEGIN_NAMESPACE_PBORI
Start project's namespace.
Definition: pbori_defs.h:74
CTermIter.h
polybori::CGenericIter::term_generator
base::term_generator term_generator
Definition: CGenericIter.h:44
CStackSelector.h
polybori::pbori_base< CReverseIter< OrderType, NaviType, RefType > >::stack_type
CReverseTermStack< NaviType, std::bidirectional_iterator_tag > stack_type
Definition: CGenericIter.h:71
polybori::CStackSelector::type
on_same_type< block_prop, valid_tag, block_type, nonblock_type >::type type
The resulting type for iterator's stack.
Definition: CStackSelector.h:67
polybori::pbori_base< CGenericIter< OrderType, NaviType, RefType > >::stack_type
CStackSelector< OrderType, NaviType >::type stack_type
Definition: CGenericIter.h:32
polybori::pbori_base
Definition: pbori_func.h:881
polybori::CGenericIter::CGenericIter
CGenericIter(NaviType navi, const MgrType &mgr)
Definition: CGenericIter.h:47
pbori_defs.h
polybori::CTermIter
This class defines an iterator for the monomials in a Boolean polynomial.
Definition: CTermIter.h:44
polybori::CReverseIter::term_generator
base::term_generator term_generator
Definition: CGenericIter.h:83
polybori::CReverseIter
Definition: BooleSet.h:41
polybori::CGenericIter
Definition: BoolePolynomial.h:70
polybori::pbori_base< CGenericIter< OrderType, NaviType, RefType > >::type
CTermIter< stack_type, CTermGenerator< RefType > > type
Definition: CGenericIter.h:34
polybori::CReverseIter::base
pbori_base< CReverseIter >::type base
Definition: CGenericIter.h:82
polybori::CReverseIter::CReverseIter
CReverseIter(NaviType navi, const MgrType &mgr)
Definition: CGenericIter.h:86
pbori_algo.h
polybori::pbori_base< CReverseIter< OrderType, NaviType, RefType > >::type
CTermIter< stack_type, CTermGenerator< RefType > > type
Definition: CGenericIter.h:73