summaryrefslogtreecommitdiff
path: root/src/theory/atom_requests.h
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-02-27 00:08:42 -0800
committerGitHub <noreply@github.com>2020-02-27 00:08:42 -0800
commitc2e7c568f5741215ac58cb7fd47952c52876fa0f (patch)
tree1cc745df05031b4d5665e8548f786f0ad1707605 /src/theory/atom_requests.h
parent6c687e2d76f16328d5a2d10ab32a582fb18e00f2 (diff)
parent87f3741db6ed41d3a776774bc1b60fd696585391 (diff)
Merge branch 'master' into fixWShadowfixWShadow
Diffstat (limited to 'src/theory/atom_requests.h')
-rw-r--r--src/theory/atom_requests.h35
1 files changed, 15 insertions, 20 deletions
diff --git a/src/theory/atom_requests.h b/src/theory/atom_requests.h
index 6a3ffe5e9..b96b042af 100644
--- a/src/theory/atom_requests.h
+++ b/src/theory/atom_requests.h
@@ -34,24 +34,18 @@ public:
/** Which atom and where to send it */
struct Request {
/** Atom */
- Node atom;
+ Node d_atom;
/** Where to send it */
- theory::TheoryId toTheory;
+ theory::TheoryId d_toTheory;
- Request(TNode atom, theory::TheoryId toTheory)
- : atom(atom), toTheory(toTheory) {}
- Request()
- : toTheory(theory::THEORY_LAST)
- {}
+ Request(TNode a, theory::TheoryId tt) : d_atom(a), d_toTheory(tt) {}
+ Request() : d_toTheory(theory::THEORY_LAST) {}
bool operator == (const Request& other) const {
- return atom == other.atom && toTheory == other.toTheory;
- }
-
- size_t hash() const {
- return atom.getId();
+ return d_atom == other.d_atom && d_toTheory == other.d_toTheory;
}
+ size_t hash() const { return d_atom.getId(); }
};
AtomRequests(context::Context* context);
@@ -66,11 +60,14 @@ public:
typedef size_t element_index;
class atom_iterator {
- const AtomRequests& requests;
- element_index index;
+ const AtomRequests& d_requests;
+ element_index d_index;
friend class AtomRequests;
atom_iterator(const AtomRequests& requests, element_index start)
- : requests(requests), index(start) {}
+ : d_requests(requests), d_index(start)
+ {
+ }
+
public:
/** Is this iterator done */
bool done() const;
@@ -97,13 +94,11 @@ private:
struct Element {
/** Current request */
- Request request;
+ Request d_request;
/** Previous request */
- element_index previous;
+ element_index d_previous;
- Element(const Request& request, element_index previous)
- : request(request), previous(previous)
- {}
+ Element(const Request& r, element_index p) : d_request(r), d_previous(p) {}
};
/** We index the requests in this vector, it's a list */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback