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