allow wrappers to use CostTerm

This commit is contained in:
v4hn 2020-06-29 22:24:35 +02:00
parent 56268cb6cc
commit a15204b40b

View File

@ -81,7 +81,7 @@ public:
protected:
ContainerBase(ContainerBasePrivate* impl);
private:
/// most containers should only use setCostTransform and leave the costs to their children
using Stage::setCostTerm;
};
std::ostream& operator<<(std::ostream& os, const ContainerBase& stage);
@ -227,6 +227,9 @@ public:
bool canCompute() const override;
void compute() override;
// Wrappers sometimes do the real work (e.g., IK), so they can specify costs
using Stage::setCostTerm;
protected:
WrapperBase(WrapperBasePrivate* impl, Stage::pointer&& child = Stage::pointer());
};