Skip to content
Snippets Groups Projects
Commit 502bb96d authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Reorder data members

parent 13944b12
No related branches found
No related tags found
1 merge request!157Kfpackmanager
......@@ -9,10 +9,10 @@ unsigned int ProcessorBase::processor_id_count_ = 0;
ProcessorBase::ProcessorBase(const std::string& _type, const Scalar& _time_tolerance) :
NodeBase("PROCESSOR", _type),
sensor_ptr_(),
is_removing_(false),
processor_id_(++processor_id_count_),
time_tolerance_(_time_tolerance)
time_tolerance_(_time_tolerance),
sensor_ptr_(),
is_removing_(false)
{
// WOLF_DEBUG("constructed +p" , id());
}
......@@ -74,6 +74,8 @@ void ProcessorBase::remove()
}
}
/////////////////////////////////////////////////////////////////////////////////////////
void KFPackBuffer::removeUpTo(const TimeStamp& _time_stamp)
{
KFPackBuffer::Iterator post = container_.upper_bound(_time_stamp);
......
......@@ -33,6 +33,7 @@ class KFPack
WOLF_PTR_TYPEDEFS(KFPack);
/** \brief Buffer of Key frame class objects
*
* Object and functions to manage a buffer of KFPack objects.
......@@ -112,6 +113,11 @@ struct ProcessorParamsBase
//class ProcessorBase
class ProcessorBase : public NodeBase, public std::enable_shared_from_this<ProcessorBase>
{
protected:
unsigned int processor_id_;
Scalar time_tolerance_; ///< self time tolerance for adding a capture into a frame
KFPackBuffer kf_pack_buffer_;
private:
SensorBaseWPtr sensor_ptr_;
......@@ -168,12 +174,6 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
void setTimeTolerance(Scalar _time_tolerance);
protected:
unsigned int processor_id_;
Scalar time_tolerance_; ///< self time tolerance for adding a capture into a frame
KFPackBuffer kf_pack_buffer_;
};
}
......
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