Last change
on this file since 01d28a was d2d8f5, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Made all atoms register themselves with the world upon creation
|
-
Property mode
set to
100644
|
File size:
620 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 | */
|
---|
13 | ParticleInfo::ParticleInfo() : nr(-1), Name(NULL) {};
|
---|
14 |
|
---|
15 | /** Destructor of ParticleInfo.
|
---|
16 | */
|
---|
17 | ParticleInfo::~ParticleInfo()
|
---|
18 | {
|
---|
19 | Free(&Name);
|
---|
20 | };
|
---|
21 |
|
---|
22 | int ParticleInfo::getId() {
|
---|
23 | return nr;
|
---|
24 | }
|
---|
25 |
|
---|
26 | ostream & operator << (ostream &ost, const ParticleInfo &a)
|
---|
27 | {
|
---|
28 | ost << "[" << a.Name << "|" << &a << "]";
|
---|
29 | return ost;
|
---|
30 | };
|
---|
31 |
|
---|
32 | ostream & ParticleInfo::operator << (ostream &ost) const
|
---|
33 | {
|
---|
34 | ost << "[" << Name << "|" << this << "]";
|
---|
35 | return ost;
|
---|
36 | };
|
---|
37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.