Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
N21-03-06
NovaDAQUtilities
cxx
src
CachePolicy.cpp
Go to the documentation of this file.
1
#include <NovaDAQUtilities/CachePolicy.h>
2
3
namespace
novadaq
{
4
5
/**
6
* Tells the policy that a cache update was done. This is used to
7
* reset the state of the policy to "unexpired" after an update.
8
*/
9
void
CachePolicy::cacheUpdated
() {
10
_markAsUpdated
();
11
}
12
13
/**
14
* Tests if the associated cache has expired based on the criteria
15
* in the policy.
16
*
17
* @returns true if the cache has expired, false if not.
18
*/
19
bool
CachePolicy::isExpired
() {
20
return
_checkIfExpired
();
21
}
22
23
/**
24
* Tells the policy that a cache update was done. This is used to
25
* reset the state of the policy to "unexpired" after an update.
26
*/
27
void
CachePolicy::_markAsUpdated
() {
28
// don't need to keep track of when the cache was updated since we
29
// never expire in this simple implementation
30
}
31
32
/**
33
* Tests if the associated cache has expired based on the criteria
34
* in the policy.
35
*
36
* @returns true if the cache has expired, false if not.
37
*/
38
bool
CachePolicy::_checkIfExpired
() {
39
return
false
;
40
}
41
42
}
// end of namespace novadaq
novadaq
Definition:
RawDAQData.h:46
novadaq::CachePolicy::_checkIfExpired
virtual bool _checkIfExpired()
Definition:
CachePolicy.cpp:38
novadaq::CachePolicy::cacheUpdated
void cacheUpdated()
Definition:
CachePolicy.cpp:9
novadaq::CachePolicy::isExpired
bool isExpired()
Definition:
CachePolicy.cpp:19
novadaq::CachePolicy::_markAsUpdated
virtual void _markAsUpdated()
Definition:
CachePolicy.cpp:27
Generated on Sat Mar 6 2021 14:13:20 for NOvA by
1.8.11