| 16 |
|
return *this; |
| 17 |
|
} |
| 18 |
|
|
| 19 |
< |
IndexData::IndexData(){ |
| 20 |
< |
|
| 21 |
< |
id = "IndexData"; |
| 22 |
< |
|
| 19 |
> |
ZConsParaData::ZConsParaData(){ |
| 20 |
> |
id = ZCONSPARADATA_ID; |
| 21 |
|
} |
| 22 |
|
|
| 23 |
< |
IndexData::IndexData(const IndexData& rhs) |
| 24 |
< |
: GenericData(rhs), indexData(rhs.indexData){ |
| 25 |
< |
|
| 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 |
< |
} |
| 23 |
> |
void ZConsParaData::sortByIndex(){ |
| 24 |
> |
sort(data.begin(), data.end(), ZConsParaSortCriterion()); |
| 25 |
> |
} |