WPILibC++ 2023.4.3-108-ge5452e3
nt::TimestampedDoubleArrayView Struct Reference

Timestamped DoubleArray view (for SmallVector-taking functions). More...

#include <ntcore_cpp_types.h>

Public Member Functions

 TimestampedDoubleArrayView ()=default
 
 TimestampedDoubleArrayView (int64_t time, int64_t serverTime, std::span< double > value)
 

Public Attributes

int64_t time = 0
 Time in local time base. More...
 
int64_t serverTime = 0
 Time in server time base. More...
 
std::span< double > value = {}
 Value. More...
 

Detailed Description

Timestamped DoubleArray view (for SmallVector-taking functions).

Constructor & Destructor Documentation

◆ TimestampedDoubleArrayView() [1/2]

nt::TimestampedDoubleArrayView::TimestampedDoubleArrayView ( )
default

◆ TimestampedDoubleArrayView() [2/2]

nt::TimestampedDoubleArrayView::TimestampedDoubleArrayView ( int64_t  time,
int64_t  serverTime,
std::span< double >  value 
)
inline

Member Data Documentation

◆ serverTime

int64_t nt::TimestampedDoubleArrayView::serverTime = 0

Time in server time base.

May be 0 or 1 for locally set values.

◆ time

int64_t nt::TimestampedDoubleArrayView::time = 0

Time in local time base.

◆ value

std::span<double> nt::TimestampedDoubleArrayView::value = {}

The documentation for this struct was generated from the following file: