Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::UpDownTemplate< Impl > Class Template Reference

#include "statistics_template.h"

Inheritance diagram for net_instaweb::UpDownTemplate< Impl >:

Public Member Functions

 UpDownTemplate (StringPiece name, Statistics *stats)
virtual int64 Get () const
virtual StringPiece GetName () const
virtual void Set (int64 value)
virtual int64 AddHelper (int64 delta)
 This is virtual so that subclasses can add platform-specific atomicity.
virtual void Clear ()
Impl * impl ()
- Public Member Functions inherited from net_instaweb::UpDownCounter
virtual int64 SetReturningPreviousValue (int64 value)
void Clear ()
int64 Add (int64 delta)

Additional Inherited Members

Detailed Description

template<class Impl>
class net_instaweb::UpDownTemplate< Impl >

Helper class to create UpDownCounter interface implementations given a helper implementation class Impl. Note that the same Impl class can be used for VarTemplate, but UpDownCounter provides a Set method, and will not DCHECK-fail on negative increments.

Member Function Documentation

template<class Impl>
virtual StringPiece net_instaweb::UpDownTemplate< Impl >::GetName ( ) const

Return some name representing the variable, provided that the specific implementation has some sensible way of doing so.

Implements net_instaweb::UpDownCounter.

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