source: molecuilder/src/atom_particleinfo.cpp@ 770138

Last change on this file since 770138 was 98a2987, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Added -Wall flag and fixed several small hickups

  • Property mode set to 100644
File size: 682 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
15ParticleInfo::ParticleInfo(ParticleInfo *pointer) :
16 nr(pointer->nr),
17 Name(pointer->Name)
18 {}
19
20
21/** Destructor of ParticleInfo.
22 */
23ParticleInfo::~ParticleInfo()
24{
25 Free(&Name);
26};
27
28ostream & operator << (ostream &ost, const ParticleInfo &a)
29{
30 ost << "[" << a.Name << "|" << &a << "]";
31 return ost;
32};
33
34ostream & ParticleInfo::operator << (ostream &ost) const
35{
36 ost << "[" << Name << "|" << this << "]";
37 return ost;
38};
39
Note: See TracBrowser for help on using the repository browser.