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

Search Toolkit Book for CNCBlobKeyLight

#include "netcached.hpp"
(Private to src/app/netcache.)

+ Inheritance diagram for CNCBlobKeyLight:
+ Collaboration diagram for CNCBlobKeyLight:

Public Member Functions

 CNCBlobKeyLight (void)
 
 CNCBlobKeyLight (const CNCBlobKeyLight &another)
 
CNCBlobKeyLightoperator= (const CNCBlobKeyLight &another)
 
 CNCBlobKeyLight (const string &packed_key)
 
CNCBlobKeyLightoperator= (const string &packed_key)
 
 CNCBlobKeyLight (const CTempString &packed_key)
 
CNCBlobKeyLightoperator= (const CTempString &packed_key)
 
CNCBlobKeyLightCopy (const CNCBlobKeyLight &another)
 
void Clear (void)
 
bool IsValid (void) const
 
unsigned int KeyVersion (void) const
 
bool IsICacheKey (void) const
 
const stringPackedKey (void) const
 
const CTempStringRawKey (void) const
 
const CTempStringSubKey (void) const
 
const CTempStringCache (void) const
 
string KeyForLogs (void) const
 

Protected Member Functions

void PackBlobKey (const CTempString &cache_name, const CTempString &blob_key, const CTempString &blob_subkey)
 
void UnpackBlobKey (void)
 
void SetKeyVersion (unsigned int v)
 

Private Attributes

string m_PackedKey
 
CTempString m_Cachename
 
CTempString m_RawKey
 
CTempString m_SubKey
 
unsigned int m_KeyVersion
 

Detailed Description

Definition at line 89 of file netcached.hpp.

Constructor & Destructor Documentation

◆ CNCBlobKeyLight() [1/4]

CNCBlobKeyLight::CNCBlobKeyLight ( void  )
inline

Definition at line 152 of file netcached.hpp.

References Clear().

◆ CNCBlobKeyLight() [2/4]

CNCBlobKeyLight::CNCBlobKeyLight ( const CNCBlobKeyLight another)
inline

Definition at line 156 of file netcached.hpp.

References Copy().

◆ CNCBlobKeyLight() [3/4]

CNCBlobKeyLight::CNCBlobKeyLight ( const string packed_key)
inline

Definition at line 164 of file netcached.hpp.

◆ CNCBlobKeyLight() [4/4]

CNCBlobKeyLight::CNCBlobKeyLight ( const CTempString packed_key)
inline

Definition at line 172 of file netcached.hpp.

Member Function Documentation

◆ Cache()

const CTempString & CNCBlobKeyLight::Cache ( void  ) const
inline

◆ Clear()

void CNCBlobKeyLight::Clear ( void  )

◆ Copy()

CNCBlobKeyLight & CNCBlobKeyLight::Copy ( const CNCBlobKeyLight another)

Definition at line 165 of file netcached.cpp.

References m_KeyVersion, m_PackedKey, and UnpackBlobKey().

Referenced by CNCBlobKeyLight(), and operator=().

◆ IsICacheKey()

bool CNCBlobKeyLight::IsICacheKey ( void  ) const
inline

◆ IsValid()

bool CNCBlobKeyLight::IsValid ( void  ) const
inline

Definition at line 196 of file netcached.hpp.

References CTempString::empty(), and RawKey().

Referenced by CNCMessageHandler::x_StartCommand().

◆ KeyForLogs()

string CNCBlobKeyLight::KeyForLogs ( void  ) const

◆ KeyVersion()

unsigned int CNCBlobKeyLight::KeyVersion ( void  ) const

◆ operator=() [1/3]

CNCBlobKeyLight & CNCBlobKeyLight::operator= ( const CNCBlobKeyLight another)
inline

Definition at line 160 of file netcached.hpp.

References Copy().

◆ operator=() [2/3]

CNCBlobKeyLight & CNCBlobKeyLight::operator= ( const CTempString packed_key)

◆ operator=() [3/3]

CNCBlobKeyLight & CNCBlobKeyLight::operator= ( const string packed_key)
inline

Definition at line 168 of file netcached.hpp.

◆ PackBlobKey()

void CNCBlobKeyLight::PackBlobKey ( const CTempString cache_name,
const CTempString blob_key,
const CTempString blob_subkey 
)
protected

Definition at line 183 of file netcached.cpp.

References CTempString::data(), m_PackedKey, and CTempString::size().

Referenced by CNCBlobKey::Assign().

◆ PackedKey()

const string & CNCBlobKeyLight::PackedKey ( void  ) const
inline

◆ RawKey()

const CTempString & CNCBlobKeyLight::RawKey ( void  ) const
inline

◆ SetKeyVersion()

void CNCBlobKeyLight::SetKeyVersion ( unsigned int  v)
inlineprotected

Definition at line 200 of file netcached.hpp.

References m_KeyVersion.

Referenced by CNCBlobKey::Assign().

◆ SubKey()

const CTempString & CNCBlobKeyLight::SubKey ( void  ) const
inline

◆ UnpackBlobKey()

void CNCBlobKeyLight::UnpackBlobKey ( void  )
protected

Definition at line 195 of file netcached.cpp.

References CTempString::assign(), m_Cachename, m_PackedKey, m_RawKey, and m_SubKey.

Referenced by CNCBlobKey::Assign(), Copy(), and operator=().

Member Data Documentation

◆ m_Cachename

CTempString CNCBlobKeyLight::m_Cachename
private

Definition at line 122 of file netcached.hpp.

Referenced by Cache(), Clear(), IsICacheKey(), KeyForLogs(), and UnpackBlobKey().

◆ m_KeyVersion

unsigned int CNCBlobKeyLight::m_KeyVersion
private

Definition at line 125 of file netcached.hpp.

Referenced by Clear(), Copy(), KeyVersion(), operator=(), and SetKeyVersion().

◆ m_PackedKey

string CNCBlobKeyLight::m_PackedKey
private

Definition at line 121 of file netcached.hpp.

Referenced by Clear(), Copy(), operator=(), PackBlobKey(), PackedKey(), and UnpackBlobKey().

◆ m_RawKey

CTempString CNCBlobKeyLight::m_RawKey
private

Definition at line 123 of file netcached.hpp.

Referenced by Clear(), KeyForLogs(), KeyVersion(), RawKey(), and UnpackBlobKey().

◆ m_SubKey

CTempString CNCBlobKeyLight::m_SubKey
private

Definition at line 124 of file netcached.hpp.

Referenced by Clear(), KeyForLogs(), SubKey(), and UnpackBlobKey().


The documentation for this class was generated from the following files:
Modified on Wed Feb 28 07:14:00 2024 by modify_doxy.py rev. 669887