#include "atom.h"
Public Member Functions | |
Atom (const Atom &src) | |
Atom & | operator= (const Atom &src) |
atoms are memory-managed by SymbolTables. | |
const char * | c_str () const |
string-like accessors. | |
int | size () 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.
bool net_instaweb::Atom::operator!= | ( | const Atom & | sym | ) | const [inline] |
This is comparing the underlying char* 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 char* pointers. It is invalid to compare Atoms from different symbol tables.
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 char*.