Unverified Commit 1f051d86 authored by Julian Kranz's avatar Julian Kranz
Browse files

cppgdsl

parent 45b65ed7
......@@ -24,7 +24,7 @@ public:
return name;
}
bool operator== (id &other);
bool operator== (id &other) const;
void accept(id_visitor &v);
};
......
......@@ -25,7 +25,7 @@ public:
std::string to_string();
friend std::ostream &operator<< (std::ostream &out, id &_this);
virtual bool operator== (id &other) = 0;
virtual bool operator== (id &other) const = 0;
virtual void accept(id_visitor &v) = 0;
};
......
......@@ -31,7 +31,7 @@ public:
return inner;
}
bool operator== (id &other);
bool operator== (id &other) const;
std::string to_string();
void accept(id_visitor &v);
......
......@@ -22,7 +22,7 @@ public:
int_t get_t();
bool operator== (id &other);
bool operator== (id &other) const;
void accept(id_visitor &v);
};
......
......@@ -20,7 +20,7 @@ arch_id::arch_id(string name) {
this->name = name;
}
bool gdsl::rreil::arch_id::operator ==(id &other) {
bool gdsl::rreil::arch_id::operator ==(id &other) const {
bool equals = false;
id_visitor iv;
iv._((std::function<void(arch_id*)>)[&](arch_id *aid) {
......
......@@ -25,7 +25,7 @@ gdsl::rreil::shared_id::shared_id(shared_id_type _id) {
this->inner = _id;
}
bool gdsl::rreil::shared_id::operator ==(id &other) {
bool gdsl::rreil::shared_id::operator ==(id &other) const {
bool equals = false;
id_visitor iv;
iv._((std::function<void(shared_id*)>)[&](shared_id *aid) {
......
......@@ -22,7 +22,7 @@ int_t _virtual::get_t() {
return this->t;
}
bool gdsl::rreil::_virtual::operator ==(id &other) {
bool gdsl::rreil::_virtual::operator ==(id &other) const {
bool equals = false;
id_visitor iv;
iv._((std::function<void(_virtual*)>)[&](_virtual *aid) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment