Object that can be used as an index into a cache and assigns all times from the same day the same cache index. More...
#include <cache_index.h>
Public Member Functions | |
| DayIndex (const ros::Time &time) | |
| Create an index entry for the given time. More... | |
| DayIndex (uint16_t year, uint8_t month, uint8_t day) | |
| Directly create an index entry for the given day. More... | |
| operator ros::Time () const | |
| Convert the index to a representative ROS Time. More... | |
| bool | operator== (const DayIndex &other) const |
| Compare with another index. More... | |
Public Attributes | |
| uint8_t | day |
| Day (starting with 1). More... | |
| uint8_t | month |
| Month (starting with 1). More... | |
| uint16_t | year |
| Year. More... | |
Object that can be used as an index into a cache and assigns all times from the same day the same cache index.
Definition at line 16 of file cache_index.h.
Create an index entry for the given time.
| [in] | time | The time to create the index entry for. |
Definition at line 13 of file cache_index.cpp.
| gnss_info::DayIndex::DayIndex | ( | uint16_t | year, |
| uint8_t | month, | ||
| uint8_t | day | ||
| ) |
Directly create an index entry for the given day.
| [in] | year | The year to represent. |
| [in] | month | The month to represent (starting with 1). |
| [in] | day | The day to represent (starting with 1). |
Definition at line 22 of file cache_index.cpp.
|
explicit |
Convert the index to a representative ROS Time.
Definition at line 27 of file cache_index.cpp.
Compare with another index.
| [in] | other | The other index to compare. |
Definition at line 36 of file cache_index.cpp.
| uint8_t gnss_info::DayIndex::day |
Day (starting with 1).
Definition at line 20 of file cache_index.h.
| uint8_t gnss_info::DayIndex::month |
Month (starting with 1).
Definition at line 19 of file cache_index.h.
| uint16_t gnss_info::DayIndex::year |
Year.
Definition at line 18 of file cache_index.h.