mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Run wpiformat on merged repo (#1021)
This commit is contained in:
committed by
Peter Johnson
parent
0babbf317c
commit
6729a7d6b1
@@ -144,8 +144,7 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddValueProperty(
|
||||
const wpi::Twine& key,
|
||||
std::function<std::shared_ptr<nt::Value>()> getter,
|
||||
const wpi::Twine& key, std::function<std::shared_ptr<nt::Value>()> getter,
|
||||
std::function<void(std::shared_ptr<nt::Value>)> setter) = 0;
|
||||
|
||||
/**
|
||||
@@ -169,8 +168,7 @@ class SendableBuilder {
|
||||
*/
|
||||
virtual void AddSmallBooleanArrayProperty(
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)>
|
||||
getter,
|
||||
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)> getter,
|
||||
std::function<void(wpi::ArrayRef<int>)> setter) = 0;
|
||||
|
||||
/**
|
||||
|
||||
@@ -105,8 +105,7 @@ class SendableBuilderImpl : public SendableBuilder {
|
||||
std::function<void(wpi::StringRef)> setter) override;
|
||||
|
||||
void AddValueProperty(
|
||||
const wpi::Twine& key,
|
||||
std::function<std::shared_ptr<nt::Value>()> getter,
|
||||
const wpi::Twine& key, std::function<std::shared_ptr<nt::Value>()> getter,
|
||||
std::function<void(std::shared_ptr<nt::Value>)> setter) override;
|
||||
|
||||
void AddSmallStringProperty(
|
||||
@@ -116,8 +115,7 @@ class SendableBuilderImpl : public SendableBuilder {
|
||||
|
||||
void AddSmallBooleanArrayProperty(
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)>
|
||||
getter,
|
||||
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)> getter,
|
||||
std::function<void(wpi::ArrayRef<int>)> setter) override;
|
||||
|
||||
void AddSmallDoubleArrayProperty(
|
||||
|
||||
@@ -50,8 +50,7 @@ class SmartDashboard : public SensorBase {
|
||||
static double GetNumber(wpi::StringRef keyName, double defaultValue);
|
||||
|
||||
static bool PutString(wpi::StringRef keyName, wpi::StringRef value);
|
||||
static bool SetDefaultString(wpi::StringRef key,
|
||||
wpi::StringRef defaultValue);
|
||||
static bool SetDefaultString(wpi::StringRef key, wpi::StringRef defaultValue);
|
||||
static std::string GetString(wpi::StringRef keyName,
|
||||
wpi::StringRef defaultValue);
|
||||
|
||||
@@ -64,8 +63,8 @@ class SmartDashboard : public SensorBase {
|
||||
static bool PutNumberArray(wpi::StringRef key, wpi::ArrayRef<double> value);
|
||||
static bool SetDefaultNumberArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<double> defaultValue);
|
||||
static std::vector<double> GetNumberArray(
|
||||
wpi::StringRef key, wpi::ArrayRef<double> defaultValue);
|
||||
static std::vector<double> GetNumberArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<double> defaultValue);
|
||||
|
||||
static bool PutStringArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<std::string> value);
|
||||
|
||||
Reference in New Issue
Block a user