Last change
on this file since 1983 was 1924, checked in by Malte Marquarding, 14 years ago |
Ticket #206: use STFitEntry as return objetc instead of pointer wrnagling.
|
File size:
1.2 KB
|
Rev | Line | |
---|
[955] | 1 | //
|
---|
| 2 | // C++ Implementation: STFitEntry
|
---|
| 3 | //
|
---|
[972] | 4 | // Description:
|
---|
[955] | 5 | //
|
---|
| 6 | //
|
---|
| 7 | // Author: Malte Marquarding <Malte.Marquarding@csiro.au>, (C) 2006
|
---|
| 8 | //
|
---|
| 9 | // Copyright: See COPYING file that comes with this distribution
|
---|
| 10 | //
|
---|
| 11 | //
|
---|
| 12 | #include "STFitEntry.h"
|
---|
[1924] | 13 | #include <casa/iostream.h>
|
---|
[955] | 14 |
|
---|
[1924] | 15 | using namespace casa;
|
---|
[955] | 16 | namespace asap {
|
---|
| 17 |
|
---|
[1924] | 18 | STFitEntry::STFitEntry()
|
---|
| 19 | /* :
|
---|
| 20 | functions_( std::vector<std::string>()),
|
---|
| 21 | components_(std::vector<int>()),
|
---|
| 22 | parameters_(std::vector<float>()),
|
---|
| 23 | errors_(std::vector<float>()),
|
---|
| 24 | parmasks_(std::vector<bool>()),
|
---|
| 25 | frameinfo_(std::vector<std::string>())
|
---|
| 26 | */
|
---|
[955] | 27 | {
|
---|
| 28 | }
|
---|
[972] | 29 | STFitEntry::STFitEntry(const STFitEntry& other)
|
---|
| 30 | {
|
---|
| 31 | if ( this != &other ) {
|
---|
[1924] | 32 | this->functions_ = std::vector<std::string>();
|
---|
| 33 | this->components_ = other.components_;
|
---|
| 34 | this->parameters_ = other.parameters_;
|
---|
| 35 | this->errors_ = other.errors_;
|
---|
| 36 | this->frameinfo_ = other.frameinfo_;
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | STFitEntry& STFitEntry::operator=(const STFitEntry& other)
|
---|
| 41 | {
|
---|
| 42 | if ( this != &other ) {
|
---|
[972] | 43 | this->functions_ = other.functions_;
|
---|
| 44 | this->components_ = other.components_;
|
---|
| 45 | this->parameters_ = other.parameters_;
|
---|
[1924] | 46 | this->errors_ = other.errors_;
|
---|
[972] | 47 | this->parmasks_ = other.parmasks_;
|
---|
| 48 | this->frameinfo_ = other.frameinfo_;
|
---|
| 49 | }
|
---|
[1924] | 50 | return *this;
|
---|
[972] | 51 | }
|
---|
[955] | 52 |
|
---|
| 53 | STFitEntry::~STFitEntry()
|
---|
| 54 | {
|
---|
| 55 | }
|
---|
| 56 |
|
---|
| 57 |
|
---|
| 58 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.