-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathICriterionMatcher.h
More file actions
33 lines (30 loc) · 1.49 KB
/
ICriterionMatcher.h
File metadata and controls
33 lines (30 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
namespace Platform::Interfaces {
template <typename...>
struct ICriterionMatcher;
/// <summary>
/// <para>Defines a criterion matcher, that contains a specific method for determining whether the argument matches the criterion or not.</para>
/// <para>Определяет объект который проверяет соответствие критерию и содержит конкретный метод для определения, соответствует ли аргумент критерию или нет.</para>
/// </summary>
/// <typeparam name="TArgument">
/// <para>Argument type.</para>
/// <para>Тип аргумента.</para>
/// </typeparam>
template <typename TArgument>
struct ICriterionMatcher<TArgument> {
/// <summary>
/// <para>Determines whether the argument matches the criterion.</para>
/// <para>Определяет, соответствует ли аргумент критерию.</para>
/// </summary>
/// <param name="argument">
/// <para>The argument.</para>
/// <para>Аргумент.</para>
/// </param>
/// <returns>
/// <para>A value that determines whether the argument matches the criterion.</para>
/// <para>Значение, определяющие соответствует ли аргумент критерию.</para>
/// </returns>
virtual bool IsMatched(TArgument argument) = 0;
virtual ~ICriterionMatcher() = default;
};
} // namespace Platform::Interfaces