Last change
on this file since 770138 was 98a2987, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Added -Wall flag and fixed several small hickups
|
-
Property mode
set to
100644
|
File size:
682 bytes
|
Rev | Line | |
---|
[2e2a70] | 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 | */
|
---|
| 13 | ParticleInfo::ParticleInfo() : nr(-1), Name(NULL) {};
|
---|
| 14 |
|
---|
[7bfc19] | 15 | ParticleInfo::ParticleInfo(ParticleInfo *pointer) :
|
---|
[98a2987] | 16 | nr(pointer->nr),
|
---|
| 17 | Name(pointer->Name)
|
---|
[7bfc19] | 18 | {}
|
---|
| 19 |
|
---|
| 20 |
|
---|
[2e2a70] | 21 | /** Destructor of ParticleInfo.
|
---|
| 22 | */
|
---|
| 23 | ParticleInfo::~ParticleInfo()
|
---|
| 24 | {
|
---|
| 25 | Free(&Name);
|
---|
| 26 | };
|
---|
| 27 |
|
---|
[94d0ad] | 28 | ostream & operator << (ostream &ost, const ParticleInfo &a)
|
---|
| 29 | {
|
---|
| 30 | ost << "[" << a.Name << "|" << &a << "]";
|
---|
| 31 | return ost;
|
---|
| 32 | };
|
---|
| 33 |
|
---|
| 34 | ostream & 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.