Here.h File Reference
#include <iosfwd>
Include dependency graph for Here.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SourceLocation
 a source code location that is cheap to create, copy, and store More...
 

Macros

#define Here()   SourceLocation(__FUNCTION__, __FILE__, __LINE__)
 source code location of the caller More...
 

Typedefs

typedef uint32_t SourceLocationId
 semi-uniquely identifies a source code location; stable across Squid runs More...
 
typedef SourceLocationId FileNameHasher (const char *fileName)
 returns a hash of a file name More...
 
typedef SourceLocationId FileNameHashCacher (const char *fileName, FileNameHasher hasher)
 a caching proxy for hasher results More...
 

Functions

std::ostream & operator<< (std::ostream &os, const SourceLocation &location)
 
static SourceLocationId UnitFileNameHashCacher (const char *fileName, FileNameHasher hasher)
 

Variables

static FileNameHashCacher UnitFileNameHashCacher
 

Macro Definition Documentation

#define Here ( )    SourceLocation(__FUNCTION__, __FILE__, __LINE__)

Typedef Documentation

typedef SourceLocationId FileNameHashCacher(const char *fileName, FileNameHasher hasher)

Definition at line 24 of file Here.h.

typedef SourceLocationId FileNameHasher(const char *fileName)

Definition at line 21 of file Here.h.

typedef uint32_t SourceLocationId

Definition at line 18 of file Here.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const SourceLocation location 
)
inline

Definition at line 55 of file Here.h.

References SourceLocation::print().

static SourceLocationId UnitFileNameHashCacher ( const char *  fileName,
FileNameHasher  hasher 
)
static

SourceLocation::id() speed optimization hack: Caches hasher results. The cache capacity is one filename hash. Each translation unit gets one cache.

Definition at line 63 of file Here.h.

Variable Documentation

FileNameHashCacher UnitFileNameHashCacher
static

Definition at line 26 of file Here.h.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors