Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Friends
net_instaweb::Atom Class Reference

#include "atom.h"

List of all members.

Public Member Functions

 Atom (const Atom &src)
Atomoperator= (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 >

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 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.


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 char*.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines