Modifed set creation to use a State object. Set creation works

This commit is contained in:
Nathan Braswell
2013-05-26 22:12:47 -04:00
parent 858daa30ee
commit 315dc55409
7 changed files with 185 additions and 56 deletions

36
include/State.h Normal file
View File

@@ -0,0 +1,36 @@
#ifndef STATE_H
#define STATE_H
#ifndef NULL
#define NULL 0
#endif
#include "ParseRule.h"
#include <vector>
#include <string>
#include <string>
#include <sstream>
class State {
public:
State(int number, ParseRule* basis);
~State();
std::string intToString(int theInt);
bool const operator==(const State &other);
bool const operator!=(const State &other);
std::vector<ParseRule*>* getBasis();
std::vector<ParseRule*>* getRemaining();
std::vector<ParseRule*>* getTotal();
bool containsRule(ParseRule* rule);
std::string toString();
std::vector<ParseRule*> basis;
std::vector<ParseRule*> remaining;
private:
std::vector<ParseRule*> total;
int number;
};
#endif