Skip to content

Commit

Permalink
Move implementations out of header
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Aug 8, 2019
1 parent 558805b commit b418a72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 3 additions & 6 deletions include/verilogAST.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,7 @@ class ContinuousAssign : public StructuralStatement, public Assign {
target,
std::unique_ptr<Expression> value)
: Assign(std::move(target), std::move(value), "assign "){};
// Multiple inheritance forces us to have to explicitly state this?
std::string toString() { return Assign::toString(); };
std::string toString();
~ContinuousAssign(){};
};

Expand All @@ -405,8 +404,7 @@ class BlockingAssign : public BehavioralAssign, public Assign {
target,
std::unique_ptr<Expression> value)
: Assign(std::move(target), std::move(value), ""){};
// Multiple inheritance forces us to have to explicitly state this?
std::string toString() { return Assign::toString(); };
std::string toString();
~BlockingAssign(){};
};

Expand All @@ -417,8 +415,7 @@ class NonBlockingAssign : public BehavioralAssign, public Assign {
target,
std::unique_ptr<Expression> value)
: Assign(std::move(target), std::move(value), "", "<="){};
// Multiple inheritance forces us to have to explicitly state this?
std::string toString() { return Assign::toString(); };
std::string toString();
~NonBlockingAssign(){};
};

Expand Down
5 changes: 5 additions & 0 deletions src/verilogAST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ std::string Assign::toString() {
value->toString() + ";";
}

// Multiple inheritance forces us to have to explicitly state this?
std::string ContinuousAssign::toString() { return Assign::toString(); };
std::string BlockingAssign::toString() { return Assign::toString(); };
std::string NonBlockingAssign::toString() { return Assign::toString(); };

std::string Always::toString() {
std::string always_str = "";
always_str += "always @(";
Expand Down

0 comments on commit b418a72

Please sign in to comment.