24class IntegerArrayTopic;
141 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables IntegerArray entry.
Definition: IntegerArrayTopic.h:209
IntegerArrayEntry(NT_Entry handle, ParamType defaultValue)
Construct from an entry handle; recommended to use IntegerArrayTopic::GetEntry() instead.
TopicType GetTopic() const
Get the corresponding topic.
Definition: IntegerArrayTopic.inc:82
IntegerArrayTopic TopicType
Definition: IntegerArrayTopic.h:213
void Unpublish()
Stops publishing the entry if it's published.
Definition: IntegerArrayTopic.inc:86
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: IntegerArrayTopic.h:245
IntegerArrayEntry()=default
NetworkTables IntegerArray publisher.
Definition: IntegerArrayTopic.h:157
TopicType GetTopic() const
Get the corresponding topic.
Definition: IntegerArrayTopic.inc:73
std::span< int64_t > SmallRetType
Definition: IntegerArrayTopic.h:163
int64_t SmallElemType
Definition: IntegerArrayTopic.h:164
IntegerArrayPublisher()=default
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: IntegerArrayTopic.inc:64
std::vector< int64_t > ValueType
Definition: IntegerArrayTopic.h:160
void SetDefault(ParamType value)
Publish a default value.
Definition: IntegerArrayTopic.inc:69
std::span< const int64_t > ParamType
Definition: IntegerArrayTopic.h:161
NetworkTables IntegerArray subscriber.
Definition: IntegerArrayTopic.h:29
std::vector< int64_t > ValueType
Definition: IntegerArrayTopic.h:32
std::span< int64_t > SmallRetType
Definition: IntegerArrayTopic.h:36
ValueType Get() const
Get the last published value.
Definition: IntegerArrayTopic.inc:18
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: IntegerArrayTopic.inc:35
TopicType GetTopic() const
Get the corresponding topic.
Definition: IntegerArrayTopic.inc:57
IntegerArraySubscriber()=default
SmallRetType Get(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value.
IntegerArraySubscriber(NT_Subscriber handle, ParamType defaultValue)
Construct from a subscriber handle; recommended to use IntegerArrayTopic::Subscribe() instead.
TimestampedValueViewType GetAtomic(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value along with its timestamp.
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: IntegerArrayTopic.inc:53
int64_t SmallElemType
Definition: IntegerArrayTopic.h:37
TimestampedValueType GetAtomic(ParamType defaultValue) const
Get the last published value along with its timestamp.
std::span< const int64_t > ParamType
Definition: IntegerArrayTopic.h:33
NetworkTables IntegerArray topic.
Definition: IntegerArrayTopic.h:263
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: IntegerArrayTopic.h:272
EntryType GetEntryEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic, with specific type string.
Definition: IntegerArrayTopic.inc:125
IntegerArrayTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetIntegerArrayTopic() instea...
Definition: IntegerArrayTopic.h:282
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: IntegerArrayTopic.inc:90
SubscriberType SubscribeEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic, with specific type string.
Definition: IntegerArrayTopic.inc:97
IntegerArrayPublisher PublisherType
Definition: IntegerArrayTopic.h:266
std::vector< int64_t > ValueType
Definition: IntegerArrayTopic.h:268
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: IntegerArrayTopic.inc:111
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: IntegerArrayTopic.inc:118
IntegerArrayTopic(Topic topic)
Construct from a generic topic.
Definition: IntegerArrayTopic.h:289
IntegerArrayEntry EntryType
Definition: IntegerArrayTopic.h:267
IntegerArrayTopic()=default
IntegerArraySubscriber SubscriberType
Definition: IntegerArrayTopic.h:265
std::span< const int64_t > ParamType
Definition: IntegerArrayTopic.h:269
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: IntegerArrayTopic.inc:105
NetworkTables publisher.
Definition: Topic.h:351
NetworkTables subscriber.
Definition: Topic.h:296
NT_Subscriber m_subHandle
Definition: Topic.h:347
NetworkTables Topic.
Definition: Topic.h:30
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:557
a class to store JSON values
Definition: json.h:2655
basic_string_view< char > string_view
Definition: core.h:520
NT_Handle NT_Topic
Definition: ntcore_c.h:38
NT_Handle NT_Subscriber
Definition: ntcore_c.h:39
NT_Handle NT_Publisher
Definition: ntcore_c.h:40
NT_Handle NT_Entry
Definition: ntcore_c.h:33
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition: ntcore_cpp.h:381
::int64_t int64_t
Definition: Meta.h:59
NetworkTables (ntcore) namespace.
Definition: Topic.inc:15
Definition: AprilTagFieldLayout.h:18
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:304
Timestamped IntegerArray.
Definition: ntcore_cpp_types.h:810
Timestamped IntegerArray view (for SmallVector-taking functions).
Definition: ntcore_cpp_types.h:835