Ignore:
Timestamp:
Oct 19, 2009, 1:09:29 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
3b0ba2
Parents:
99bed3
Message:

Huge Refactoring: class atom split up into several inherited classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselation.hpp

    r99bed3 r6b937bd  
    2525
    2626#include "vector.hpp"
     27#include "helpers.hpp"
    2728
    2829/****************************************** forward declarations *****************************/
     
    144145// =========================================================== class TESSELPOINT ===========================================
    145146
     147class ParticleInfo {
     148public:
     149  int nr;       // index to easierly identify
     150  char *Name;   // some name to reference to on output
     151
     152  ParticleInfo();
     153  ~ParticleInfo();
     154
     155  ostream & operator << (ostream &ost);
     156
     157private:
     158};
     159
     160ostream & operator << (ostream &ost, const ParticleInfo &a);
     161
    146162/** Is a single point of the set of Vectors, also a super-class to be inherited and and its functions to be implemented.
    147163 */
    148 class TesselPoint {
     164class TesselPoint : virtual public ParticleInfo {
    149165public:
    150166  TesselPoint();
     
    152168
    153169  Vector *node;   // pointer to position of the dot in space
    154   int nr;       // index to easierly identify
    155   char *Name;   // some name to reference to on output
    156170
    157171  virtual ostream & operator << (ostream &ost);
Note: See TracChangeset for help on using the changeset viewer.