Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.hpp

    r6e97e5 r387b36  
    99#define WORLD_HPP_
    1010
     11/*********************************************** includes ***********************************/
     12
    1113#include <string>
    1214#include <map>
     
    2224#include "Patterns/Singleton.hpp"
    2325
     26// include config.h
     27#ifdef HAVE_CONFIG_H
     28#include <config.h>
     29#endif
    2430
    2531// forward declarations
     32class config;
    2633class periodentafel;
    2734class MoleculeListClass;
     
    3643class AtomsCalculation;
    3744
    38 
     45/****************************************** forward declarations *****************************/
     46
     47/********************************************** Class World *******************************/
    3948
    4049class World : public Singleton<World>, public Observable
     
    6776
    6877  /**
     78   * returns the configuration for the world.
     79   */
     80  config *&getConfig();
     81
     82  /**
    6983   * returns the first atom that matches a given descriptor.
    7084   * Do not rely on ordering for descriptors that match more than one atom.
     
    101115   */
    102116  std::vector<molecule*> getAllMolecules(MoleculeDescriptor descriptor);
     117  std::vector<molecule*> getAllMolecules();
    103118
    104119  /**
     
    106121   */
    107122  int numMolecules();
     123
     124  /**
     125   * get the domain size as a symmetric matrix (6 components)
     126   */
     127  double * getDomain();
     128
     129  /**
     130   * set the domain size as a symmetric matrix (6 components)
     131   */
     132  void setDomain(double * matrix);
     133
     134  /**
     135   * get the default name
     136   */
     137  std::string getDefaultName();
     138
     139  /**
     140   * set the default name
     141   */
     142  void setDefaultName(std::string name);
     143
     144  /*
     145   * get the ExitFlag
     146   */
     147  int getExitFlag();
     148
     149  /*
     150   * set the ExitFlag
     151   */
     152  void setExitFlag(int flag);
    108153
    109154  /***** Methods to work with the World *****/
     
    206251
    207252  periodentafel *periode;
     253  config *configuration;
     254  static double *cell_size;
     255  std::string defaultName;
     256  int ExitFlag;
    208257public:
    209258  AtomSet atoms;
Note: See TracChangeset for help on using the changeset viewer.