NCBI C++ ToolKit
Public Member Functions | Private Types | Private Attributes | List of all members
CNSTUserCache Class Reference

Search Toolkit Book for CNSTUserCache

#include "nst_users.hpp"
(Private to src/app/netstorage.)

+ Collaboration diagram for CNSTUserCache:

Public Member Functions

 CNSTUserCache ()
 
Int8 GetDBUserID (const CNSTUserID &user) const
 
void SetDBUserID (const CNSTUserID &user, Int8 id)
 
size_t Size (void) const
 

Private Types

typedef map< CNSTUserID, CNSTUserDataTUsers
 

Private Attributes

TUsers m_Users
 
CMutex m_Lock
 

Detailed Description

Definition at line 99 of file nst_users.hpp.

Member Typedef Documentation

◆ TUsers

Definition at line 108 of file nst_users.hpp.

Constructor & Destructor Documentation

◆ CNSTUserCache()

CNSTUserCache::CNSTUserCache ( )

Definition at line 60 of file nst_users.cpp.

Member Function Documentation

◆ GetDBUserID()

Int8 CNSTUserCache::GetDBUserID ( const CNSTUserID user) const

◆ SetDBUserID()

void CNSTUserCache::SetDBUserID ( const CNSTUserID user,
Int8  id 
)

◆ Size()

size_t CNSTUserCache::Size ( void  ) const

Definition at line 88 of file nst_users.cpp.

References m_Lock, m_Users, and map_checker< Container >::size().

Member Data Documentation

◆ m_Lock

CMutex CNSTUserCache::m_Lock
mutableprivate

Definition at line 112 of file nst_users.hpp.

Referenced by GetDBUserID(), SetDBUserID(), and Size().

◆ m_Users

TUsers CNSTUserCache::m_Users
private

Definition at line 110 of file nst_users.hpp.

Referenced by GetDBUserID(), SetDBUserID(), and Size().


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:08:11 2024 by modify_doxy.py rev. 669887