SegFault_gcc4.6
      
      
        
          | Last change
 on this file since 15c75f8 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 | 
      
      
| Rev | Line |  | 
|---|
| [730d7a] | 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 |  | 
|---|
| [f96874] | 23 | class AtomMask_t; | 
|---|
| [730d7a] | 24 | class molecule; | 
|---|
|  | 25 |  | 
|---|
|  | 26 | class AdaptivityMap : public std::map<int, KeySet> | 
|---|
|  | 27 | { | 
|---|
|  | 28 | public: | 
|---|
|  | 29 | AdaptivityMap(); | 
|---|
|  | 30 | ~AdaptivityMap(); | 
|---|
|  | 31 |  | 
|---|
| [851be8] | 32 | void InsertIntoAdaptiveCriteriaList(int FragOrder, int No, double Value); | 
|---|
| [e71325] | 33 | void ScanAdaptiveFileIntoMap(const std::string &path); | 
|---|
| [851be8] | 34 | void ReMapAdaptiveCriteriaListToValue(molecule *mol); | 
|---|
| [730d7a] | 35 | int CountLinesinFile(std::ifstream &InputFile) const; | 
|---|
| [f96874] | 36 | bool MarkUpdateCandidates(AtomMask_t &AtomMask, int Order, molecule *mol) const ; | 
|---|
| [851be8] | 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; | 
|---|
| [730d7a] | 46 | }; | 
|---|
|  | 47 |  | 
|---|
|  | 48 |  | 
|---|
|  | 49 | #endif /* ADAPTIVITYMAP_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.