CatapultServer
v0.5.0.1 (Elephant)
|
Tuple composed of an entity and its associated metadata. More...
Public Member Functions | |
EntityInfo ()=default | |
Creates an entity info. More... | |
EntityInfo (const std::shared_ptr< TEntity > &pEntityParam, const Hash256 &hash) | |
Creates an entity info around pEntityParam and its associated metadata (hash). More... | |
operator bool () const noexcept | |
Returns true if the info is not empty and contains a valid entity pointer, false otherwise. More... | |
Public Member Functions inherited from catapult::utils::MoveOnly | |
constexpr | MoveOnly ()=default |
Default constructor. More... | |
~MoveOnly ()=default | |
Default destructor. More... | |
MoveOnly (const NonCopyable &)=delete | |
Disabled copy constructor. More... | |
MoveOnly (MoveOnly &&)=default | |
Default move constructor. More... | |
MoveOnly & | operator= (const MoveOnly &)=delete |
Disabled assignment operator. More... | |
MoveOnly & | operator= (MoveOnly &&)=default |
Default move assignment operator. More... | |
Public Attributes | |
std::shared_ptr< TEntity > | pEntity |
Entity pointer. More... | |
Hash256 | EntityHash |
Entity hash. More... | |
Tuple composed of an entity and its associated metadata.
|
default |
Creates an entity info.
|
inlineexplicit |
Creates an entity info around pEntityParam and its associated metadata (hash).
|
inlineexplicitnoexcept |
Returns true
if the info is not empty and contains a valid entity pointer, false
otherwise.
Hash256 catapult::model::EntityInfo< TEntity >::EntityHash |
Entity hash.
std::shared_ptr<TEntity> catapult::model::EntityInfo< TEntity >::pEntity |
Entity pointer.