Page Speed Optimization Libraries
1.13.35.1
|
#include "statistics.h"
Public Member Functions | |
virtual int64 | Get () const =0 |
virtual StringPiece | GetName () const =0 |
int64 | Add (int64 non_negative_delta) |
Adds 'delta' to the variable's value, returning the result. | |
virtual void | Clear ()=0 |
Protected Member Functions | |
virtual int64 | AddHelper (int64 delta)=0 |
This is virtual so that subclasses can add platform-specific atomicity. | |
Variables can normally only be increased, not decreased. However, for testing, They can also be Cleared.
|
pure virtual |
Return some name representing the variable, provided that the specific implementation has some sensible way of doing so.
Implemented in net_instaweb::VarTemplate< Impl >, net_instaweb::VarTemplate< SharedMemVariable >, net_instaweb::VarTemplate< NullStatisticsVariable >, net_instaweb::VarTemplate< SimpleStatsVariable >, and net_instaweb::SplitVariable.