|
LocARNA-2.0.0
|
manage a set of EPMs (PatternPair) More...
#include <exact_matcher.hh>
Public Types | |
| typedef PatternPair | selfValueTYPE |
| PatternPair. | |
| typedef PatternPair * | SelfValuePTR |
| pointer to PatternPair | |
| typedef std::multimap< int, SelfValuePTR, std::greater< int > > | orderedMapTYPE |
| ordered map type | |
| typedef orderedMapTYPE::const_iterator | orderedMapCITER |
| const iterator for the map | |
| typedef orderedMapTYPE::iterator | orderedMapITER |
| iterator for the map | |
| typedef std::vector< std::unique_ptr< selfValueTYPE > > | patListTYPE |
| list of patternPairs | |
| typedef patListTYPE::iterator | patListITER |
| iterator for the list of PatternPairs | |
| typedef patListTYPE::const_iterator | patListCITER |
| const iterator for the list of PatternPairs | |
| typedef std::unordered_map< std::string, SelfValuePTR > | PatternIdMapTYPE |
| map type patternId -> pointer to PatternPair | |
Public Member Functions | |
| PatternPairMap () | |
| Contructor. | |
| PatternPairMap (const PatternPairMap &myPairMap)=delete | |
| virtual | ~PatternPairMap () |
| Destructor. | |
| void | add (const std::string &id, const SinglePattern &first, const SinglePattern &second, const std::string &structure, int score) |
| adds a PatternPair consisting of two SinglePatterns to the PatternPairMap More... | |
| void | add (const SelfValuePTR value) |
| adds a PatternPair to the PatternPairMap More... | |
| void | makeOrderedMap () |
| creates the ordered Map | |
| const PatternPair & | getPatternPair (const std::string &id) const |
| gets the PatternPair with the Id id More... | |
| const SelfValuePTR | getPatternPairPTR (const std::string &id) const |
| gets the pointer to the PatternPair with the Id id More... | |
| const patListTYPE & | getList () const |
| const orderedMapTYPE & | getOrderedMap () const |
| orderedMapTYPE & | getOrderedMap2 () |
| const int | size () const |
| int | getMapBases () |
| computes the number of mapped bases More... | |
| int | getMapEPMScore () |
| computes the score of the list of PatternPairs patternList More... | |
| const int | getMinPatternSize () const |
manage a set of EPMs (PatternPair)
| void LocARNA::PatternPairMap::add | ( | const SelfValuePTR | value | ) |
adds a PatternPair to the PatternPairMap
| value | pointer to the PatternPair |
| void LocARNA::PatternPairMap::add | ( | const std::string & | id, |
| const SinglePattern & | first, | ||
| const SinglePattern & | second, | ||
| const std::string & | structure, | ||
| int | score | ||
| ) |
adds a PatternPair consisting of two SinglePatterns to the PatternPairMap
| id | Id of the PatternPair |
| first | first pattern |
| second | second pattern |
| structure | structure of the PatternPair |
| score | score of the PatternPair |
| const PatternPairMap::patListTYPE & LocARNA::PatternPairMap::getList | ( | ) | const |
read access
| int LocARNA::PatternPairMap::getMapBases | ( | ) |
computes the number of mapped bases
| int LocARNA::PatternPairMap::getMapEPMScore | ( | ) |
computes the score of the list of PatternPairs patternList
|
inline |
read access
| const PatternPairMap::orderedMapTYPE & LocARNA::PatternPairMap::getOrderedMap | ( | ) | const |
read access
| PatternPairMap::orderedMapTYPE & LocARNA::PatternPairMap::getOrderedMap2 | ( | ) |
write access
| const PatternPair & LocARNA::PatternPairMap::getPatternPair | ( | const std::string & | id | ) | const |
gets the PatternPair with the Id id
| id | Id of PatternPair |
| const PatternPairMap::SelfValuePTR LocARNA::PatternPairMap::getPatternPairPTR | ( | const std::string & | id | ) | const |
gets the pointer to the PatternPair with the Id id
| id | Id of PatternPair |
| const int LocARNA::PatternPairMap::size | ( | ) | const |
read access