aboutsummaryrefslogtreecommitdiffstats
path: root/src/diagram/statement.cpp
blob: 9cbcdb4759cc82ce05d6429f2f143bf548a77975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "diagram/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);
}