| Last change
 on this file since 88bb6b was             291eca, checked in by Frederik Heber <heber@…>, 12 years ago | 
        
          | 
Extracted all length,angle, ... function inside potentials into functors.
 all implement Coordinator interface for later factory pattern.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            515 bytes | 
      
      
| Rev | Line |  | 
|---|
| [291eca] | 1 | /* | 
|---|
|  | 2 | * TwoBody_Length.hpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: 03.09.2013 | 
|---|
|  | 5 | *      Author: heber | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifndef TWOBODY_LENGTH_HPP_ | 
|---|
|  | 9 | #define TWOBODY_LENGTH_HPP_ | 
|---|
|  | 10 |  | 
|---|
|  | 11 | // include config.h | 
|---|
|  | 12 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 13 | #include <config.h> | 
|---|
|  | 14 | #endif | 
|---|
|  | 15 |  | 
|---|
|  | 16 | #include "Coordinator.hpp" | 
|---|
|  | 17 |  | 
|---|
|  | 18 | /** This class implements the Coordinator interface for the | 
|---|
|  | 19 | * conversion of an arguments_t list into a single distance. | 
|---|
|  | 20 | */ | 
|---|
|  | 21 | struct TwoBody_Length : public Coordinator | 
|---|
|  | 22 | { | 
|---|
|  | 23 | double operator()(const FunctionModel::arguments_t &arguments) const; | 
|---|
|  | 24 | }; | 
|---|
|  | 25 |  | 
|---|
|  | 26 | #endif /* TWOBODY_LENGTH_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.