Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Examples  

StringPool::compare Struct Reference

Comparison function that compares the dereferences pointers. More...

#include <stringpool.h>

List of all members.

Public Methods

bool operator() (const string *s1, const string *s2) const throw (runtime_error)


Detailed Description

Comparison function that compares the dereferences pointers.

Returns:
(*s1<*s2)
Exceptions:
runtime_error  if any of the arguments is null.

Definition at line 45 of file stringpool.h.


Member Function Documentation

bool StringPool::compare::operator() const string *    s1,
const string *    s2
const throw (runtime_error)
 

Definition at line 24 of file stringpool.C.

00025                                                 {
00026 if ((s1 == 0) || (s2 == 0) )
00027   throw runtime_error("StringPool::Compare(): null argument");
00028 return *s1 < *s2;
00029 }


The documentation for this struct was generated from the following files:
textindexer-0.2 [27 March, 2002]