statistical_data::CClientStats Class Reference

Inheritance diagram for statistical_data::CClientStats:

Inheritance graph
[legend]
Collaboration diagram for statistical_data::CClientStats:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CClientStats ()
 ~CClientStats ()
void PutTimeStamp (const time_t t=time(NULL))
void increment (const CmpqsFactortypes::Factortype FType)
 increment the counter for the given type or factor (eg. static,SLP,DLP)
const string info () const
const string XML_info () const

Static Protected Member Functions

static void lock ()
static void unlock ()

Private Attributes

unsigned int counter [Factortype_size]
time_t first_connect
time_t timestamp

Static Private Attributes

static CMutex Mutex
static unsigned int overall_counter [Factortype_size] = {0}


Detailed Description

Definition at line 71 of file mpqsStatistics.cc.


Constructor & Destructor Documentation

statistical_data::CClientStats::CClientStats (  )  [inline]

Definition at line 83 of file mpqsStatistics.cc.

statistical_data::CClientStats::~CClientStats (  )  [inline]

Definition at line 84 of file mpqsStatistics.cc.


Member Function Documentation

static void statistical_data::CClientStats::lock (  )  [inline, static, protected]

Definition at line 79 of file mpqsStatistics.cc.

References CMutex::lock(), and Mutex.

Referenced by increment(), info(), PutTimeStamp(), and XML_info().

Here is the call graph for this function:

static void statistical_data::CClientStats::unlock (  )  [inline, static, protected]

Definition at line 80 of file mpqsStatistics.cc.

References Mutex, and CMutex::unlock().

Referenced by increment(), info(), PutTimeStamp(), and XML_info().

Here is the call graph for this function:

void statistical_data::CClientStats::PutTimeStamp ( const time_t  t = time(NULL)  )  [inline]

Definition at line 86 of file mpqsStatistics.cc.

References lock(), timestamp, and unlock().

Referenced by Cprocess_clients::process_data_stream().

Here is the call graph for this function:

void statistical_data::CClientStats::increment ( const CmpqsFactortypes::Factortype  FType  )  [inline]

increment the counter for the given type or factor (eg. static,SLP,DLP)

Definition at line 94 of file mpqsStatistics.cc.

References counter, lock(), overall_counter, and unlock().

Referenced by Cprocess_clients::process_data_stream().

Here is the call graph for this function:

const string statistical_data::CClientStats::info (  )  const [inline]

Definition at line 101 of file mpqsStatistics.cc.

References counter, CmpqsFactortypes::double_large_prime, first_connect, flush(), lock(), overall_counter, setprecision(), setw(), CmpqsFactortypes::single_large_prime, CmpqsFactortypes::static_prime, timestamp, and unlock().

Here is the call graph for this function:

const string statistical_data::CClientStats::XML_info (  )  const [inline]

Definition at line 127 of file mpqsStatistics.cc.

References counter, CmpqsFactortypes::double_large_prime, first_connect, flush(), lock(), overall_counter, setprecision(), setw(), CmpqsFactortypes::single_large_prime, CmpqsFactortypes::static_prime, timestamp, and unlock().

Here is the call graph for this function:


Member Data Documentation

CMutex statistical_data::CClientStats::Mutex [static, private]

Definition at line 74 of file mpqsStatistics.cc.

Referenced by lock(), and unlock().

unsigned int statistical_data::CClientStats::overall_counter = {0} [static, private]

Definition at line 75 of file mpqsStatistics.cc.

Referenced by increment(), info(), and XML_info().

unsigned int statistical_data::CClientStats::counter[Factortype_size] [private]

Definition at line 76 of file mpqsStatistics.cc.

Referenced by increment(), info(), and XML_info().

time_t statistical_data::CClientStats::first_connect [private]

Definition at line 77 of file mpqsStatistics.cc.

Referenced by info(), and XML_info().

time_t statistical_data::CClientStats::timestamp [private]

Definition at line 77 of file mpqsStatistics.cc.

Referenced by info(), PutTimeStamp(), and XML_info().


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 23:33:02 2007 for Qsieve by  doxygen 1.5.4