Public Member Functions

 ~Impl ()
 
int add (std::shared_ptr< WithId > item)
 
void release (int id)
 
std::shared_ptr< WithIdget (int id) const
 

Private Attributes

QMutex m_mutex
 
std::unordered_map< int, std::shared_ptr< WithId > > m_items
 

Detailed Description

Definition at line 45 of file ById.cpp.

Constructor & Destructor Documentation

AnyById::Impl::~Impl ( )
inline

Definition at line 48 of file ById.cpp.

References SVCERR.

Member Function Documentation

int AnyById::Impl::add ( std::shared_ptr< WithId item)
inline

Definition at line 76 of file ById.cpp.

References IdAlloc::NO_ID, and SVCERR.

void AnyById::Impl::release ( int  id)
inline

Definition at line 98 of file ById.cpp.

References IdAlloc::NO_ID, and SVCERR.

std::shared_ptr<WithId> AnyById::Impl::get ( int  id) const
inline

Definition at line 113 of file ById.cpp.

References IdAlloc::NO_ID.

Member Data Documentation

QMutex AnyById::Impl::m_mutex
mutableprivate

Definition at line 127 of file ById.cpp.

std::unordered_map<int, std::shared_ptr<WithId> > AnyById::Impl::m_items
private

Definition at line 128 of file ById.cpp.


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