aboutsummaryrefslogtreecommitdiffstats
path: root/src/diagram/Statement.cpp
blob: 711bcf4f92f2bcc230149ab9e8ad93eb3ebadf26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Statement.cpp
 *
 *  Created on: Nov 23, 2017
 *      Author: naopross
 */

#include "Statement.hpp"

using 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);
}