27class BooleanArrayTopic;
144 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables BooleanArray entry.
Definition: BooleanArrayTopic.h:212
BooleanArrayTopic TopicType
Definition: BooleanArrayTopic.h:216
BooleanArrayEntry()=default
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: BooleanArrayTopic.h:248
BooleanArrayEntry(NT_Entry handle, ParamType defaultValue)
Construct from an entry handle; recommended to use BooleanArrayTopic::GetEntry() instead.
void Unpublish()
Stops publishing the entry if it's published.
Definition: BooleanArrayTopic.inc:90
TopicType GetTopic() const
Get the corresponding topic.
Definition: BooleanArrayTopic.inc:86
NetworkTables BooleanArray publisher.
Definition: BooleanArrayTopic.h:160
BooleanArrayPublisher()=default
std::span< const int > ParamType
Definition: BooleanArrayTopic.h:164
int SmallElemType
Definition: BooleanArrayTopic.h:167
std::vector< int > ValueType
Definition: BooleanArrayTopic.h:163
TopicType GetTopic() const
Get the corresponding topic.
Definition: BooleanArrayTopic.inc:77
std::span< int > SmallRetType
Definition: BooleanArrayTopic.h:166
void SetDefault(ParamType value)
Publish a default value.
Definition: BooleanArrayTopic.inc:73
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: BooleanArrayTopic.inc:68
NetworkTables BooleanArray subscriber.
Definition: BooleanArrayTopic.h:32
std::span< int > SmallRetType
Definition: BooleanArrayTopic.h:39
ValueType Get() const
Get the last published value.
Definition: BooleanArrayTopic.inc:22
SmallRetType Get(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value.
BooleanArraySubscriber(NT_Subscriber handle, ParamType defaultValue)
Construct from a subscriber handle; recommended to use BooleanArrayTopic::Subscribe() instead.
TopicType GetTopic() const
Get the corresponding topic.
Definition: BooleanArrayTopic.inc:61
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: BooleanArrayTopic.inc:57
ValueType Get(ParamType defaultValue) const
Get the last published value.
BooleanArraySubscriber()=default
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: BooleanArrayTopic.inc:39
std::vector< int > ValueType
Definition: BooleanArrayTopic.h:35
TimestampedValueType GetAtomic(ParamType defaultValue) const
Get the last published value along with its timestamp.
TimestampedValueViewType GetAtomic(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value along with its timestamp.
std::span< const int > ParamType
Definition: BooleanArrayTopic.h:36
int SmallElemType
Definition: BooleanArrayTopic.h:40
NetworkTables BooleanArray topic.
Definition: BooleanArrayTopic.h:266
SubscriberType SubscribeEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic, with specific type string.
Definition: BooleanArrayTopic.inc:101
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: BooleanArrayTopic.inc:115
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: BooleanArrayTopic.inc:94
BooleanArrayTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetBooleanArrayTopic() instea...
Definition: BooleanArrayTopic.h:285
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: BooleanArrayTopic.inc:109
BooleanArrayTopic(Topic topic)
Construct from a generic topic.
Definition: BooleanArrayTopic.h:292
std::vector< int > ValueType
Definition: BooleanArrayTopic.h:271
std::span< const int > ParamType
Definition: BooleanArrayTopic.h:272
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: BooleanArrayTopic.h:275
EntryType GetEntryEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic, with specific type string.
Definition: BooleanArrayTopic.inc:129
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: BooleanArrayTopic.inc:122
BooleanArrayPublisher PublisherType
Definition: BooleanArrayTopic.h:269
BooleanArraySubscriber SubscriberType
Definition: BooleanArrayTopic.h:268
BooleanArrayEntry EntryType
Definition: BooleanArrayTopic.h:270
BooleanArrayTopic()=default
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< int > > TimestampedBooleanArray
Timestamped BooleanArray.
Definition: ntcore_cpp_types.h:555
Timestamped< std::span< int > > TimestampedBooleanArrayView
Timestamped BooleanArray view (for SmallVector-taking functions).
Definition: ntcore_cpp_types.h:561
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