Logo Search packages:      
Sourcecode: verlihub version File versions

nConfig::tCache< IndexType > Class Template Reference

#include <tcache.h>

Inheritance diagram for nConfig::tCache< IndexType >:

nConfig::cConfMySQL nConfig::cConfigBase nConfig::cConfigBaseBase cObj

List of all members.


Detailed Description

template<class IndexType>
class nConfig::tCache< IndexType >

allows to find faster whether user is NOT registered

Author:
Daniel Muller

Definition at line 28 of file tcache.h.


Public Types

typedef tHashTab::tHashType tCacheHash
typedef tHashArray< void * > tHashTab
typedef tItemHash::iterator tIHIt
typedef tcHashListMap
< cConfigItemBase *, unsigned > 
tItemHash
typedef unsigned tItemHashType
typedef vector< size_t > tItemVec
typedef tItemVec::iterator tIVIt

Public Member Functions

cConfigItemBaseAdd (const string &, cConfigItemBase *)
void Add (IndexType const &index)
template<class T>
void AddCol (const char *colName, const char *colType, const char *colDefault, bool colNull, T &var)
void AddPrimaryKey (const char *)
void AllFields (ostream &, bool DoF=true, bool DoV=false, bool IsAff=false, string joint=string(", "))
void AllPKFields (ostream &, bool DoF=true, bool DoV=false, bool IsAff=false, string joint=string(", "))
iteratorbegin ()
void BindNick (int, const string &)
tCacheHash CalcHash (string const &index)
void Clear ()
void CreateTable ()
db_iteratordb_begin ()
db_iteratordb_begin (cQuery &)
db_iteratordb_end ()
 DeclareAddMethods (double)
 DeclareAddMethods (char *)
 DeclareAddMethods (string)
 DeclareAddMethods (__int64)
 DeclareAddMethods (unsigned long)
 DeclareAddMethods (long)
 DeclareAddMethods (unsigned)
 DeclareAddMethods (int)
 DeclareAddMethods (char)
 DeclareAddMethods (bool)
void DeletePK ()
iteratorend ()
int EndQuery (cQuery &)
int EndQuery ()
virtual std::ostream & ErrLog ()
int ErrLog (int level)
bool Find (IndexType const &index)
unsigned GetSync ()
bool IsLoaded ()
virtual int Load (cQuery &)
virtual int Load ()
int LoadAll ()
bool LoadPK ()
virtual std::ostream & Log ()
int Log (int level)
std::ostream & LogStream ()
cConfigItemBaseoperator[] (const string &)
cConfigItemBaseoperator[] (int)
virtual int Save ()
bool SavePK (bool dup=false)
void SelectFields (ostream &)
void SetBaseTo (void *new_base)
void SetClassName (const char *name)
int StartQuery (cQuery &)
int StartQuery ()
int StartQuery (string query)
virtual int StrLog (std::ostream &ostr, int level)
void Sync ()
 tCache (cMySQL &mysql, const char *TableName, const char *IndexName, const char *DateName=NULL)
int Update ()
void UpdateFields (ostream &os)
bool UpdatePK (cQuery &)
bool UpdatePK ()
bool UpdatePKVar (cConfigItemBase *)
bool UpdatePKVar (const char *)
bool UpdatePKVar (const char *var_name, string &new_val)
void WherePKey (ostream &os)

Static Public Member Functions

static int GetCount ()
static void WriteStringConstant (ostream &os, const string &str)

Public Attributes

void * mBasePtr
iterator mBegin
const char * mClassName
iterator mEnd
tItemHash mhItems
cBasicItemCreator * mItemCreator
cMySQLmMySQL
cQuery mQuery
std::ostream * mToLog
tItemVec mvItems

Static Public Attributes

static const string mEmpty
static hHashStr< tItemHashType > msHasher
static int msLogLevel = 4

Protected Attributes

unsigned mCols
const char * mDateName
tHashTab mHashTab
bool mIsLoaded
cTime mLastSync
cTime mLastUpdate
cMySQLTable mMySQLTable
tItemHash mPrimaryKey
int ok

Private Attributes

IndexType mCurIdx

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

Generated by  Doxygen 1.6.0   Back to index