PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
groebner
include
polybori
groebner
IsVariableOfIndex.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_groebner_IsVariableOfIndex_h_
17
#define polybori_groebner_IsVariableOfIndex_h_
18
19
// include basic definitions
20
#include "
groebner_defs.h
"
21
22
#include "
PolyEntry.h
"
23
24
BEGIN_NAMESPACE_PBORIGB
25
31
class
IsVariableOfIndex
{
32
public
:
33
IsVariableOfIndex
(
idx_type
value): m_value(value) {}
34
35
bool
operator()
(
const
PolyEntry
& rhs)
const
{
36
return
(rhs.
isSingleton
() && rhs.
usedVariables
.
deg
() == 1) &&
37
(*(rhs.
usedVariables
.
begin
()) == m_value);
38
}
39
40
private
:
41
idx_type
m_value;
42
};
43
44
END_NAMESPACE_PBORIGB
45
46
#endif
/* polybori_groebner_IsVariableOfIndex_h_ */
polybori::groebner::PolyEntryBase::usedVariables
Exponent usedVariables
Definition:
PolyEntryBase.h:62
polybori::BooleExponent::begin
const_iterator begin() const
Start iteration over indices (constant access)
Definition:
BooleExponent.h:97
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition:
groebner_defs.h:16
polybori::groebner::IsVariableOfIndex::IsVariableOfIndex
IsVariableOfIndex(idx_type value)
Definition:
IsVariableOfIndex.h:33
PolyEntry.h
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition:
groebner_defs.h:15
polybori::groebner::PolyEntry
This class defines PolyEntry.
Definition:
PolyEntry.h:32
groebner_defs.h
polybori::groebner::IsVariableOfIndex
Definition:
IsVariableOfIndex.h:31
polybori::groebner::PolyEntry::isSingleton
bool isSingleton() const
Definition:
PolyEntry.h:67
polybori::groebner::IsVariableOfIndex::operator()
bool operator()(const PolyEntry &rhs) const
Definition:
IsVariableOfIndex.h:35
polybori::groebner::idx_type
polybori::CTypes::idx_type idx_type
Definition:
groebner_defs.h:44
polybori::BooleExponent::deg
deg_type deg() const
Degree of the corresponding monomial.
Definition:
BooleExponent.h:118
Generated by
1.8.9.1