SegFault_gcc4.6
      
      
        
          | Last change
 on this file since 15c75f8 was             ea7a50, checked in by Frederik Heber <heber@…>, 14 years ago | 
        
          | 
Rewrote some of the descriptors such that they access World's AtomSet and MoleculeSet directly.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            620 bytes | 
      
      
| Line |  | 
|---|
| 1 | #ifndef MOLECULEORDERDESCRIPTOR_IMPL_HPP | 
|---|
| 2 | #define MOLECULEORDERDESCRIPTOR_IMPL_HPP | 
|---|
| 3 |  | 
|---|
| 4 | // include config.h | 
|---|
| 5 | #ifdef HAVE_CONFIG_H | 
|---|
| 6 | #include <config.h> | 
|---|
| 7 | #endif | 
|---|
| 8 |  | 
|---|
| 9 |  | 
|---|
| 10 | #include "Descriptors/MoleculeDescriptor_impl.hpp" | 
|---|
| 11 |  | 
|---|
| 12 | class MoleculeOrderDescriptor_impl : public MoleculeDescriptor_impl | 
|---|
| 13 | { | 
|---|
| 14 | public: | 
|---|
| 15 | MoleculeOrderDescriptor_impl(int _id); | 
|---|
| 16 | virtual ~MoleculeOrderDescriptor_impl(); | 
|---|
| 17 |  | 
|---|
| 18 | bool predicate(std::pair<moleculeId_t,molecule*> _molecule); | 
|---|
| 19 |  | 
|---|
| 20 | protected: | 
|---|
| 21 | virtual molecule *find(); | 
|---|
| 22 | virtual std::vector<molecule*> findAll(); | 
|---|
| 23 |  | 
|---|
| 24 | World::MoleculeSet& getMolecules(); | 
|---|
| 25 |  | 
|---|
| 26 | private: | 
|---|
| 27 | int id; | 
|---|
| 28 | }; | 
|---|
| 29 |  | 
|---|
| 30 | #endif //MOLECULEORDERDESCRIPTOR_IMPL_HPP | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.