a representation of a refresh pattern. More...

#include <RefreshPattern.h>

Collaboration diagram for RefreshPattern:

Classes

struct  stats_
 

Public Types

using RegexPointer = std::unique_ptr< RegexPattern >
 

Public Member Functions

 RefreshPattern (RegexPointer aRegex)
 
 ~RefreshPattern ()
 
void printHead (std::ostream &) const
 reports configuration excluding trailing options More...
 
void printPattern (std::ostream &os) const
 reports the configured pattern or a fake pattern of the implicit rule More...
 
const RegexPatternregex () const
 configured regex; do not use except when iterating configured rules More...
 

Public Attributes

time_t min
 
double pct
 
time_t max
 
RefreshPatternnext
 
struct {
   bool   refresh_ims
 
   bool   store_stale
 
   bool   override_expire
 
   bool   override_lastmod
 
   bool   reload_into_ims
 
   bool   ignore_reload
 
   bool   ignore_no_store
 
   bool   ignore_private
 
flags
 
int max_stale
 
struct RefreshPattern::stats_ stats
 

Private Member Functions

 MEMPROXY_CLASS (RefreshPattern)
 

Private Attributes

RegexPointer regex_
 configured regex or, for the implicit refresh_pattern rule, nil More...
 

Detailed Description

Definition at line 17 of file RefreshPattern.h.

Member Typedef Documentation

◆ RegexPointer

using RefreshPattern::RegexPointer = std::unique_ptr<RegexPattern>

Definition at line 31 of file RefreshPattern.h.

Constructor & Destructor Documentation

◆ RefreshPattern()

RefreshPattern::RefreshPattern ( RegexPointer  aRegex)
inlineexplicit

Definition at line 35 of file RefreshPattern.h.

References flags.

◆ ~RefreshPattern()

RefreshPattern::~RefreshPattern ( )
inline

Definition at line 44 of file RefreshPattern.h.

References next.

Member Function Documentation

◆ MEMPROXY_CLASS()

RefreshPattern::MEMPROXY_CLASS ( RefreshPattern  )
private

◆ printHead()

void RefreshPattern::printHead ( std::ostream &  os) const

Definition at line 738 of file refresh.cc.

References max, min, pct, and printPattern().

Referenced by operator<<().

◆ printPattern()

void RefreshPattern::printPattern ( std::ostream &  os) const

Definition at line 729 of file refresh.cc.

References regex_.

Referenced by printHead().

◆ regex()

const RegexPattern & RefreshPattern::regex ( ) const

Definition at line 722 of file refresh.cc.

References assert, and regex_.

Member Data Documentation

◆ flags

struct { ... } RefreshPattern::flags

◆ ignore_no_store

bool RefreshPattern::ignore_no_store

Definition at line 65 of file RefreshPattern.h.

Referenced by configDoConfigure(), and parse_refreshpattern().

◆ ignore_private

bool RefreshPattern::ignore_private

Definition at line 66 of file RefreshPattern.h.

Referenced by configDoConfigure(), and parse_refreshpattern().

◆ ignore_reload

bool RefreshPattern::ignore_reload

Definition at line 64 of file RefreshPattern.h.

Referenced by configDoConfigure(), parse_refreshpattern(), and refreshCheck().

◆ max

time_t RefreshPattern::max

Definition at line 54 of file RefreshPattern.h.

Referenced by getMaxAge(), parse_refreshpattern(), printHead(), and refreshStaleness().

◆ max_stale

int RefreshPattern::max_stale

Definition at line 69 of file RefreshPattern.h.

Referenced by parse_refreshpattern(), and refreshCheck().

◆ min

time_t RefreshPattern::min

Definition at line 52 of file RefreshPattern.h.

Referenced by parse_refreshpattern(), printHead(), and refreshStaleness().

◆ next

◆ override_expire

bool RefreshPattern::override_expire

Definition at line 61 of file RefreshPattern.h.

Referenced by configDoConfigure(), parse_refreshpattern(), and refreshCheck().

◆ override_lastmod

bool RefreshPattern::override_lastmod

Definition at line 62 of file RefreshPattern.h.

Referenced by configDoConfigure(), parse_refreshpattern(), and refreshCheck().

◆ pct

double RefreshPattern::pct

Definition at line 53 of file RefreshPattern.h.

Referenced by parse_refreshpattern(), printHead(), and refreshStaleness().

◆ refresh_ims

bool RefreshPattern::refresh_ims

Definition at line 58 of file RefreshPattern.h.

Referenced by parse_refreshpattern(), and refreshCheck().

◆ regex_

RegexPointer RefreshPattern::regex_
private

Definition at line 92 of file RefreshPattern.h.

Referenced by printPattern(), and regex().

◆ reload_into_ims

bool RefreshPattern::reload_into_ims

Definition at line 63 of file RefreshPattern.h.

Referenced by configDoConfigure(), parse_refreshpattern(), and refreshCheck().

◆ stats

struct RefreshPattern::stats_ RefreshPattern::stats

◆ store_stale

bool RefreshPattern::store_stale

Definition at line 59 of file RefreshPattern.h.

Referenced by parse_refreshpattern().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors