Page Speed Optimization Libraries
1.6.29.3
|
#include "rewrite_options.h"
Public Member Functions | |
Property (ValueType default_value, const char *id, StringPiece option_name) | |
void | set_default (ValueType value) |
const ValueType & | default_value () const |
Type-specific class of Property. This subclass of PropertyBase knows what sort of value the Option will hold, and so we can put the default value here.
net_instaweb::RewriteOptions::Property< ValueType >::Property | ( | ValueType | default_value, |
const char * | id, | ||
StringPiece | option_name | ||
) | [inline] |
When adding a new Property, we take the default_value by value, not const-reference. This is because when calling AddProperty we may want to use a compile-time constant (e.g. Timer::kHourMs) which does not have a linkable address.