|
CatapultServer
v0.5.0.1 (Elephant)
|
A read only view on top of unlocked accounts. More...


Public Member Functions | |
| UnlockedAccountsView (const std::vector< crypto::KeyPair > &keyPairs, utils::SpinReaderWriterLock::ReaderLockGuard &&readLock) | |
| Creates a view around keyPairs with lock context readLock. More... | |
| size_t | size () const |
| Returns the number of unlocked accounts. More... | |
| bool | contains (const Key &publicKey) const |
Returns true if the public key belongs to an unlocked account, false otherwise. More... | |
| auto | begin () const |
| Returns a const iterator to the first element of the underlying container. More... | |
| auto | end () const |
| Returns a const iterator to the element following the last element of the underlying container. More... | |
Private Attributes | |
| const std::vector< crypto::KeyPair > & | m_keyPairs |
| utils::SpinReaderWriterLock::ReaderLockGuard | m_readLock |
Additional Inherited Members | |
Private 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... | |
A read only view on top of unlocked accounts.
|
inlineexplicit |
Creates a view around keyPairs with lock context readLock.
|
inline |
Returns a const iterator to the first element of the underlying container.
| bool catapult::harvesting::UnlockedAccountsView::contains | ( | const Key & | publicKey | ) | const |
Returns true if the public key belongs to an unlocked account, false otherwise.
|
inline |
Returns a const iterator to the element following the last element of the underlying container.
| size_t catapult::harvesting::UnlockedAccountsView::size | ( | ) | const |
Returns the number of unlocked accounts.
|
private |
|
private |