-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c543c35
commit 89c2abb
Showing
12 changed files
with
932 additions
and
883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
#pragma once | ||
#include <vector> | ||
|
||
#include "pattern.h" | ||
#include "literal.h" | ||
#include "pattern.h" | ||
|
||
class GFD { | ||
private: | ||
Pattern pattern; | ||
std::vector<Literal> premises; | ||
std::vector<Literal> conclusion; | ||
Pattern pattern; | ||
std::vector<Literal> premises; | ||
std::vector<Literal> conclusion; | ||
|
||
public: | ||
GFD(Pattern& pattern_, std::vector<Literal>& premises_, std::vector<Literal>& conclusion_) : pattern(pattern_), premises(premises_), conclusion(conclusion_) {} | ||
GFD(Pattern &pattern_, std::vector<Literal> &premises_, | ||
std::vector<Literal> &conclusion_) | ||
: pattern(pattern_), premises(premises_), conclusion(conclusion_) {} | ||
|
||
Pattern getPattern() const { return this->pattern; } | ||
std::vector<Literal> getPremises() const { return this->premises; } | ||
std::vector<Literal> getConclusion() const { return this->conclusion; } | ||
Pattern getPattern() const { return this->pattern; } | ||
std::vector<Literal> getPremises() const { return this->premises; } | ||
std::vector<Literal> getConclusion() const { return this->conclusion; } | ||
|
||
void print() const; | ||
void print() const; | ||
}; |
Oops, something went wrong.