Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::Set Class Reference

#include <Set.h>

Inheritance diagram for PLearn::Set:

Inheritance graph
[legend]
Collaboration diagram for PLearn::Set:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Set ()
 Set (PPointableSet *p)
bool contains (int elem)
SetIterator find (int elem)
void insert (int elem)
int size ()
bool isEmpty ()
void remove (int elem)
void clear ()
void replace (int old_elem, int new_elem)
void merge (Set s)
void difference (Set s)
void intersection (Set s)
SetIterator begin ()
SetIterator end ()
bool operator== (Set &s)
bool operator!= (Set &s)

Constructor & Destructor Documentation

PLearn::Set::Set  )  [inline]
 

Definition at line 29 of file Set.h.

PLearn::Set::Set PPointableSet p  )  [inline]
 

Definition at line 30 of file Set.h.


Member Function Documentation

SetIterator PLearn::Set::begin  )  [inline]
 

Definition at line 75 of file Set.h.

References PLearn::SetIterator.

Referenced by PLearn::TextSenseSequenceVMatrix::build_(), PLearn::GraphicalBiText::build_(), PLearn::check_prob(), PLearn::GraphicalBiText::check_set_pA(), PLearn::GraphicalBiText::compute_BN_likelihood(), PLearn::GraphicalBiText::compute_efs_likelihood(), PLearn::GraphicalBiText::compute_likelihood(), PLearn::GraphicalBiText::compute_node_level(), PLearn::GraphicalBiText::compute_nodemap(), PLearn::GraphicalBiText::compute_pMC(), PLearn::GraphicalBiText::compute_pTC(), PLearn::GraphicalBiText::computeKL(), PLearn::WordNetOntology::computeWordSenseUniqueIds(), PLearn::difference(), difference(), PLearn::GraphicalBiText::distribute_pS_on_ancestors(), PLearn::WordNetOntology::extractAncestors(), PLearn::WordNetOntology::extractDescendants(), PLearn::WordNetOntology::extractStrictDescendants(), PLearn::WordNetOntology::extractWordHighLevelSenses(), PLearn::WordNetOntology::extractWordNounAndVerbHighLevelSenses(), PLearn::WordNetOntology::fillTempWordToHighLevelSensesTVecMap(), PLearn::WordNetOntology::fillTempWordToSensesTVecMap(), PLearn::WordNetOntology::getCategoriesAtLevel(), PLearn::WordNetOntology::getCategoriesUnderLevel(), PLearn::GraphicalBiText::getDeepestCommonAncestor(), PLearn::WordNetOntology::getDescendantCategoriesAtLevel(), PLearn::WordNetOntology::getDownToUpParentCategoriesAtLevel(), PLearn::WordNetOntology::getPredominentSyntacticClassForWord(), PLearn::WordNetOntology::getSecondLevelSensesForWord(), PLearn::WordNetOntology::getSyntacticClassesForWord(), PLearn::WordNetOntology::getSyntacticClassForSense(), PLearn::WordNetOntology::getThirdLevelSensesForWord(), PLearn::GraphicalBiText::init(), PLearn::WordNetOntology::intersectAncestorsAndSenses(), PLearn::intersection(), intersection(), PLearn::merge(), merge(), PLearn::operator<<(), PLearn::WordNetOntology::overlappingSynsets(), PLearn::print(), PLearn::GraphicalBiText::print(), PLearn::GraphicalBiText::print_sensemap(), PLearn::GraphicalBiText::printNode(), PLearn::WordNetOntology::printNodes(), PLearn::WordNetOntology::printOntology(), PLearn::WordNetOntology::printWordAncestors(), PLearn::WordNetOntology::propagatePOSTypes(), PLearn::WordNetOntology::reduceWordPolysemy(), PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping(), PLearn::ProbabilitySparseMatrix::removeExtra(), PLearn::WordNetOntology::removeNonReachableSynsets(), PLearn::ProbabilitySparseMatrix::removeRow(), PLearn::samePos(), PLearn::WordNetOntology::save(), PLearn::GraphicalBiText::set_nodemap(), PLearn::GraphicalBiText::test_WSD(), PLearn::WordNetOntology::unvisitDownward(), PLearn::update(), PLearn::updateAndClearCounts(), and PLearn::WordNetOntology::visitUpward().

void PLearn::Set::clear  )  [inline]
 

Definition at line 38 of file Set.h.

Referenced by PLearn::GraphicalBiText::compute_BN_likelihood(), PLearn::GraphicalBiText::compute_node_level(), PLearn::GraphicalBiText::compute_nodemap(), PLearn::GraphicalBiText::compute_pMC(), PLearn::ProbabilitySparseMatrix::computeX(), PLearn::ProbabilitySparseMatrix::computeY(), PLearn::WordNetOntology::intersectAncestorsAndSenses(), and PLearn::ProbabilitySparseMatrix::removeExtra().

