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

DictEntry Struct Reference

#include <Dict.h>

List of all members.

Public Methods

 DictEntry ()
 constructor

 DictEntry (const string &targ, const string &typ, double pr)
 constructor

char * toBytes (int &numBytes) const
 Encode for binary writing.

int toBytes (char *buffer) const
 Encode for binary writing.

int numBytes () const
 Determine size needed to encode for binary writing.

int fromBytes (char *buffer)
 Initialize from an array of bytes.

bool operator== (const DictEntry &a) const
 Equality on target and type attributes only.

string toString (string delim=";") const

Public Attributes

char * key
Object val
string target
 The target language term.

string type
 POS, etc.

double prob
 freq or Prob


Detailed Description

container for dictionary entries.


Constructor & Destructor Documentation

DictEntry::DictEntry  
 

constructor

DictEntry::DictEntry const string &    targ,
const string &    typ,
double    pr
[inline]
 

constructor


Member Function Documentation

int DictEntry::fromBytes char *    buffer
 

Initialize from an array of bytes.

Parameters:
buffer  data to initialize from
Returns:
number of bytes consumed.

int DictEntry::numBytes  
 

Determine size needed to encode for binary writing.

Returns:
number of bytes needed to encode as an array of bytes.

bool DictEntry::operator== const DictEntry &    a const [inline]
 

Equality on target and type attributes only.

int DictEntry::toBytes char *    buffer const
 

Encode for binary writing.

Parameters:
buffer  char to encode this entry into.
Returns:
number of bytes used.

char* DictEntry::toBytes int &    numBytes const
 

Encode for binary writing.

Parameters:
numBytes  returns length of return value.
Returns:
this entry encoded as an array of bytes.

string DictEntry::toString string    delim = ";" const
 


Member Data Documentation

char* DictEntry::key
 

double DictEntry::prob
 

freq or Prob

string DictEntry::target
 

The target language term.

string DictEntry::type
 

POS, etc.

Object DictEntry::val
 


The documentation for this struct was generated from the following files:
Generated on Wed Nov 3 12:59:29 2004 for Lemur Toolkit by doxygen1.2.18