Word Class Reference

#include <value.h>

List of all members.

Public Member Functions

 Word ()
 Word (const Word &w)
Wordoperator= (const Word &w)
 ~Word ()
Wordclone () const
std::string content (ContentOptions options=Raw) const
bool hasContent (const std::string &s, ContentOptions options=Raw) const
unsigned int nbLetters () const
const Letteroperator[] (unsigned int i) const
const std::vector< Letter * > & letters () const
Letteradd (Letter *w)
void clear ()
bool hasPseudoLetters () const

Friends

class ::valueparser
class Text


Constructor & Destructor Documentation

Word (  ) 

Word ( const Word w  ) 

~Word (  ) 

Remarks:
: internally, the word has pointers on letters. The destructor frees this pointed letters. The correct approach would be to use smart pointers. But in our case, several words cannot share letters through pointers because the class is read-only and the copy operator and copy constructor are disabled (private).


Member Function Documentation

Word & operator= ( const Word w  ) 

Word * clone (  )  const

string content ( ContentOptions  options = Raw  )  const

bool hasContent ( const std::string &  s,
ContentOptions  options = Raw 
) const

unsigned int nbLetters (  )  const

const Letter * operator[] ( unsigned int  i  )  const

const vector< Letter * > & letters (  )  const

Letter * add ( Letter w  ) 

void clear (  ) 

bool hasPseudoLetters (  )  const


Friends And Related Function Documentation

friend class ::valueparser [friend]

friend class Text [friend]


Generated on Wed Jan 24 01:14:43 2007 for XDKBIBTEX by  doxygen 1.5.1