Added clone method
parent
478f354922
commit
ab1148a508
|
@ -170,6 +170,15 @@ public:
|
||||||
return root_->value(values);
|
return root_->value(values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a "deep" copy of this Expression
|
||||||
|
* "deep" is in quotes because the ExpressionNode hierarchy is *not* cloned.
|
||||||
|
* The intent is for derived classes to be copied using only a Base pointer.
|
||||||
|
*/
|
||||||
|
virtual boost::shared_ptr<Expression> clone() const {
|
||||||
|
return boost::make_shared<Expression>(*this);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/// Vaguely unsafe keys and dimensions in same order
|
/// Vaguely unsafe keys and dimensions in same order
|
||||||
|
|
Loading…
Reference in New Issue