42 lines
864 B
C++
42 lines
864 B
C++
/*
|
|
* File: ReferenceTimerQueue.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on April 13, 2010, 7:41 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef REFERENCETIMERQUEUE_H
|
|
#define REFERENCETIMERQUEUE_H
|
|
|
|
#include "common/timer/ReferenceTimer.h"
|
|
#include "common/container/PairQueue.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Defines a queue for storing reference timers.
|
|
* @class ReferenceTimerQueue
|
|
* @author Jan Gäbler
|
|
* @ingroup Moversight
|
|
*/
|
|
template <typename KEY, typename TIMER=ReferenceTimer<KEY> >
|
|
class ReferenceTimerQueue : public PairQueue<KEY, TIMER> {
|
|
|
|
public:
|
|
|
|
void add(TIMER timer){
|
|
|
|
KEY ref = timer->getReference();
|
|
PairQueue<KEY, TIMER>::add(ref, timer);
|
|
|
|
}
|
|
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* REFERENCETIMERQUEUE_H */
|
|
|