Page Speed Optimization Libraries  1.2.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::RewriteOptions::Property< ValueType > Class Template Reference

#include "rewrite_options.h"

Inheritance diagram for net_instaweb::RewriteOptions::Property< ValueType >:
net_instaweb::RewriteOptions::PropertyBase

List of all members.

Public Member Functions

 Property (ValueType default_value, const char *id, OptionEnum option_enum)
void set_default (ValueType value)
const ValueType & default_value () const

Detailed Description

template<class ValueType>
class net_instaweb::RewriteOptions::Property< ValueType >

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.


Constructor & Destructor Documentation

template<class ValueType>
net_instaweb::RewriteOptions::Property< ValueType >::Property ( ValueType  default_value,
const char *  id,
OptionEnum  option_enum 
) [inline]

When adding a new Property, we take the default_value by value, not const-reference. This is because when calling add_option we may want to use a compile-time constant (e.g. Timer::kHourMs) which does not have a linkable address.


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