Skip to content

Commit

Permalink
Virtual dtors
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Dec 17, 2024
1 parent 1c66b59 commit d24ce82
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class CumulationConstraint
const ::ShortTermStorage::PROPERTIES& input) const
= 0;
virtual std::string name() const = 0;
virtual ~CumulationConstraint() = default;
};

class WithdrawalCumulationConstraint: public CumulationConstraint
Expand All @@ -48,6 +49,8 @@ class WithdrawalCumulationConstraint: public CumulationConstraint
{
return "WithdrawalSum";
}

virtual ~WithdrawalCumulationConstraint() = default;
};

class InjectionCumulationConstraint: public CumulationConstraint
Expand All @@ -64,6 +67,8 @@ class InjectionCumulationConstraint: public CumulationConstraint
{
return "InjectionSum";
}

virtual ~InjectionCumulationConstraint() = default;
};

class NettingCumulationConstraint: public CumulationConstraint
Expand All @@ -81,6 +86,8 @@ class NettingCumulationConstraint: public CumulationConstraint
{
return "NettingSum";
}

virtual ~NettingCumulationConstraint() = default;
};

std::unique_ptr<CumulationConstraint> cumulationConstraintFromVariable(const std::string& variable)
Expand Down

0 comments on commit d24ce82

Please sign in to comment.