Now you can download a copy of these docs so you can use them offline! Download now
BooleanArray.cpp
1 /*
2  * BooleanArray.cpp
3  *
4  * Created on: Nov 16, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #include "networktables2/type/BooleanArray.h"
9 #include "networktables2/type/DefaultEntryTypes.h"
10 
11 
12 const TypeId BooleanArray::BOOLEAN_ARRAY_RAW_ID = 0x10;
13 ArrayEntryType BooleanArray::TYPE(BOOLEAN_ARRAY_RAW_ID, DefaultEntryTypes::BOOLEAN);
14 
15 BooleanArray::BooleanArray() : ArrayData(TYPE) {
16 }
17 
18 bool BooleanArray::get(int index){
19  return _get(index).b;
20 }
21 
22 void BooleanArray::set(int index, bool value){
23  EntryValue eValue;
24  eValue.b = value;
25  _set(index, eValue);
26 }
27 
28 void BooleanArray::add(bool value){
29  EntryValue eValue;
30  eValue.b = value;
31  _add(eValue);
32 }
EntryValue _get(unsigned int index)
Definition: ArrayData.cpp:25
void _set(unsigned int index, EntryValue value)
Definition: ArrayData.cpp:29
void _add(EntryValue value)
Definition: ArrayData.cpp:34
Definition: ITable.h:13

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6