CUBRID Engine  latest
cubperf::stat_definition Class Reference

#include <perf.hpp>

Collaboration diagram for cubperf::stat_definition:
Collaboration graph

Public Types

enum  type { COUNTER, TIMER, COUNTER_AND_TIMER }
 

Public Member Functions

 stat_definition (const stat_id id, type stat_type, const char *first_name, const char *second_name=NULL)
 
 stat_definition (const stat_definition &other)
 
stat_definitionoperator= (const stat_definition &other)
 
std::size_t get_value_count (void) const
 

Private Member Functions

 stat_definition (void)
 

Private Attributes

stat_id m_id
 
type m_type
 
const char * m_names [MAX_VALUE_COUNT]
 
std::size_t m_offset
 

Static Private Attributes

static const std::size_t MAX_VALUE_COUNT = 2
 

Friends

class statset_definition
 

Detailed Description

Definition at line 104 of file perf.hpp.

Member Enumeration Documentation

Enumerator
COUNTER 
TIMER 
COUNTER_AND_TIMER 

Definition at line 109 of file perf.hpp.

Constructor & Destructor Documentation

cubperf::stat_definition::stat_definition ( const stat_id  id,
type  stat_type,
const char *  first_name,
const char *  second_name = NULL 
)

Definition at line 41 of file perf.cpp.

References m_offset.

cubperf::stat_definition::stat_definition ( const stat_definition other)

Definition at line 51 of file perf.cpp.

References m_names, and m_offset.

cubperf::stat_definition::stat_definition ( void  )
private

Definition at line 36 of file perf.cpp.

Member Function Documentation

std::size_t cubperf::stat_definition::get_value_count ( void  ) const

Definition at line 75 of file perf.cpp.

References m_type.

Referenced by cubperf::statset_definition::statset_definition().

Here is the caller graph for this function:

stat_definition & cubperf::stat_definition::operator= ( const stat_definition other)

Definition at line 61 of file perf.cpp.

References i, m_id, m_names, m_offset, m_type, and MAX_VALUE_COUNT.

Friends And Related Function Documentation

friend class statset_definition
friend

Definition at line 126 of file perf.hpp.

Member Data Documentation

stat_id cubperf::stat_definition::m_id
private

Definition at line 133 of file perf.hpp.

Referenced by operator=().

const char* cubperf::stat_definition::m_names[MAX_VALUE_COUNT]
private
std::size_t cubperf::stat_definition::m_offset
private
const std::size_t cubperf::stat_definition::MAX_VALUE_COUNT = 2
staticprivate

Definition at line 131 of file perf.hpp.

Referenced by operator=().


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