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  )

Definition at line 152 of file netcached.hpp.

References Clear().

◆ CNCBlobKeyLight() [2/4]

CNCBlobKeyLight::CNCBlobKeyLight ( const CNCBlobKeyLight another)

Definition at line 156 of file netcached.hpp.

References Copy().

◆ CNCBlobKeyLight() [3/4]

CNCBlobKeyLight::CNCBlobKeyLight ( const string packed_key)

Definition at line 164 of file netcached.hpp.

◆ CNCBlobKeyLight() [4/4]

CNCBlobKeyLight::CNCBlobKeyLight ( const CTempString packed_key)

Definition at line 172 of file netcached.hpp.

Member Function Documentation

◆ Cache()

const CTempString & CNCBlobKeyLight::Cache ( void  ) const

◆ 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

◆ IsValid()

bool CNCBlobKeyLight::IsValid ( void  ) const

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)

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)

Definition at line 168 of file netcached.hpp.

◆ PackBlobKey()

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

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

◆ RawKey()

const CTempString & CNCBlobKeyLight::RawKey ( void  ) const

◆ SetKeyVersion()

void CNCBlobKeyLight::SetKeyVersion ( unsigned int  v)

Definition at line 200 of file netcached.hpp.

References m_KeyVersion.

Referenced by CNCBlobKey::Assign().

◆ SubKey()

const CTempString & CNCBlobKeyLight::SubKey ( void  ) const

◆ UnpackBlobKey()

void CNCBlobKeyLight::UnpackBlobKey ( void  )

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

Definition at line 122 of file netcached.hpp.

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

◆ m_KeyVersion

unsigned int CNCBlobKeyLight::m_KeyVersion

Definition at line 125 of file netcached.hpp.

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

◆ m_PackedKey

string CNCBlobKeyLight::m_PackedKey

Definition at line 121 of file netcached.hpp.

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

◆ m_RawKey

CTempString CNCBlobKeyLight::m_RawKey

Definition at line 123 of file netcached.hpp.

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

◆ m_SubKey

CTempString CNCBlobKeyLight::m_SubKey

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 rev. 669887