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

◆ Here

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

Definition at line 15 of file Here.h.

Typedef Documentation

◆ FileNameHashCacher

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

Definition at line 24 of file Here.h.

◆ FileNameHasher

typedef SourceLocationId FileNameHasher(const char *fileName)

Definition at line 21 of file Here.h.

◆ SourceLocationId

typedef uint32_t SourceLocationId

Definition at line 18 of file Here.h.

Function Documentation

◆ operator<<()

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

Definition at line 54 of file Here.h.

References SourceLocation::print().

◆ UnitFileNameHashCacher()

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

◆ UnitFileNameHashCacher

FileNameHashCacher UnitFileNameHashCacher
static

Definition at line 26 of file Here.h.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors