Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
networktables2
type
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
}
ArrayEntryType
Definition:
ArrayEntryType.h:34
ArrayData::_get
EntryValue _get(unsigned int index)
Definition:
ArrayData.cpp:25
ArrayData::_set
void _set(unsigned int index, EntryValue value)
Definition:
ArrayData.cpp:29
ArrayData
Definition:
ArrayData.h:20
ArrayData::_add
void _add(EntryValue value)
Definition:
ArrayData.cpp:34
EntryValue
Definition:
ITable.h:13
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.