144 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables FloatArray entry.
Definition: FloatArrayTopic.h:212
FloatArrayEntry(NT_Entry handle, ParamType defaultValue)
Construct from an entry handle; recommended to use FloatArrayTopic::GetEntry() instead.
FloatArrayTopic TopicType
Definition: FloatArrayTopic.h:216
void Unpublish()
Stops publishing the entry if it's published.
Definition: FloatArrayTopic.inc:90
FloatArrayEntry()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatArrayTopic.inc:86
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: FloatArrayTopic.h:248
NetworkTables FloatArray publisher.
Definition: FloatArrayTopic.h:160
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: FloatArrayTopic.inc:68
void SetDefault(ParamType value)
Publish a default value.
Definition: FloatArrayTopic.inc:73
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatArrayTopic.inc:77
std::vector< float > ValueType
Definition: FloatArrayTopic.h:163
float SmallElemType
Definition: FloatArrayTopic.h:167
FloatArrayPublisher()=default
std::span< float > SmallRetType
Definition: FloatArrayTopic.h:166
std::span< const float > ParamType
Definition: FloatArrayTopic.h:164
NetworkTables FloatArray subscriber.
Definition: FloatArrayTopic.h:32
std::span< const float > ParamType
Definition: FloatArrayTopic.h:36
std::span< float > SmallRetType
Definition: FloatArrayTopic.h:39
std::vector< float > ValueType
Definition: FloatArrayTopic.h:35
FloatArraySubscriber(NT_Subscriber handle, ParamType defaultValue)
Construct from a subscriber handle; recommended to use FloatArrayTopic::Subscribe() instead.
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatArrayTopic.inc:61
ValueType Get(ParamType defaultValue) const
Get the last published value.
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: FloatArrayTopic.inc:39
SmallRetType Get(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value.
float SmallElemType
Definition: FloatArrayTopic.h:40
TimestampedValueViewType GetAtomic(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value along with its timestamp.
FloatArraySubscriber()=default
ValueType Get() const
Get the last published value.
Definition: FloatArrayTopic.inc:22
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: FloatArrayTopic.inc:57
TimestampedValueType GetAtomic(ParamType defaultValue) const
Get the last published value along with its timestamp.
NetworkTables FloatArray topic.
Definition: FloatArrayTopic.h:266
FloatArrayTopic(Topic topic)
Construct from a generic topic.
Definition: FloatArrayTopic.h:292
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: FloatArrayTopic.inc:109
PublisherType PublishEx(std::string_view typeString, const wpi::json &properties, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic, with type string and initial properties.
Definition: FloatArrayTopic.inc:115
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: FloatArrayTopic.inc:122
EntryType GetEntryEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic, with specific type string.
Definition: FloatArrayTopic.inc:129
FloatArrayEntry EntryType
Definition: FloatArrayTopic.h:270
FloatArrayPublisher PublisherType
Definition: FloatArrayTopic.h:269
FloatArraySubscriber SubscriberType
Definition: FloatArrayTopic.h:268
FloatArrayTopic()=default
std::span< const float > ParamType
Definition: FloatArrayTopic.h:272
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: FloatArrayTopic.h:275
SubscriberType SubscribeEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic, with specific type string.
Definition: FloatArrayTopic.inc:101
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: FloatArrayTopic.inc:94
std::vector< float > ValueType
Definition: FloatArrayTopic.h:271
FloatArrayTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetFloatArrayTopic() instead.
Definition: FloatArrayTopic.h:285
NetworkTables publisher.
Definition: Topic.h:364
NetworkTables subscriber.
Definition: Topic.h:309
NT_Subscriber m_subHandle
Definition: Topic.h:360
NetworkTables Topic.
Definition: Topic.h:28
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:579
basic_string_view< char > string_view
Definition: core.h:501
NT_Handle NT_Topic
Definition: ntcore_c.h:40
NT_Handle NT_Subscriber
Definition: ntcore_c.h:41
NT_Handle NT_Publisher
Definition: ntcore_c.h:42
NT_Handle NT_Entry
Definition: ntcore_c.h:35
Timestamped< std::vector< float > > TimestampedFloatArray
Timestamped FloatArray.
Definition: ntcore_cpp_types.h:739
Timestamped< std::span< float > > TimestampedFloatArrayView
Timestamped FloatArray view (for SmallVector-taking functions).
Definition: ntcore_cpp_types.h:745
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition: ntcore_cpp.h:390
NetworkTables (ntcore) namespace.
Definition: ntcore_cpp.h:36
Definition: ntcore_cpp.h:26
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:305
Timestamped value.
Definition: ntcore_cpp_types.h:30