Grappa  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Grappa::HistogramMetric Class Reference

#include <HistogramMetric.hpp>

Inheritance diagram for Grappa::HistogramMetric:

Public Member Functions

 HistogramMetric (const char *name, int64_t nil_value, bool reg_new=true)
 
virtual std::ostream & json (std::ostream &o) const
 
virtual void reset ()
 
virtual void sample ()
 
virtual HistogramMetricclone () const
 
virtual void merge_all (impl::MetricBase *static_stat_ptr)
 
int64_t value () const
 Get the current value. More...
 
void set (const int64_t &o)
 
 operator int64_t () const
 
HistogramMetricoperator= (int64_t value)
 

Protected Attributes

int64_t nil_value
 
int64_t value_
 
bool log_initialized
 
std::ofstream log
 

Detailed Description

Definition at line 46 of file HistogramMetric.hpp.

Constructor & Destructor Documentation

Grappa::HistogramMetric::HistogramMetric ( const char *  name,
int64_t  nil_value,
bool  reg_new = true 
)

Definition at line 45 of file HistogramMetric.cpp.

Member Function Documentation

virtual HistogramMetric* Grappa::HistogramMetric::clone ( ) const
inlinevirtual

Definition at line 92 of file HistogramMetric.hpp.

virtual std::ostream& Grappa::HistogramMetric::json ( std::ostream &  o) const
inlinevirtual

Definition at line 65 of file HistogramMetric.hpp.

virtual void Grappa::HistogramMetric::merge_all ( impl::MetricBase *  static_stat_ptr)
inlinevirtual

Definition at line 97 of file HistogramMetric.hpp.

Grappa::HistogramMetric::operator int64_t ( ) const
inline

Definition at line 113 of file HistogramMetric.hpp.

HistogramMetric& Grappa::HistogramMetric::operator= ( int64_t  value)
inline

Definition at line 115 of file HistogramMetric.hpp.

virtual void Grappa::HistogramMetric::reset ( )
inlinevirtual

Definition at line 70 of file HistogramMetric.hpp.

virtual void Grappa::HistogramMetric::sample ( )
inlinevirtual

Definition at line 86 of file HistogramMetric.hpp.

void Grappa::HistogramMetric::set ( const int64_t &  o)
inline

Definition at line 109 of file HistogramMetric.hpp.

int64_t Grappa::HistogramMetric::value ( ) const
inline

Get the current value.

Definition at line 107 of file HistogramMetric.hpp.

Member Data Documentation

std::ofstream Grappa::HistogramMetric::log
protected

Definition at line 52 of file HistogramMetric.hpp.

bool Grappa::HistogramMetric::log_initialized
protected

Definition at line 50 of file HistogramMetric.hpp.

int64_t Grappa::HistogramMetric::nil_value
protected

Definition at line 48 of file HistogramMetric.hpp.

int64_t Grappa::HistogramMetric::value_
protected

Definition at line 49 of file HistogramMetric.hpp.


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