Page Speed Optimization Libraries
1.13.35.1
|
#include "atom.h"
Public Member Functions | |
Atom (const Atom &src) | |
Atom & | operator= (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 > |
Atoms are idempotent representations of strings, created via a symbol table.
|
inline |
This is comparing the underlying StringPiece pointers. It is invalid to compare Atoms from different symbol tables.
|
inline |
This is comparing the underlying StringPiece pointers. It is invalid to compare Atoms from different symbol tables.
|
inline |
Returns the address of the canonical StringPiece representing this Atom. The underlying StringPiece object (and its data) are owned by the SymbolTable.
|
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*.