Loading...
Searching...
No Matches
gamssymboldomainviolation.h
1
26#ifndef GAMSSYMBOLDOMAINVIOLATION_H
27#define GAMSSYMBOLDOMAINVIOLATION_H
28
29#include "gamslib_global.h"
30#include "gamssymbolrecord.h"
31
32namespace gams {
33
36{
37public:
40
45
48 bool isValid() const;
49
53 bool operator!=(const GAMSSymbolDomainViolation& other) const;
54
58 bool operator==(const GAMSSymbolDomainViolation& other) const;
59
63
65 std::vector<bool> violInd();
66
67private:
68 friend class GAMSSymbolImpl;
69 GAMSSymbolDomainViolation(const std::shared_ptr<GAMSSymbolDomainViolationImpl> impl);
70 GAMSSymbolDomainViolation(const std::vector<bool>& violInd, const GAMSSymbolRecord& violRec);
71private:
72 std::shared_ptr<GAMSSymbolDomainViolationImpl> mImpl;
73};
74
75} // namespace gams
76
77#endif // GAMSSYMBOLDOMAINVIOLATION_H
This class describes a domain violation of a GAMSSymbol.
GAMSSymbolDomainViolation & operator=(const GAMSSymbolDomainViolation &other)
std::vector< bool > violInd()
Array indicating which position of a record has a domain violation.
bool operator!=(const GAMSSymbolDomainViolation &other) const
bool operator==(const GAMSSymbolDomainViolation &other) const
GAMSSymbolDomainViolation()
Standard constructor.
Definition: gams.h:91