bool PLearn::Set::contains int  elem  )  [inline]
 

Definition at line 32 of file Set.h.

References contains().

Referenced by PLearn::check_prob(), contains(), PLearn::WordNetOntology::intersectAncestorsAndSenses(), PLearn::WordNetOntology::linkUpperCategories(), main(), PLearn::WordNetOntology::overlappingSynsets(), PLearn::ProbabilitySparseMatrix::sumPyX(), and PLearn::ProbabilitySparseMatrix::sumPYx().

void PLearn::Set::difference Set  s  )  [inline]
 

Definition at line 57 of file Set.h.

References begin(), and end().

SetIterator PLearn::Set::end  )  [inline]
 

Definition at line 76 of file Set.h.

References PLearn::SetIterator.

Referenced by PLearn::TextSenseSequenceVMatrix::build_(), PLearn::GraphicalBiText::build_(), PLearn::check_prob(), PLearn::GraphicalBiText::check_set_pA(), PLearn::GraphicalBiText::compute_BN_likelihood(), PLearn::GraphicalBiText::compute_efs_likelihood(), PLearn::GraphicalBiText::compute_likelihood(), PLearn::GraphicalBiText::compute_node_level(), PLearn::GraphicalBiText::compute_nodemap(), PLearn::GraphicalBiText::compute_pMC(), PLearn::GraphicalBiText::compute_pTC(), PLearn::GraphicalBiText::computeKL(), PLearn::WordNetOntology::computeWordSenseUniqueIds(), PLearn::difference(), difference(), PLearn::GraphicalBiText::distribute_pS_on_ancestors(), PLearn::WordNetOntology::extractAncestors(), PLearn::WordNetOntology::extractDescendants(), PLearn::WordNetOntology::extractStrictDescendants(), PLearn::WordNetOntology::extractWordHighLevelSenses(), PLearn::WordNetOntology::extractWordNounAndVerbHighLevelSenses(), PLearn::WordNetOntology::fillTempWordToHighLevelSensesTVecMap(), PLearn::WordNetOntology::fillTempWordToSensesTVecMap(), PLearn::WordNetOntology::getCategoriesAtLevel(), PLearn::WordNetOntology::getCategoriesUnderLevel(), PLearn::GraphicalBiText::getDeepestCommonAncestor(), PLearn::WordNetOntology::getDescendantCategoriesAtLevel(), PLearn::WordNetOntology::getDownToUpParentCategoriesAtLevel(), PLearn::WordNetOntology::getPredominentSyntacticClassForWord(), PLearn::WordNetOntology::getSecondLevelSensesForWord(), PLearn::WordNetOntology::getSyntacticClassesForWord(), PLearn::WordNetOntology::getThirdLevelSensesForWord(), PLearn::GraphicalBiText::init(), PLearn::WordNetOntology::intersectAncestorsAndSenses(), PLearn::intersection(), intersection(), PLearn::merge(), merge(), PLearn::operator<<(), PLearn::WordNetOntology::overlappingSynsets(), PLearn::print(), PLearn::GraphicalBiText::print(), PLearn::GraphicalBiText::print_sensemap(), PLearn::GraphicalBiText::printNode(), PLearn::WordNetOntology::printNodes(), PLearn::WordNetOntology::printOntology(), PLearn::WordNetOntology::printWordAncestors(), PLearn::WordNetOntology::propagatePOSTypes(), PLearn::WordNetOntology::reduceWordPolysemy(), PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping(), PLearn::ProbabilitySparseMatrix::removeExtra(), PLearn::WordNetOntology::removeNonReachableSynsets(), PLearn::ProbabilitySparseMatrix::removeRow(), PLearn::samePos(), PLearn::WordNetOntology::save(), PLearn::GraphicalBiText::sensetag_valid_bitext(), PLearn::GraphicalBiText::senseTagBitext(), PLearn::GraphicalBiText::set_nodemap(), PLearn::GraphicalBiText::test_WSD(), PLearn::WordNetOntology::unvisitDownward(), PLearn::update(), PLearn::GraphicalBiText::update_WSD_model(), PLearn::updateAndClearCounts(), and PLearn::WordNetOntology::visitUpward().

SetIterator PLearn::Set::find int  elem  )  [inline]
 

Definition at line 33 of file Set.h.

References PLearn::SetIterator.

