-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPredicate.cpp
More file actions
43 lines (36 loc) · 732 Bytes
/
Predicate.cpp
File metadata and controls
43 lines (36 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Predicate.cpp
// Project2
//
// Created by Michael Bird on 7/3/14.
// Copyright (c) 2014 Michael Bird. All rights reserved.
//
#include <sstream>
#include "Predicate.h"
Predicate::Predicate() {}
Predicate::~Predicate() {}
void Predicate::add_id(string _id) {
id = _id;
}
string Predicate::get_id() {
return id;
}
vector<string> Predicate::get_parameters() {
return Par.get_values();
}
void Predicate::add_param(string param) {
Par.add_param(param);
}
string Predicate::toString() {
stringstream ss;
ss << id << "(";
ss << Par.toString();
for(auto param : parameter)
ss << "fdsa";
ss << ")";
return ss.str();
}
void Predicate::clear() {
id = "";
Par.clear();
}