MarlinMT
0.1.0
|
Wrapper for weak pointer to Entry. More...
#include <Selection.h>
Public Member Functions | |
bool | valid () const |
check if WeakEntry is usable. More... | |
const EntryKey & | key () const |
get key from Entry. More... | |
template<typename T > | |
Handle< Entry< T > > | handle () const |
create new Handle for Entry. More... | |
Private Member Functions | |
WeakEntry (const std::shared_ptr< const details::Entry > &entry) | |
WeakEntry (const std::shared_ptr< details::Entry > &entry) | |
WeakEntry ()=default | |
Private Attributes | |
friend | Selection |
friend | BookStore |
std::weak_ptr< const details::Entry > | _entry {} |
wake reference to Entry More... | |
Wrapper for weak pointer to Entry.
Mainly used for Selections.
Definition at line 29 of file Selection.h.
|
explicitprivate |
Definition at line 8 of file Selection.cc.
|
explicitprivate |
Definition at line 11 of file Selection.cc.
|
privatedefault |
Referenced by marlinmt::book::Selection::findFirst().
BookStoreException | when WeakEntry is invalid. |
Definition at line 58 of file Selection.h.
References _entry, MARLIN_BOOK_THROW, and valid().
const EntryKey & marlinmt::book::WeakEntry::key | ( | ) | const |
get key from Entry.
Definition at line 18 of file Selection.cc.
References _entry.
Referenced by marlinmt::book::Selection::find(), and marlinmt::BookStoreManager::getKey().
bool marlinmt::book::WeakEntry::valid | ( | ) | const |
check if WeakEntry is usable.
Definition at line 14 of file Selection.cc.
References _entry.
Referenced by marlinmt::book::Selection::find(), marlinmt::BookStoreManager::getKey(), and handle().
|
private |
|
private |
Definition at line 31 of file Selection.h.
|
private |
Definition at line 30 of file Selection.h.