|
Page Speed Optimization Libraries
1.13.35.1
|
#include "statistics_template.h"
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 |
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.
|
inlinevirtual |
Return some name representing the variable, provided that the specific implementation has some sensible way of doing so.
Implements net_instaweb::UpDownCounter.
1.8.6