Random.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_ACL_RANDOM_H
10#define SQUID_ACL_RANDOM_H
11
12#include "acl/Acl.h"
13
14class ACLRandom : public ACL
15{
17
18public:
19 ACLRandom(char const *);
20 ~ACLRandom();
21
22 virtual char const *typeString() const;
23 virtual void parse();
24 virtual int match(ACLChecklist *checklist);
25 virtual SBufList dump() const;
26 virtual bool empty () const;
27 virtual bool valid() const;
28
29protected:
30 double data; // value to be exceeded before this ACL will match
31 char pattern[256]; // pattern from config file. Used to generate 'data'
32 char const *class_;
33};
34
35#endif /* SQUID_ACL_RANDOM_H */
36
double data
Definition: Random.h:30
virtual char const * typeString() const
Definition: Random.cc:29
virtual void parse()
parses node representation in squid.conf; dies on failures
Definition: Random.cc:50
ACLRandom(char const *)
Definition: Random.cc:20
virtual int match(ACLChecklist *checklist)
Matches the actual data in checklist against this ACL.
Definition: Random.cc:93
virtual SBufList dump() const
Definition: Random.cc:109
virtual bool valid() const
Definition: Random.cc:41
char const * class_
Definition: Random.h:32
~ACLRandom()
Definition: Random.cc:25
MEMPROXY_CLASS(ACLRandom)
char pattern[256]
Definition: Random.h:31
virtual bool empty() const
Definition: Random.cc:35
Definition: Acl.h:40
std::list< SBuf > SBufList
Definition: forward.h:23

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors