update20140630
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* 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 */
|
||||
|
||||
Reference in New Issue
Block a user