Skip to content
Snippets Groups Projects
Commit 39b8f1d3 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

added reserve function for observations

parent 99725ec1
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
#ifndef OBSEVATIONS_H
#ifndef OBSERVATIONS_H
#define OBSERVATIONS_H
#include <vector>
#include <iostream>
#include <memory>
extern "C"
{
#include "rtklib.h"
......@@ -32,6 +30,8 @@ namespace GNSSUtils
void pushObservation(obsd_t obs);
void reserveObservations(unsigned int n);
const std::vector<obsd_t> & getObservations() const;
......
......@@ -23,6 +23,11 @@ void Observations::pushObservation(obsd_t obs)
this->obs_vector_.push_back(obs);
}
void Observations::reserveObservations(unsigned int n)
{
this->obs_vector_.reserve(n);
}
const std::vector<obsd_t> & Observations::getObservations() const
{
return this->obs_vector_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment