Calibrator  0.1
Command line tool for 14C calibration
uncal_date_list.cpp
Go to the documentation of this file.
1 #include "../include/uncal_date_list.h"
2 
3 UncalDateList::UncalDateList(vector<UncalDate> dates):
4  _dates(dates)
5  {}
7  _dates()
8  {}
9 
10 vector<UncalDate> UncalDateList::get_dates(){
11  vector<UncalDate> return_value(_dates);
12  return return_value;
13 };
14 
16  _dates.push_back(date);
17 };
18 
20  CalDateList my_cal_date_list;
21 for (auto& element : _dates) {
22  CalDate my_cal_date = element.calibrate(calcurve);
23  my_cal_date_list.push_back(my_cal_date);
24  }
25  return my_cal_date_list;
26 };
void push_back(UncalDate date)
void push_back(CalDate date)
CalDateList calibrate(CalCurve &calcurve)
vector< UncalDate > get_dates()
Represents a calibrated date.
Definition: cal_date.h:33
Represents a list of calibrated dates.
Definition: cal_date_list.h:27
Represents an uncalibrated date.
Definition: uncal_date.h:30
Represents the calibration curve.
Definition: cal_curve.h:32