Sha256: 4c8bb86b06d8587be49531b1eb1039bd52bc6ecbbb94af4efa2d9b777a514bc1
Contents?: true
Size: 980 Bytes
Versions: 2
Compression:
Stored size: 980 Bytes
Contents
// Copyright Joakim Karlsson & Kim Gräsman 2010-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef IGLOO_ALLOPERATOR_H #define IGLOO_ALLOPERATOR_H #include "collectionoperator.h" namespace snowhouse { struct AllOperator : public CollectionOperator { template <typename ConstraintListType, typename ActualType> void Evaluate(ConstraintListType& list, ResultStack& result, OperatorStack& operators, const ActualType& actual) { unsigned int passed_elements = CollectionConstraintEvaluator<ConstraintListType, ActualType>::Evaluate(*this, list, result, operators, actual); result.push(passed_elements == actual.size()); } }; template<> struct Stringizer<AllOperator> { static std::string ToString(const AllOperator&) { return "all"; } }; } #endif
Version data entries
2 entries across 2 versions & 1 rubygems