Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since 1b84b8 was             e71325, checked in by Frederik Heber <heber@…>, 13 years ago | 
        
          | 
FIX: All functions in Fragmentation and related now use const string reference for path/prefix.
 they need nothing more anyway.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * AdaptivityMap.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Oct 20, 2011 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef ADAPTIVITYMAP_HPP_ | 
|---|
| 9 | #define ADAPTIVITYMAP_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 | #include <iosfwd> | 
|---|
| 17 | #include <string> | 
|---|
| 18 |  | 
|---|
| 19 | #include <map> | 
|---|
| 20 |  | 
|---|
| 21 | #include "Fragmentation/KeySet.hpp" | 
|---|
| 22 |  | 
|---|
| 23 | class AtomMask_t; | 
|---|
| 24 | class molecule; | 
|---|
| 25 |  | 
|---|
| 26 | class AdaptivityMap : public std::map<int, KeySet> | 
|---|
| 27 | { | 
|---|
| 28 | public: | 
|---|
| 29 | AdaptivityMap(); | 
|---|
| 30 | ~AdaptivityMap(); | 
|---|
| 31 |  | 
|---|
| 32 | void InsertIntoAdaptiveCriteriaList(int FragOrder, int No, double Value); | 
|---|
| 33 | void ScanAdaptiveFileIntoMap(const std::string &path); | 
|---|
| 34 | void ReMapAdaptiveCriteriaListToValue(molecule *mol); | 
|---|
| 35 | int CountLinesinFile(std::ifstream &InputFile) const; | 
|---|
| 36 | bool MarkUpdateCandidates(AtomMask_t &AtomMask, int Order, molecule *mol) const ; | 
|---|
| 37 |  | 
|---|
| 38 | bool IsAdaptiveCriteriaListEmpty() const; | 
|---|
| 39 |  | 
|---|
| 40 | private: | 
|---|
| 41 | typedef std::map<double, std::pair<int,int> > AdaptiveCriteriaValueMap; | 
|---|
| 42 | typedef std::map<int, std::pair<double,int> > AdaptiveCriteriaIndexMap; | 
|---|
| 43 |  | 
|---|
| 44 | AdaptiveCriteriaIndexMap *AdaptiveCriteriaList; | 
|---|
| 45 | AdaptiveCriteriaValueMap *FinalRootCandidates; | 
|---|
| 46 | }; | 
|---|
| 47 |  | 
|---|
| 48 |  | 
|---|
| 49 | #endif /* ADAPTIVITYMAP_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.