Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::gen::identifier Class Reference

An identifier. More...

#include <more/gen/identifier.h>

List of all members.

Public Types

Public Methods

Friends


Detailed Description

An identifier.

This is just a simple string-like class with constant-time comparison. String manipulation is not provided by intention, as that would lead to generation of redundant unique string pointers. Use std::string or gc_string to create the string first, if needed.


Member Typedef Documentation

typedef std::size_t more::gen::identifier::size_type
 


Constructor & Destructor Documentation

more::gen::identifier::identifier   [inline]
 

Construct an invalid identifier.

Ideally this ctor would create an anonymous unique identifier, but that may have lead to many redundant allocations declared and defined separately.

more::gen::identifier::identifier char const *    str
 

Construct an object identified by "str".


Member Function Documentation

char const* more::gen::identifier::c_str   const [inline]
 

Return a C string which is lexically equal to the string this object was constructed from.

bool more::gen::identifier::is_defined   const [inline]
 

True iff the identifier is valid.

size_type more::gen::identifier::length   const [inline]
 

bool more::gen::identifier::operator!= identifier const &    rhs const [inline]
 

True if the identifiers are different.

bool more::gen::identifier::operator< identifier const &    rhs const [inline]
 

Provides an arbitrary ordering if identifiers.

bool more::gen::identifier::operator== identifier const &    rhs const [inline]
 

Equivalent to "strcmp(c_str(), rhs.c_str()) == 0", but faster.

void more::gen::identifier::sync io::syncstream  
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &   ,
identifier const &   
[friend]
 


The documentation for this class was generated from the following file:
Generated on Sat Sep 7 19:12:29 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.