IndexOutOfBoundsEvaluator.hpp 860 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-10
  6. * Changed: 2023-02-10
  7. *
  8. * */
  9. #ifndef LS_STD_INDEX_OUT_OF_BOUNDS_EVALUATOR_EVALUATOR_HPP
  10. #define LS_STD_INDEX_OUT_OF_BOUNDS_EVALUATOR_EVALUATOR_HPP
  11. #include <ls-std/core/interface/IEvaluator.hpp>
  12. #include <string>
  13. namespace ls::std::core
  14. {
  15. class IndexOutOfBoundsEvaluator : public ls::std::core::interface_type::IEvaluator
  16. {
  17. public:
  18. explicit IndexOutOfBoundsEvaluator(size_t _index, size_t _size);
  19. explicit IndexOutOfBoundsEvaluator(size_t _index, size_t _size, ::std::string _message);
  20. ~IndexOutOfBoundsEvaluator() override;
  21. void evaluate() override;
  22. private:
  23. size_t index{};
  24. ::std::string message{};
  25. size_t size{};
  26. };
  27. }
  28. #endif