Ignore:
Timestamp:
Oct 9, 2009, 10:54:52 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
3efb4a
Parents:
70b7aa
Message:

forward declarations used to untangle interdependet classes.

  • basically, everywhere in header files we removed '#include' lines were only pointer to the respective classes were used and the include line was moved to the implementation file.
  • as a sidenote, lots of funny errors happened because headers were included via a nesting over three other includes. Now, all should be declared directly as needed, as only very little include lines remain in header files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.hpp

    r70b7aa r17b3a5c  
    1111using namespace std;
    1212
     13/*********************************************** includes ***********************************/
     14
    1315// include config.h
    1416#ifdef HAVE_CONFIG_H
     
    1618#endif
    1719
    18 
    1920#include <iostream>
    2021#include <vector>
    2122
    22 #include "element.hpp"
    2323#include "tesselation.hpp"
    24 #include "vector.hpp"
     24
     25/****************************************** forward declarations *****************************/
    2526
    2627class bond;
     28class element;
     29class Vector;
     30
     31/********************************************** declarations *******************************/
    2732
    2833/** Single atom.
     
    8186};
    8287
    83 
    8488ostream & operator << (ostream &ost, const atom &a);
    8589
Note: See TracChangeset for help on using the changeset viewer.