Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

int Alphabet::operator() ( string const &  s1,
string const &  s2 
)

Get an unique code for every symbol pair. This flavour is for string pairs.

Parameters:
s1 left symbol
s2 right symbol
Returns:
code for (s1,s2)

Definition at line 85 of file Alphabet.C.

References slexic.

{
  return (int const) slexic[s1] * slexic.size() + (int const) slexic[s2];
}


Generated by  Doxygen 1.6.0   Back to index