-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathname.hpp
More file actions
43 lines (35 loc) · 914 Bytes
/
name.hpp
File metadata and controls
43 lines (35 loc) · 914 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
/*
* name.hpp
*
* Created on: Jun 12, 2018
* Author: user
*/
#ifndef T_COMPI5_NAME_HPP_
#define T_COMPI5_NAME_HPP_
#include <iostream>
#include <cstddef>
#include <string>
#include <stdlib.h>
#include <map>
#include <vector>
#include <list>
#include <stack>
#include "output.hpp"
class Name{
public:
Name(string id, string type);
Name(string id, string type, string ret,int numerOfParams ,pair<string,string>* params);
Name(string id, string type, string ret);
Name(const Name& name);
~Name();
void update(list<pair<string,string> > params);
void setOffSet(int offset);
string id; // the name. like int BLABLA . so BLABLA is the name / id
//string hash; // basically how to get to the name from the root. EX: (2_5_11_3)
string type; // int , bool , func, etc ..
string returnType;
int numerOfParams;
pair<string,string>* parameters;
int offSet ;
};
#endif /* T_COMPI5_NAME_HPP_ */