CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace model {
32 return [](
const auto&) {
return true; };
37 return [type](
const auto& entity) {
return entity.Type == type; };
42 return [type](
const auto& entity) {
return ToBasicEntityType(entity.Type) == type; };
VerifiableEntityPredicate HasBasicTypeFilter(BasicEntityType type)
Creates a predicate that returns true when an entity has a matching basic entity type.
Definition: VerifiableEntityPredicate.h:41
std::function< bool(TArgs...)> predicate
A predicate function.
Definition: functions.h:31
EntityType
Enumeration of entity types.
Definition: EntityType.h:43
constexpr BasicEntityType ToBasicEntityType(EntityType type)
Converts an entity type into a basic entity type.
Definition: EntityType.h:70
predicate< const VerifiableEntity & > VerifiableEntityPredicate
Prototype for a verifiable entity predicate.
Definition: VerifiableEntityPredicate.h:28
VerifiableEntityPredicate NeverFilter()
Creates a predicate that always returns true.
Definition: VerifiableEntityPredicate.h:31
VerifiableEntityPredicate HasTypeFilter(EntityType type)
Creates a predicate that returns true when an entity has a matching entity type.
Definition: VerifiableEntityPredicate.h:36
Definition: AddressExtractionExtension.cpp:28
BasicEntityType
Definition: EntityType.h:31