CatapultServer  v0.5.0.1 (Elephant)
AnnotatedEntityRange.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "Block.h"
23 #include "EntityRange.h"
24 #include "Transaction.h"
25 
26 namespace catapult { namespace model {
27 
29  template<typename TEntity>
31  public:
33  AnnotatedEntityRange() = default;
34 
37  {}
38 
40  AnnotatedEntityRange(EntityRange<TEntity>&& range, const Key& sourcePublicKey)
41  : Range(std::move(range))
42  , SourcePublicKey(sourcePublicKey)
43  {}
44 
45  public:
48 
51  };
52 
55 
58 }}
Block.h
catapult::model::AnnotatedEntityRange::AnnotatedEntityRange
AnnotatedEntityRange(EntityRange< TEntity > &&range, const Key &sourcePublicKey)
Creates an annotated entity range around range and a source public key (sourcePublicKey).
Definition: AnnotatedEntityRange.h:40
Transaction.h
catapult::model::AnnotatedEntityRange::AnnotatedEntityRange
AnnotatedEntityRange(EntityRange< TEntity > &&range)
Creates an annotated entity range around range without context.
Definition: AnnotatedEntityRange.h:36
catapult::model::AnnotatedEntityRange
Combination of an entity range and optional context.
Definition: AnnotatedEntityRange.h:30
catapult::model::EntityRange
Represents a range of entities.
Definition: EntityRange.h:31
catapult::model::AnnotatedEntityRange::SourcePublicKey
Key SourcePublicKey
Source public key (optional).
Definition: AnnotatedEntityRange.h:50
catapult::model::AnnotatedEntityRange::AnnotatedEntityRange
AnnotatedEntityRange()=default
Creates a default annotated entity range.
catapult::model::AnnotatedEntityRange::Range
EntityRange< TEntity > Range
Entity range.
Definition: AnnotatedEntityRange.h:47
EntityRange.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >