ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/GenericData.cpp
Revision: 658
Committed: Thu Jul 31 15:35:07 2003 UTC (20 years, 11 months ago) by tim
File size: 601 byte(s)
Log Message:
 Added Z constraint.

File Contents

# Content
1 #include "GenericData.hpp"
2
3 GenericData::GenericData(){
4
5 id = "undefined";
6
7 }
8
9 GenericData& GenericData::operator = (const GenericData& rhs){
10
11 if(this == &rhs)
12 return (*this);
13
14 id = rhs.id;
15
16 return *this;
17 }
18
19 IndexData::IndexData(){
20
21 id = "IndexData";
22
23 }
24
25 IndexData::IndexData(const IndexData& rhs)
26 : GenericData(rhs), indexData(rhs.indexData){
27
28 }
29
30 IndexData& IndexData::operator = (const IndexData& rhs){
31
32 if(this == &rhs)
33 return (*this);
34
35 //chain to base class
36 GenericData::operator =(rhs);
37
38 indexData = rhs.indexData;
39
40 return (*this);
41
42 }