Changes in src/atom_particleinfo.cpp [24a5e0:a3696f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom_particleinfo.cpp
r24a5e0 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 20 21 15 /** Destructor of ParticleInfo. 22 16 */ … … 28 22 ostream & operator << (ostream &ost, const ParticleInfo &a) 29 23 { 30 ost << "[" << a.Name << "|" << &a << "]"; 24 if (a.Name == NULL) 25 ost << "[NULL]"; 26 else 27 ost << "[" << a.Name << "|" << &a << "]"; 31 28 return ost; 32 29 }; … … 34 31 ostream & ParticleInfo::operator << (ostream &ost) const 35 32 { 36 ost << "[" << Name << "|" << this << "]"; 33 if (Name == NULL) 34 ost << "[NULL]"; 35 else 36 ost << "[" << Name << "|" << this << "]"; 37 37 return ost; 38 38 };
Note:
See TracChangeset
for help on using the changeset viewer.