-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSyntaxModel.h
More file actions
34 lines (25 loc) · 805 Bytes
/
SyntaxModel.h
File metadata and controls
34 lines (25 loc) · 805 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
//
// Created by LE, Duc Anh on 8/10/15.
//
#ifndef CLDEPARSER_SYNTAXTREE_H
#define CLDEPARSER_SYNTAXTREE_H
#include <memory>
#include <vector>
#include "SyntaxNode.h"
namespace CLDEParser {
class SyntaxModel {
public:
SyntaxModel() = default;
SyntaxModel(const SyntaxModel &) = default;
SyntaxModel(SyntaxModel &&) = default;
SyntaxModel &operator=(const SyntaxModel &) = default;
SyntaxModel &operator=(SyntaxModel &&) = default;
virtual ~SyntaxModel() = default;
// Locals
virtual void Reset() = 0;
};
using UPtrSyntaxModel = std::unique_ptr<SyntaxModel>;
using SPtrSyntaxModel = std::shared_ptr<SyntaxModel>;
using SPtrSyntaxModelVector = std::vector<SPtrSyntaxModel>;
}
#endif //CLDEPARSER_SYNTAXTREE_H