diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-08-01 16:35:25 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-09-14 05:58:27 +0200 |
commit | 7b9f4e4e8169ca2fad3a1c7ca03f07ecfc46678e (patch) | |
tree | 0cef1ac0dc228b621afc90bc94e4e0dddcb90c82 /vendor/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h | |
parent | c6196b25d119a10e79deedef26a73e0d5a021b0e (diff) |
Bandit 2.0.0
Diffstat (limited to 'vendor/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h')
-rw-r--r-- | vendor/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/vendor/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h b/vendor/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h index 31c19b50..eafe6c51 100644 --- a/vendor/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h +++ b/vendor/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h @@ -7,29 +7,20 @@ #ifndef IGLOO_CONTRAINTOPERATOR_H #define IGLOO_CONTRAINTOPERATOR_H -namespace snowhouse { - - struct InvalidExpressionException - { - InvalidExpressionException(const std::string& message) : m_message(message) - { - } - - const std::string& Message() const - { - return m_message; - } +#include "invalidexpressionexception.h" - std::string m_message; - }; +namespace snowhouse { struct ConstraintOperator { +#if __cplusplus > 199711L +#else virtual ~ConstraintOperator() {} - +#endif + virtual void PerformOperation(ResultStack& result) = 0; virtual int Precedence() const = 0; - + template <typename ConstraintListType, typename ActualType> static bool EvaluateElementAgainstRestOfExpression(ConstraintListType& list, const ActualType& actual) { |