CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::MoveOnly Class Reference

A class that can be moved but not copied. More...

Inherited by catapult::deltaset::BaseSet< TElementTraits, TStorageTraits, detail::OrderedSetCommitPolicy< TStorageTraits > >, catapult::cache::BasicLockInfoCacheDelta< HashLockInfoCacheDescriptor, HashLockInfoCacheTypes >, catapult::cache::BasicLockInfoCacheDelta< SecretLockInfoCacheDescriptor, SecretLockInfoCacheTypes >, catapult::cache::BasicLockInfoCacheView< HashLockInfoCacheDescriptor, HashLockInfoCacheTypes >, catapult::cache::BasicLockInfoCacheView< SecretLockInfoCacheDescriptor, SecretLockInfoCacheTypes >, catapult::cache::BasicTransactionsCacheModifierProxy< model::DetachedTransactionInfo, PtCacheModifier >, catapult::cache::BasicTransactionsCacheModifierProxy< model::TransactionInfo, UtCacheModifier >, catapult::cache::BasicAccountRestrictionCacheDelta, catapult::cache::BasicAccountRestrictionCacheView, catapult::cache::BasicAccountStateCacheDelta, catapult::cache::BasicAccountStateCacheView, catapult::cache::BasicBlockDifficultyCacheDelta, catapult::cache::BasicBlockDifficultyCacheView, catapult::cache::BasicCache< TCacheDescriptor, TBaseSet, TSubViewArgs >, catapult::cache::BasicHashCacheDelta, catapult::cache::BasicHashCacheView, catapult::cache::BasicLockInfoCacheDelta< TDescriptor, TCacheTypes >, catapult::cache::BasicLockInfoCacheView< TDescriptor, TCacheTypes >, catapult::cache::BasicMosaicCacheDelta, catapult::cache::BasicMosaicCacheView, catapult::cache::BasicMultisigCacheDelta, catapult::cache::BasicMultisigCacheView, catapult::cache::BasicNamespaceCacheDelta, catapult::cache::BasicNamespaceCacheView, catapult::cache::BasicTransactionsCacheModifierProxy< TTransactionInfo, TTransactionsCacheModifier >, catapult::cache::CacheChanges, catapult::cache::CacheHeightModifier, catapult::cache::CacheHeightView, catapult::deltaset::BaseSet< TElementTraits, TSetTraits, TCommitPolicy >, catapult::harvesting::UnlockedAccountsModifier [private], catapult::harvesting::UnlockedAccountsView [private], catapult::io::BlockStorageModifier [private], catapult::io::BlockStorageView [private], catapult::io::RawFile, catapult::ionet::NodeContainerModifier [private], catapult::ionet::NodeContainerView [private], catapult::ionet::ServerPacketHandlerContext, catapult::model::EntityInfo< TEntity >, catapult::model::EntityRange< TEntity >, catapult::mongo::MongoErrorPolicy [private], catapult::state::CompactMosaicMap [private], catapult::thread::future< T >, catapult::thread::promise< T >, catapult::utils::ImmutableValue< TValue >, catapult::model::EntityInfo< const Transaction >, catapult::model::EntityRange< KeyType >, catapult::utils::ImmutableValue< Height::ValueType >, catapult::utils::ImmutableValue< uint32_t >, catapult::utils::ImmutableValue< uint64_t >, and catapult::utils::ImmutableValue< ValueType >.

Public Member Functions

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...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 

Detailed Description

A class that can be moved but not copied.

Constructor & Destructor Documentation

◆ MoveOnly() [1/3]

constexpr catapult::utils::MoveOnly::MoveOnly ( )
constexprdefault

Default constructor.

◆ ~MoveOnly()

catapult::utils::MoveOnly::~MoveOnly ( )
default

Default destructor.

◆ MoveOnly() [2/3]

catapult::utils::MoveOnly::MoveOnly ( const NonCopyable )
delete

Disabled copy constructor.

◆ MoveOnly() [3/3]

catapult::utils::MoveOnly::MoveOnly ( MoveOnly &&  )
default

Default move constructor.

Member Function Documentation

◆ operator=() [1/2]

MoveOnly& catapult::utils::MoveOnly::operator= ( const MoveOnly )
delete

Disabled assignment operator.

◆ operator=() [2/2]

MoveOnly& catapult::utils::MoveOnly::operator= ( MoveOnly &&  )
default

Default move assignment operator.


The documentation for this class was generated from the following file: