SetFactory.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_SetFactory_h_
#define polybori_SetFactory_h_
// include basic definitions
#include <polybori/pbori_defs.h>
#include <polybori/factories/CFactoryBase.h>
#include <polybori/BooleSet.h>
#include <polybori/BooleMonomial.h>
BEGIN_NAMESPACE_PBORI
class SetFactory:
public CFactoryBase {
typedef SetFactory self;
typedef CFactoryBase base;
public:
typedef base::parent_type parent_type;
typedef BooleSet value_type;
SetFactory(const parent_type& ring): base(ring) {}
SetFactory(const self& rhs): base(rhs) {}
~SetFactory() {}
value_type operator()() const {
return value_type(parent());
}
value_type operator()(const value_type& rhs) const {
return rhs;
}
value_type operator()(const value_type::ring_type& ring) const {
return value_type(ring);
}
value_type operator()(value_type::idx_type idx,
const value_type& first,
const value_type& second) const {
return value_type(idx, first, second);
}
value_type operator()(value_type::idx_type idx,
value_type::navigator first,
value_type::navigator second) const {
return value_type(idx, first, second, parent());
}
value_type operator()(value_type::idx_type idx,
value_type::navigator first,
value_type::navigator second,
value_type::ring_type& ring) const {
return value_type(idx, first, second, ring);
}
value_type operator()(value_type::navigator navi,
value_type::ring_type& ring) const {
return value_type(navi, ring);
}
value_type operator()(value_type::navigator navi) const {
return value_type(navi, parent());
}
};
END_NAMESPACE_PBORI
#endif /* polybori_SetFactory_h_ */
END_NAMESPACE_PBORI
#define END_NAMESPACE_PBORI
Finish project's namespace.
Definition: pbori_defs.h:77
polybori::SetFactory::operator()
value_type operator()(value_type::idx_type idx, const value_type &first, const value_type &second) const
Construct new node.
Definition: SetFactory.h:73
BEGIN_NAMESPACE_PBORI
#define BEGIN_NAMESPACE_PBORI
Start project's namespace.
Definition: pbori_defs.h:74
BooleSet.h
polybori::SetFactory::operator()
value_type operator()(value_type::idx_type idx, value_type::navigator first, value_type::navigator second, value_type::ring_type &ring) const
Construct new node (using navigator nodes and explicit ring)
Definition: SetFactory.h:87
polybori::BoolePolyRing
This class reinterprets decicion diagram managers as Boolean polynomial rings, adds an ordering and v...
Definition: BoolePolyRing.h:40
polybori::SetFactory::operator()
value_type operator()(value_type::idx_type idx, value_type::navigator first, value_type::navigator second) const
Construct new node (using navigator nodes)
Definition: SetFactory.h:80
polybori::SetFactory::operator()
value_type operator()(const value_type &rhs) const
Indirect copy constructor.
Definition: SetFactory.h:63
polybori::SetFactory::SetFactory
SetFactory(const self &rhs)
Copy constructor.
Definition: SetFactory.h:52
pbori_defs.h
polybori::SetFactory::parent_type
base::parent_type parent_type
Type of parent.
Definition: SetFactory.h:43
polybori::SetFactory::value_type
BooleSet value_type
We construct element of this type.
Definition: SetFactory.h:46
polybori::SetFactory::operator()
value_type operator()(value_type::navigator navi) const
Construct new node from navigator.
Definition: SetFactory.h:101
polybori::CFactoryBase
This base class CFactoryBase is used for currying other constructors with a BoolePolyRing.
Definition: CFactoryBase.h:35
polybori::CAuxTypes::idx_type
int idx_type
Type for indices.
Definition: pbori_defs.h:228
polybori::SetFactory::operator()
value_type operator()() const
Get empty set of the ring.
Definition: SetFactory.h:58
BooleMonomial.h
polybori::SetFactory
This base class SetFactory is used for currying set constructors with a BoolePolyRing.
Definition: SetFactory.h:33
polybori::SetFactory::operator()
value_type operator()(const value_type::ring_type &ring) const
Get first variable of explicit ring.
Definition: SetFactory.h:68
polybori::SetFactory::operator()
value_type operator()(value_type::navigator navi, value_type::ring_type &ring) const
Construct new node from navigator (using explicit ring)
Definition: SetFactory.h:95
polybori::SetFactory::SetFactory
SetFactory(const parent_type &ring)
Construct from given ring.
Definition: SetFactory.h:49
polybori::CCuddNavigator
This class defines an iterator for navigating through then and else branches of ZDDs.
Definition: CCuddNavigator.h:36
CFactoryBase.h
polybori::BooleSet
Definition: BooleSet.h:57
polybori::SetFactory::~SetFactory
~SetFactory()
Destructor.
Definition: SetFactory.h:55