Now you can download a copy of these docs so you can use them offline! Download now
ArrayData.h
1 /*
2  * ArrayData.h
3  *
4  * Created on: Nov 14, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #ifndef ARRAYDATA_H_
9 #define ARRAYDATA_H_
10 
11 class ArrayData;
12 
13 #include "networktables2/type/ArrayEntryType.h"
14 #include "networktables2/type/ComplexData.h"
15 #include "networktables2/NetworkTableEntry.h"
16 
20 class ArrayData : public ComplexData{
21 private:
22  ArrayEntryType& m_data_type;
23  unsigned int m_size;
24  EntryValue* data;
25 public:
33  virtual ~ArrayData();
34 protected:
40  EntryValue _get(unsigned int index);
41 
51  void _set(unsigned int index, EntryValue value);
52 
59  void _add(EntryValue value);
60 
61 public:
67  void remove(unsigned int index);
68 
74  void setSize(unsigned int size);
75 
81  unsigned int size();
82 
83  friend class ArrayEntryType;
84 };
85 
86 
87 
88 #endif /* ARRAYDATA_H_ */
EntryValue _get(unsigned int index)
Definition: ArrayData.cpp:25
void setSize(unsigned int size)
Definition: ArrayData.cpp:50
void _set(unsigned int index, EntryValue value)
Definition: ArrayData.cpp:29
ArrayData(ArrayEntryType &type)
Definition: ArrayData.cpp:17
void _add(EntryValue value)
Definition: ArrayData.cpp:34
unsigned int size()
Definition: ArrayData.cpp:73
Definition: ITable.h:13

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