blob: dc4bfb7ea3ffcbe45b1eb00b43f97598f2367f2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Statement.cpp
*
* Created on: Nov 23, 2017
* Author: naopross
*/
#include "Statement.hpp"
namespace samb {
/* Statement */
Statement::Statement(Type t, const std::string& text): type(t), m_text(text), m_next(nullptr) {}
Statement::Statement(Type t, const std::string& text, Statement::pointer p): type(t), m_text(text), m_next(p) {}
Statement::~Statement() {}
bool Statement::operator==(const Statement& other) const {
// comparison by pointers
return (this == &other);
}
} /* namespace samb */
|