|
PLearn 0.1
|
#include <Set.h>


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) |
| PLearn::Set::Set | ( | ) | [inline] |
| PLearn::Set::Set | ( | PPointableSet * | p | ) | [inline] |
| SetIterator PLearn::Set::begin | ( | ) | [inline] |
Definition at line 75 of file Set.h.
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().
{ return ptr->begin(); }
| 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::WordNetOntology::intersectAncestorsAndSenses(), and PLearn::ProbabilitySparseMatrix::removeExtra().
{ ptr->clear(); }

Definition at line 32 of file Set.h.
Referenced by PLearn::check_prob(), PLearn::WordNetOntology::extractOntology(), PLearn::WordNetOntology::intersectAncestorsAndSenses(), PLearn::WordNetOntology::linkUpperCategories(), main(), PLearn::WordNetOntology::overlappingSynsets(), PLearn::ProbabilitySparseMatrix::sumPyX(), and PLearn::ProbabilitySparseMatrix::sumPYx().

| void PLearn::Set::difference | ( | Set | s | ) | [inline] |
| SetIterator PLearn::Set::end | ( | ) | [inline] |
Definition at line 76 of file Set.h.
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().
{ return ptr->end(); }
| SetIterator PLearn::Set::find | ( | int | elem | ) | [inline] |
Definition at line 33 of file Set.h.
Referenced by 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().
{ return ptr->find(elem); }

| void PLearn::Set::insert | ( | int | elem | ) | [inline] |
Definition at line 34 of file Set.h.
Referenced by PLearn::GraphicalBiText::build_(), PLearn::GraphicalBiText::compute_BN_likelihood(), PLearn::GraphicalBiText::compute_efs_likelihood(), 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(), 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().
{ ptr->insert(elem); }

| void PLearn::Set::intersection | ( | Set | s | ) | [inline] |
| bool PLearn::Set::isEmpty | ( | ) | [inline] |
Definition at line 36 of file Set.h.
Referenced by PLearn::WordNetOntology::detectWordsWithoutOntology(), and PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping().
{ return (ptr->size() == 0); }

| void PLearn::Set::merge | ( | Set | s | ) | [inline] |
Definition at line 46 of file Set.h.
References begin(), and end().
Referenced by PLearn::WordNetOntology::extractAncestors(), and PLearn::WordNetOntology::getWordAncestors().
{
// Set res;
// set_union(begin(), end(),
// s.begin(), s.end(),
// insert_iterator<PPointableSet>(*res, res.begin()));
// *ptr = *res;
for (SetIterator it = s.begin(); it != s.end(); ++it)
insert(*it);
}


| void PLearn::Set::remove | ( | int | elem | ) | [inline] |
Definition at line 37 of file Set.h.
Referenced by PLearn::WordNetOntology::removeNonReachableSynsets().
{ ptr->erase(elem); }

| 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::extractAncestors(), PLearn::WordNetOntology::extractDescendants(), PLearn::WordNetOntology::getSyntacticClassForSense(), PLearn::WordNetOntology::linkUpperCategories(), main(), PLearn::WordNetOntology::overlappingSynsets(), PLearn::WordNetOntology::propagatePOSTypes(), PLearn::WordNetOntology::reduceWordPolysemy(), and PLearn::WordNetOntology::reduceWordPolysemy_preserveSenseOverlapping().
{ return ptr->size(); }

1.7.4