include
gnss_info
cache_index.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-3-Clause
2
// SPDX-FileCopyrightText: Czech Technical University in Prague
3
4
#pragma once
5
6
#include <functional>
7
8
#include <ros/time.h>
9
10
namespace
gnss_info
11
{
12
16
struct
DayIndex
17
{
18
uint16_t
year
;
19
uint8_t
month
;
20
uint8_t
day
;
21
26
explicit
DayIndex
(
const
ros::Time
& time);
27
34
DayIndex
(uint16_t
year
, uint8_t
month
, uint8_t
day
);
35
39
explicit
operator
ros::Time
()
const
;
40
46
bool
operator==
(
const
DayIndex
& other)
const
;
47
};
48
49
}
50
54
template
<>
struct
std::hash<
gnss_info
::DayIndex>
55
{
56
std::size_t operator()(
const
gnss_info::DayIndex
& k)
const
noexcept;
57
};
gnss_info::DayIndex::DayIndex
DayIndex(const ros::Time &time)
Create an index entry for the given time.
Definition:
cache_index.cpp:13
gnss_info::DayIndex::day
uint8_t day
Day (starting with 1).
Definition:
cache_index.h:20
gnss_info::DayIndex
Object that can be used as an index into a cache and assigns all times from the same day the same cac...
Definition:
cache_index.h:16
gnss_info::DayIndex::month
uint8_t month
Month (starting with 1).
Definition:
cache_index.h:19
gnss_info::DayIndex::year
uint16_t year
Year.
Definition:
cache_index.h:18
gnss_info::DayIndex::operator==
bool operator==(const DayIndex &other) const
Compare with another index.
Definition:
cache_index.cpp:36
gnss_info
Definition:
cache.h:15
ros::Time
gnss_info
Author(s): Martin Pecka
autogenerated on Fri Nov 24 2023 03:50:35