Skip to content

Commit ffd4f04

Browse files
committed
Remove shared_ptr`
1 parent 285ac6a commit ffd4f04

File tree

156 files changed

+22
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+22
-343
lines changed

subprojects/robotpy-hal/wrapcfg/DriverStationTypes.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21

32
strip_prefixes:
43
- HAL_
@@ -10,7 +9,6 @@ enums:
109
value_prefix: HAL_kMatchType
1110
classes:
1211
HAL_ControlWord:
13-
shared_ptr: false
1412
attributes:
1513
enabled:
1614
autonomous:
@@ -20,23 +18,19 @@ classes:
2018
dsAttached:
2119
control_reserved:
2220
HAL_JoystickAxes:
23-
shared_ptr: false
2421
attributes:
2522
count:
2623
axes:
2724
raw:
2825
HAL_JoystickPOVs:
29-
shared_ptr: false
3026
attributes:
3127
count:
3228
povs:
3329
HAL_JoystickButtons:
34-
shared_ptr: false
3530
attributes:
3631
buttons:
3732
count:
3833
HAL_JoystickDescriptor:
39-
shared_ptr: false
4034
attributes:
4135
isXbox:
4236
type:
@@ -46,7 +40,6 @@ classes:
4640
buttonCount:
4741
povCount:
4842
HAL_MatchInfo:
49-
shared_ptr: false
5043
attributes:
5144
eventName:
5245
matchType:

subprojects/robotpy-hal/wrapcfg/SimDevice.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
defaults:
32
ignore: true
43
report_ignored_missing: false
@@ -18,7 +17,6 @@ classes:
1817
1918
It is not useful to construct these directly -- they are returned from
2019
:meth:`.SimDeviceSim.getValue` or :meth:`.SimDevice.createValue`.
21-
shared_ptr: false
2220
methods:
2321
SimValue:
2422
overloads:
@@ -38,7 +36,6 @@ classes:
3836
3937
It is not useful to construct these directly, they are returned
4038
from various functions.
41-
shared_ptr: false
4239
force_no_trampoline: true
4340
methods:
4441
SimInt:
@@ -58,7 +55,6 @@ classes:
5855
5956
It is not useful to construct these directly, they are returned
6057
from various functions.
61-
shared_ptr: false
6258
force_no_trampoline: true
6359
methods:
6460
SimLong:
@@ -78,7 +74,6 @@ classes:
7874
7975
It is not useful to construct these directly -- they are returned from
8076
:meth:`.SimDeviceSim.getDouble` or :meth:`.SimDevice.createDouble`.
81-
shared_ptr: false
8277
force_no_trampoline: true
8378
methods:
8479
SimDouble:
@@ -98,7 +93,6 @@ classes:
9893
9994
It is not useful to construct these directly -- they are returned from
10095
:meth:`.SimDeviceSim.getEnum` or :meth:`.SimDevice.createEnum`.
101-
shared_ptr: false
10296
force_no_trampoline: true
10397
methods:
10498
SimEnum:
@@ -117,7 +111,6 @@ classes:
117111
118112
It is not useful to construct these directly -- they are returned from
119113
:meth:`.SimDeviceSim.getBoolean` or :meth:`.SimDevice.createBoolean`.
120-
shared_ptr: false
121114
force_no_trampoline: true
122115
methods:
123116
SimBoolean:
@@ -139,7 +132,6 @@ classes:
139132
140133
.. note:: To interact with an existing device use
141134
:class:`hal.simulation.SimDeviceSim` instead.
142-
shared_ptr: false
143135
force_type_casters:
144136
- wpi::SmallVector
145137
enums:
@@ -191,7 +183,7 @@ classes:
191183
CreateInt:
192184
CreateLong:
193185

194-
inline_code: |
186+
inline_code: |2
195187
196188
cls_SimValue
197189
.def_property_readonly("value", [](const hal::SimValue &self) -> py::object {
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
strip_prefixes:
34
- HALSIM_
45

@@ -7,43 +8,42 @@ functions:
78
HALSIM_RegisterCTREPCMInitializedCallback:
89
ignore: true
910
HALSIM_CancelCTREPCMInitializedCallback:
11+
ignore: true
1012
HALSIM_GetCTREPCMInitialized:
1113
HALSIM_SetCTREPCMInitialized:
1214
HALSIM_RegisterCTREPCMSolenoidOutputCallback:
1315
ignore: true
14-
HALSIM_CancelCTREPCMInitializedCallback:
1516
HALSIM_CancelCTREPCMSolenoidOutputCallback:
17+
ignore: true
1618
HALSIM_GetCTREPCMSolenoidOutput:
1719
HALSIM_SetCTREPCMSolenoidOutput:
1820
HALSIM_RegisterCTREPCMCompressorOnCallback:
1921
ignore: true
20-
HALSIM_CancelCTREPCMInitializedCallback:
2122
HALSIM_CancelCTREPCMCompressorOnCallback:
23+
ignore: true
2224
HALSIM_GetCTREPCMCompressorOn:
2325
HALSIM_SetCTREPCMCompressorOn:
2426
HALSIM_RegisterCTREPCMClosedLoopEnabledCallback:
2527
ignore: true
26-
HALSIM_CancelCTREPCMInitializedCallback:
2728
HALSIM_CancelCTREPCMClosedLoopEnabledCallback:
29+
ignore: true
2830
HALSIM_GetCTREPCMClosedLoopEnabled:
2931
HALSIM_SetCTREPCMClosedLoopEnabled:
3032
HALSIM_RegisterCTREPCMPressureSwitchCallback:
3133
ignore: true
32-
HALSIM_CancelCTREPCMInitializedCallback:
3334
HALSIM_CancelCTREPCMPressureSwitchCallback:
35+
ignore: true
3436
HALSIM_GetCTREPCMPressureSwitch:
3537
HALSIM_SetCTREPCMPressureSwitch:
3638
HALSIM_RegisterCTREPCMCompressorCurrentCallback:
3739
ignore: true
38-
HALSIM_CancelCTREPCMInitializedCallback:
3940
HALSIM_CancelCTREPCMCompressorCurrentCallback:
41+
ignore: true
4042
HALSIM_GetCTREPCMCompressorCurrent:
4143
HALSIM_SetCTREPCMCompressorCurrent:
4244
HALSIM_GetCTREPCMAllSolenoids:
4345
HALSIM_SetCTREPCMAllSolenoids:
4446
HALSIM_RegisterCTREPCMAllNonSolenoidCallbacks:
4547
ignore: true
46-
HALSIM_CancelCTREPCMInitializedCallback:
4748
HALSIM_RegisterCTREPCMAllSolenoidCallbacks:
4849
ignore: true
49-
HALSIM_CancelCTREPCMInitializedCallback:

subprojects/robotpy-hal/wrapcfg/simulation/DriverStationData.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ functions:
77
HALSIM_ResetDriverStationData:
88
HALSIM_RegisterDriverStationEnabledCallback:
99
ignore: true
10-
ignore: true
1110
HALSIM_CancelDriverStationEnabledCallback:
1211
HALSIM_GetDriverStationEnabled:
1312
HALSIM_SetDriverStationEnabled:

subprojects/robotpy-hal/wrapcfg/simulation/SimDeviceData.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ functions:
1616
ignore: true
1717
HALSIM_RegisterSimDeviceFreedCallback:
1818
ignore: true
19-
HALSIM_CancelSimDeviceCreatedCallback:
20-
ignore: true
2119
HALSIM_CancelSimDeviceFreedCallback:
2220
ignore: true
2321
HALSIM_GetSimDeviceHandle:
@@ -42,8 +40,6 @@ functions:
4240
cb->SetUID(uid);
4341
return std::move(cb);
4442
}
45-
HALSIM_CancelSimDeviceCreatedCallback:
46-
ignore: true
4743
HALSIM_CancelSimValueCreatedCallback:
4844
ignore: true
4945
HALSIM_RegisterSimValueChangedCallback:
@@ -65,8 +61,6 @@ functions:
6561
cb->SetUID(uid);
6662
return std::move(cb);
6763
}
68-
HALSIM_CancelSimDeviceCreatedCallback:
69-
ignore: true
7064
HALSIM_CancelSimValueChangedCallback:
7165
ignore: true
7266
HALSIM_RegisterSimValueResetCallback:

subprojects/robotpy-wpilib/wrapcfg/ADXL345_I2C.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
extra_includes:
32
- networktables/NTSendableBuilder.h
43

@@ -25,7 +24,6 @@ classes:
2524
GetAccelerations:
2625
InitSendable:
2726
frc::ADXL345_I2C::AllAxes:
28-
shared_ptr: false
2927
attributes:
3028
XAxis:
3129
YAxis:

subprojects/robotpy-wpilib/wrapcfg/ADXL345_SPI.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
extra_includes:
32
- networktables/NTSendableBuilder.h
43
- frc/DigitalSource.h
@@ -35,7 +34,6 @@ classes:
3534
GetAccelerations:
3635
InitSendable:
3736
frc::ADXL345_SPI::AllAxes:
38-
shared_ptr: false
3937
attributes:
4038
XAxis:
4139
YAxis:

subprojects/robotpy-wpilib/wrapcfg/ADXL362.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
extra_includes:
32
- networktables/NTSendableBuilder.h
43
- frc/DigitalSource.h
@@ -26,7 +25,6 @@ classes:
2625
GetAccelerations:
2726
InitSendable:
2827
frc::ADXL362::AllAxes:
29-
shared_ptr: false
3028
attributes:
3129
XAxis:
3230
YAxis:

subprojects/robotpy-wpilib/wrapcfg/ADXRS450_Gyro.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43
- frc/DigitalSource.h
54

65
classes:
76
frc::ADXRS450_Gyro:
8-
shared_ptr: true
97
ignored_bases:
108
- wpi::SendableHelper<ADXRS450_Gyro>
119
methods:

subprojects/robotpy-wpilib/wrapcfg/AnalogAccelerometer.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43

54
classes:
65
frc::AnalogAccelerometer:
7-
shared_ptr: true
86
ignored_bases:
97
- wpi::SendableHelper<AnalogAccelerometer>
108
methods:

subprojects/robotpy-wpilib/wrapcfg/AnalogEncoder.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43
- frc/AnalogInput.h
54

65
classes:
76
frc::AnalogEncoder:
8-
shared_ptr: true
97
ignored_bases:
108
- wpi::SendableHelper<AnalogEncoder>
119
methods:

subprojects/robotpy-wpilib/wrapcfg/AnalogGyro.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43
- frc/AnalogInput.h
54

65
classes:
76
frc::AnalogGyro:
8-
shared_ptr: true
97
ignored_bases:
108
- wpi::SendableHelper<AnalogGyro>
119
attributes:

subprojects/robotpy-wpilib/wrapcfg/AnalogInput.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43
- frc/DMA.h
54
- frc/DMASample.h
65

76
classes:
87
frc::AnalogInput:
9-
shared_ptr: true
108
ignored_bases:
119
- wpi::SendableHelper<AnalogInput>
1210
attributes:

subprojects/robotpy-wpilib/wrapcfg/AnalogOutput.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43

54
classes:
65
frc::AnalogOutput:
7-
shared_ptr: true
86
ignored_bases:
97
- wpi::SendableHelper<AnalogOutput>
108
attributes:

subprojects/robotpy-wpilib/wrapcfg/AnalogPotentiometer.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43

54
classes:
65
frc::AnalogPotentiometer:
7-
shared_ptr: true
86
ignored_bases:
97
- wpi::SendableHelper<AnalogPotentiometer>
108
methods:

subprojects/robotpy-wpilib/wrapcfg/AnalogTriggerOutput.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43
- frc/AnalogInput.h
@@ -7,7 +6,6 @@ extra_includes:
76

87
classes:
98
frc::AnalogTriggerOutput:
10-
shared_ptr: true
119
ignored_bases:
1210
- wpi::SendableHelper<AnalogTriggerOutput>
1311
methods:

subprojects/robotpy-wpilib/wrapcfg/CAN.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
21
classes:
32
frc::CANData:
4-
shared_ptr: true
53
attributes:
64
data:
75
length:
86
timestamp:
97
frc::CAN:
10-
shared_ptr: true
118
attributes:
129
kTeamManufacturer:
1310
kTeamDeviceType:

subprojects/robotpy-wpilib/wrapcfg/Counter.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43
- frc/DigitalGlitchFilter.h
@@ -7,7 +6,6 @@ extra_includes:
76

87
classes:
98
frc::Counter:
10-
shared_ptr: true
119
ignored_bases:
1210
- wpi::SendableHelper<Counter>
1311
typealias:

subprojects/robotpy-wpilib/wrapcfg/DMA.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
extra_includes:
32
- frc/AnalogInput.h
43
- frc/Counter.h
@@ -9,7 +8,6 @@ extra_includes:
98

109
classes:
1110
frc::DMA:
12-
shared_ptr: true
1311
methods:
1412
DMA:
1513
SetPause:

subprojects/robotpy-wpilib/wrapcfg/DMASample.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
21
classes:
32
frc::DMASample:
4-
shared_ptr: true
53
methods:
64
Update:
75
GetTime:
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
21
extra_includes:
32
- wpi/sendable/SendableBuilder.h
43

54
classes:
65
frc::DMC60:
7-
shared_ptr: true
86
methods:
97
DMC60:

0 commit comments

Comments
 (0)