CatapultServer
v0.5.0.1 (Elephant)
|
Wrapper around a strongly typed entity and its associated metadata. More...
Public Member Functions | |
constexpr | WeakEntityInfoT () |
Creates an entity info. More... | |
constexpr | WeakEntityInfoT (const TEntity &entity) |
constexpr | WeakEntityInfoT (const TEntity &entity, const Hash256 &hash) |
Creates an entity info around entity and hash. More... | |
constexpr | WeakEntityInfoT (const TEntity &entity, const Hash256 &hash, const BlockHeader &associatedBlockHeader) |
Creates an entity info around entity, hash and associatedBlockHeader. More... | |
constexpr bool | isSet () const |
Returns true if this info has an associated entity. More... | |
constexpr bool | isHashSet () const |
Returns true if this info has an associated hash. More... | |
constexpr bool | isAssociatedBlockHeaderSet () const |
Returns true if this info has an associated block header. More... | |
constexpr const TEntity & | entity () const |
Gets the entity. More... | |
constexpr EntityType | type () const |
Gets the entity type. More... | |
constexpr const Hash256 & | hash () const |
Gets the entity hash. More... | |
constexpr const BlockHeader & | associatedBlockHeader () const |
Gets the associated block header. More... | |
template<typename TEntityResult > | |
WeakEntityInfoT< TEntityResult > | cast () const |
Coerces this info into a differently typed info. More... | |
constexpr bool | operator== (const WeakEntityInfoT &rhs) const |
Returns true if this info is equal to rhs. More... | |
constexpr bool | operator!= (const WeakEntityInfoT &rhs) const |
Returns true if this info is not equal to rhs. More... | |
Private Attributes | |
const TEntity * | m_pEntity |
const Hash256 * | m_pHash |
const BlockHeader * | m_pAssociatedBlockHeader |
Wrapper around a strongly typed entity and its associated metadata.
|
inlineconstexpr |
Creates an entity info.
|
inlineconstexpr |
Creates an entity info around entity.
|
inlineexplicitconstexpr |
Creates an entity info around entity and hash.
|
inlineexplicitconstexpr |
Creates an entity info around entity, hash and associatedBlockHeader.
|
inlineconstexpr |
Gets the associated block header.
|
inline |
Coerces this info into a differently typed info.
|
inlineconstexpr |
Gets the entity.
|
inlineconstexpr |
Gets the entity hash.
|
inlineconstexpr |
Returns true
if this info has an associated block header.
|
inlineconstexpr |
Returns true
if this info has an associated hash.
|
inlineconstexpr |
Returns true
if this info has an associated entity.
|
inlineconstexpr |
Returns true
if this info is not equal to rhs.
|
inlineconstexpr |
Returns true
if this info is equal to rhs.
|
inlineconstexpr |
Gets the entity type.
|
private |
|
private |
|
private |