Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | List of all members
net_instaweb::Atom Class Reference

#include "atom.h"

Public Member Functions

 Atom (const Atom &src)
 
Atomoperator= (const Atom &src)
 atoms are memory-managed by SymbolTables.
 
const StringPiece * Rep () const
 
bool operator== (const Atom &sym) const
 
bool operator!= (const Atom &sym) const
 

Friends

class SymbolTable< CaseFold >
 
class SymbolTable< CasePreserve >
 

Detailed Description

Atoms are idempotent representations of strings, created via a symbol table.

Member Function Documentation

bool net_instaweb::Atom::operator!= ( const Atom sym) const
inline

This is comparing the underlying StringPiece pointers. It is invalid to compare Atoms from different symbol tables.

bool net_instaweb::Atom::operator== ( const Atom sym) const
inline

This is comparing the underlying StringPiece pointers. It is invalid to compare Atoms from different symbol tables.

const StringPiece* net_instaweb::Atom::Rep ( ) const
inline

Returns the address of the canonical StringPiece representing this Atom. The underlying StringPiece object (and its data) are owned by the SymbolTable.

Friends And Related Function Documentation

friend class SymbolTable< CaseFold >
friend

SymbolTable is a friend of Symbol because SymbolTable is the only class that has the right to construct a new Atom from a StringPiece*.


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