Action_Thermostats
        Adding_MD_integration_tests
        Adding_StructOpt_integration_tests
        AutomationFragmentation_failures
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChemicalSpaceEvaluator
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        Exclude_Hydrogens_annealWithBondGraph
        Fix_Verbose_Codepatterns
        ForceAnnealing_with_BondGraph
        ForceAnnealing_with_BondGraph_continued
        ForceAnnealing_with_BondGraph_continued_betteresults
        ForceAnnealing_with_BondGraph_contraction-expansion
        Gui_displays_atomic_force_velocity
        JobMarket_RobustOnKillsSegFaults
        JobMarket_StableWorkerPool
        PythonUI_with_named_parameters
        Recreated_GuiChecks
        StoppableMakroAction
        TremoloParser_IncreasedPrecision
        stable
      
      
      
| Rev | Line |  | 
|---|
| [084729c] | 1 | /* | 
|---|
|  | 2 | * Project: MoleCuilder | 
|---|
|  | 3 | * Description: creates and alters molecular systems | 
|---|
|  | 4 | * Copyright (C)  2010 University of Bonn. All rights reserved. | 
|---|
|  | 5 | * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | /* | 
|---|
|  | 9 | * CommonStub.cpp | 
|---|
|  | 10 | * | 
|---|
|  | 11 | *  Created on: Jan 4, 2011 | 
|---|
|  | 12 | *      Author: heber | 
|---|
|  | 13 | */ | 
|---|
|  | 14 |  | 
|---|
|  | 15 | // include config.h | 
|---|
|  | 16 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 17 | #include <config.h> | 
|---|
|  | 18 | #endif | 
|---|
|  | 19 |  | 
|---|
|  | 20 | #include "CommonStub.hpp" | 
|---|
|  | 21 |  | 
|---|
|  | 22 | namespace teststubs { | 
|---|
|  | 23 | Iclass::~Iclass() {}; | 
|---|
|  | 24 |  | 
|---|
|  | 25 | Aclass::Aclass() : | 
|---|
|  | 26 | counter(0) | 
|---|
|  | 27 | {}; | 
|---|
|  | 28 |  | 
|---|
|  | 29 | Aclass::~Aclass() {}; | 
|---|
|  | 30 |  | 
|---|
|  | 31 | void Aclass::count() { | 
|---|
|  | 32 | ++counter; | 
|---|
|  | 33 | } | 
|---|
|  | 34 |  | 
|---|
|  | 35 | int Aclass::getcount() const { | 
|---|
|  | 36 | return counter; | 
|---|
|  | 37 | }; | 
|---|
|  | 38 |  | 
|---|
|  | 39 | void Aclass::setcount(int const _counter) { | 
|---|
|  | 40 | counter = _counter; | 
|---|
|  | 41 | }; | 
|---|
|  | 42 |  | 
|---|
|  | 43 |  | 
|---|
|  | 44 | Bclass::Bclass() : | 
|---|
|  | 45 | counter(0.) | 
|---|
|  | 46 | {}; | 
|---|
|  | 47 |  | 
|---|
|  | 48 | Bclass::~Bclass() {}; | 
|---|
|  | 49 |  | 
|---|
|  | 50 | void Bclass::count() { | 
|---|
|  | 51 | counter+=1.; | 
|---|
|  | 52 | } | 
|---|
|  | 53 |  | 
|---|
|  | 54 | int Bclass::getcount() const { | 
|---|
|  | 55 | return (int)counter; | 
|---|
|  | 56 | }; | 
|---|
|  | 57 |  | 
|---|
|  | 58 | void Bclass::setcount(int const _counter) { | 
|---|
|  | 59 | counter = (double)_counter; | 
|---|
|  | 60 | }; | 
|---|
|  | 61 | }; | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.