Page Speed Optimization Libraries  1.6.29.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::SplitVariable Class Reference

#include "split_statistics.h"

List of all members.

Public Member Functions

 SplitVariable (Variable *rw, Variable *w)
virtual void Set (int64 new_value)
virtual int64 SetReturningPreviousValue (int64 new_value)
virtual int64 Get () const
virtual StringPiece GetName () const
virtual int64 Add (int delta)

Detailed Description

A statistics variable that forwards writes to two other Variable objects, but reads only from one.


Constructor & Destructor Documentation

net_instaweb::SplitVariable::SplitVariable ( Variable *  rw,
Variable *  w 
)

Variable 'rw' will be used to read and write, variable 'w' will be used for writes only. Does not take ownership of either 'rw' or 'w'. 'rw' and 'w' must be non-NULL.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines