source: branches/polybatch/src/STFitEntry.cpp@ 2819

Last change on this file since 2819 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
Line 
1//
2// C++ Implementation: STFitEntry
3//
4// Description:
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"
13#include <casa/iostream.h>
14
15using namespace casa;
16namespace asap {
17
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 */
27{
28}
29STFitEntry::STFitEntry(const STFitEntry& other)
30{
31 if ( this != &other ) {
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
40STFitEntry& STFitEntry::operator=(const STFitEntry& other)
41{
42 if ( this != &other ) {
43 this->functions_ = other.functions_;
44 this->components_ = other.components_;
45 this->parameters_ = other.parameters_;
46 this->errors_ = other.errors_;
47 this->parmasks_ = other.parmasks_;
48 this->frameinfo_ = other.frameinfo_;
49 }
50 return *this;
51}
52
53STFitEntry::~STFitEntry()
54{
55}
56
57
58}
Note: See TracBrowser for help on using the repository browser.