source: molecuilder/src/atom_particleinfo.cpp@ 6d7651

Last change on this file since 6d7651 was 94d0ad, checked in by Frederik Heber <heber@…>, 16 years ago

Begun with ticket #38 (make const what is const).

  • basically all changes to member function that now state that they do not change member attributes.
  • in molecule_template.hpp all member functions are declared const, as we only need start and end from molecule and these are never changed (lots of overloaded templates removed thereby).
  • Vector::Distance...() and ...DistanceSquared() are const now too
  • Property mode set to 100644
File size: 576 bytes
Line 
1/*
2 * atom_particleinfo.cpp
3 *
4 * Created on: Oct 19, 2009
5 * Author: heber
6 */
7
8#include "atom_particleinfo.hpp"
9#include "memoryallocator.hpp"
10
11/** Constructor of ParticleInfo.
12 */
13ParticleInfo::ParticleInfo() : nr(-1), Name(NULL) {};
14
15/** Destructor of ParticleInfo.
16 */
17ParticleInfo::~ParticleInfo()
18{
19 Free(&Name);
20};
21
22ostream & operator << (ostream &ost, const ParticleInfo &a)
23{
24 ost << "[" << a.Name << "|" << &a << "]";
25 return ost;
26};
27
28ostream & ParticleInfo::operator << (ostream &ost) const
29{
30 ost << "[" << Name << "|" << this << "]";
31 return ost;
32};
33
Note: See TracBrowser for help on using the repository browser.