Referenced by PLearn::GraphicalBiText::build_(), PLearn::GraphicalBiText::compute_BN_likelihood(), PLearn::GraphicalBiText::compute_efs_likelihood(), PLearn::GraphicalBiText::compute_likelihood(), PLearn::GraphicalBiText::compute_nodemap(), PLearn::GraphicalBiText::compute_pTC(), PLearn::GraphicalBiText::getDeepestCommonAncestor(), PLearn::GraphicalBiText::init(), PLearn::GraphicalBiText::sensetag_valid_bitext(), PLearn::GraphicalBiText::senseTagBitext(), PLearn::GraphicalBiText::set_nodemap(), and PLearn::GraphicalBiText::update_WSD_model().

void PLearn::Set::insert int  elem  )  [inline]
 

Definition at line 34 of file Set.h.

References insert().

Referenced by PLearn::GraphicalBiText::build_(), PLearn::GraphicalBiText::compute_BN_likelihood(), PLearn::GraphicalBiText::compute_efs_likelihood(), PLearn::ProbabilitySparseMatrix::computeX(), PLearn::ProbabilitySparseMatrix::computeY(), PLearn::WordNetOntology::createBaseSynsets(), PLearn::WordNetOntology::extractAncestors(), PLearn::WordNetOntology::extractDescendants(), PLearn::WordNetOntology::extractOntology(), PLearn::WordNetOntology::extractSenses(), PLearn::WordNetOntology::extractStrictDescendants(), PLearn::WordNetOntology::getAllCategories(), PLearn::WordNetOntology::getAllSenses(), PLearn::WordNetOntology::getAllWords(), PLearn::WordNetOntology::getCategoriesUnderLevel(), PLearn::GraphicalBiText::getDeepestCommonAncestor(), PLearn::WordNetOntology::getDescendantCategoriesAtLevel(), PLearn::WordNetOntology::getDownToUpParentCategoriesAtLevel(), PLearn::WordNetOntology::getSecondLevelSensesForWord(), PLearn::WordNetOntology::getSyntacticClassesForWord(), PLearn::WordNetOntology::getThirdLevelSensesForWord(), PLearn::WordNetOntology::getWordAncestors(), insert(), PLearn::WordNetOntology::intersectAncestorsAndSenses(), PLearn::WordNetOntology::linkUpperCategories(), PLearn::WordNetOntology::load(), PLearn::WordNetOntology::overlappingSynsets(), PLearn::WordNetOntology::processUnknownWord(), PLearn::WordNetOntology::propagatePOSTypes(), PLearn::WordNetOntology::reduceWordPolysemy(), PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping(), PLearn::ProbabilitySparseMatrix::removeExtra(), and PLearn::WordNetOntology::removeNonReachableSynsets().

void PLearn::Set::intersection Set  s  )  [inline]
 

Definition at line 66 of file Set.h.

References begin(), and end().

bool PLearn::Set::isEmpty  )  [inline]
 

Definition at line 36 of file Set.h.

Referenced by PLearn::WordNetOntology::detectWordsWithoutOntology(), and PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping().

void PLearn::Set::merge Set  s  )  [inline]
 

Definition at line 46 of file Set.h.

References begin(), end(), and PLearn::SetIterator.

Referenced by PLearn::WordNetOntology::extractAncestors(), and PLearn::WordNetOntology::getWordAncestors().

bool PLearn::Set::operator!= Set s  )  [inline]
 

Definition at line 79 of file Set.h.

References PLearn::PP< PPointableSet >::ptr.

bool PLearn::Set::operator== Set s  )  [inline]
 

Definition at line 78 of file Set.h.

References PLearn::PP< PPointableSet >::ptr.

void PLearn::Set::remove int  elem  )  [inline]
 

Definition at line 37 of file Set.h.

Referenced by PLearn::WordNetOntology::reduceWordPolysemy(), PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping(), and PLearn::WordNetOntology::removeNonReachableSynsets().

void PLearn::Set::replace int  old_elem,
int  new_elem
[inline]
 

Definition at line 40 of file Set.h.

References PLearn::remove(), and replace().

Referenced by replace().

int PLearn::Set::size  )  [inline]
 

Definition at line 35 of file Set.h.

Referenced by PLearn::TextSenseSequenceVMatrix::build_(), PLearn::GraphicalBiText::build_(), PLearn::GraphicalBiText::check_set_pA(), PLearn::GraphicalBiText::distribute_pS_on_ancestors(), PLearn::WordNetOntology::getSyntacticClassForSense(), PLearn::WordNetOntology::linkUpperCategories(), main(), PLearn::WordNetOntology::overlappingSynsets(), PLearn::WordNetOntology::propagatePOSTypes(), PLearn::WordNetOntology::reduceWordPolysemy(), and PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping().


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:27:40 2004 for PLearn by doxygen 1.3.7