Changes in src/atom_particleinfo.cpp [b8d4a3:a3696f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom_particleinfo.cpp
rb8d4a3 ra3696f 13 13 ParticleInfo::ParticleInfo() : nr(-1), Name(NULL) {}; 14 14 15 ParticleInfo::ParticleInfo(ParticleInfo *pointer) :16 nr(pointer->nr),17 Name(pointer->Name)18 {19 if (Name == NULL)20 Name = " ";21 }22 23 24 15 /** Destructor of ParticleInfo. 25 16 */ … … 31 22 ostream & operator << (ostream &ost, const ParticleInfo &a) 32 23 { 33 ost << "[" << a.Name << "|" << &a << "]"; 24 if (a.Name == NULL) 25 ost << "[NULL]"; 26 else 27 ost << "[" << a.Name << "|" << &a << "]"; 34 28 return ost; 35 29 }; … … 37 31 ostream & ParticleInfo::operator << (ostream &ost) const 38 32 { 39 ost << "[" << Name << "|" << this << "]"; 33 if (Name == NULL) 34 ost << "[NULL]"; 35 else 36 ost << "[" << Name << "|" << this << "]"; 40 37 return ost; 41 38 };
Note:
See TracChangeset
for help on using the changeset viewer.