Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/atom.hpp

    rd74077 r0ba410  
    2727#include "atom_particleinfo.hpp"
    2828#include "atom_trajectoryparticle.hpp"
    29 #include "TesselPoint.hpp"
     29#include "tesselation.hpp"
    3030#include "types.hpp"
    3131
     
    4242 * Class incorporates position, type
    4343 */
    44 class atom : public TrajectoryParticle, public GraphNode, public BondedParticle, public TesselPoint {
     44class atom : public TesselPoint, public TrajectoryParticle, public GraphNode, public BondedParticle, public virtual ParticleInfo, public virtual AtomInfo {
    4545  friend atom* NewAtom(atomId_t);
    4646  friend void  DeleteAtom(atom*);
     
    5252
    5353  bool OutputIndexed(ofstream * const out, const int ElementNo, const int AtomNo, const char *comment = NULL) const;
    54   bool OutputArrayIndexed(ostream * const out, const int *ElementNo, int *AtomNo, const char *comment = NULL) const;
     54  bool OutputArrayIndexed(ostream * const out,const enumeration<const element*>&, int *AtomNo, const char *comment = NULL) const;
    5555  bool OutputXYZLine(ofstream *out) const;
    5656  bool OutputTrajectory(ofstream * const out, const int *ElementNo, int *AtomNo, const int step) const;
     
    6161
    6262  void EqualsFather ( const atom *ptr, const atom **res ) const;
     63  bool isFather(const atom *ptr);
    6364  void CorrectFather();
    6465  atom *GetTrueFather();
     
    9394   void removeFromMolecule();
    9495
    95    // Output operator
    96    std::ostream & operator << (std::ostream &ost) const;
    97 
    9896  protected:
    9997
     
    122120
    123121/**
    124  * Global output operator for class atom.
    125  */
    126 std::ostream & operator << (std::ostream &ost, const atom &_atom);
    127 
    128 /**
    129122 * internal method used by the world. Do not use if you don't know what you are doing.
    130123 * You might get burned...
Note: See TracChangeset for help on using the changeset viewer.