Now you can download a copy of these docs so you can use them offline! Download now

#include <ArrayData.h>

Inheritance diagram for ArrayData:
Collaboration diagram for ArrayData:

Public Member Functions

 ArrayData (ArrayEntryType &type)
 
void remove (unsigned int index)
 
void setSize (unsigned int size)
 
unsigned int size ()
 
- Public Member Functions inherited from ComplexData
 ComplexData (ComplexEntryType &type)
 
ComplexEntryTypeGetType ()
 

Protected Member Functions

EntryValue _get (unsigned int index)
 
void _set (unsigned int index, EntryValue value)
 
void _add (EntryValue value)
 

Friends

class ArrayEntryType
 

Detailed Description

Defines the internal representation for an array.

Definition at line 20 of file ArrayData.h.

Constructor & Destructor Documentation

ArrayData::ArrayData ( ArrayEntryType type)

Creates a new ArrayData of the given type.

Parameters
typeThe ArrayEntryType representing the type information that this ArrayData should satisfy.

Definition at line 17 of file ArrayData.cpp.

Member Function Documentation

void ArrayData::_add ( EntryValue  value)
protected

Appends the given value to the end of this array.

Parameters
valueThe value to store. This value must have the same type as the ArrayEntryType indicates.

Definition at line 34 of file ArrayData.cpp.

EntryValue ArrayData::_get ( unsigned int  index)
protected

Gets the value stored at the specified index.

Parameters
indexThe array index to retrieve.

Definition at line 25 of file ArrayData.cpp.

void ArrayData::_set ( unsigned int  index,
EntryValue  value 
)
protected

Updates the value stored at the specified index.

The value currently stored at the given index is deleted.

Parameters
indexThe array index to update.
valueThe value to store. This value must have the same type as the ArrayEntryType indicates.

Definition at line 29 of file ArrayData.cpp.

void ArrayData::remove ( unsigned int  index)

Removes and deletes the value stored at the specified index.

Parameters
indexThe index of the value to remove.

Definition at line 39 of file ArrayData.cpp.

void ArrayData::setSize ( unsigned int  size)

Sets the new size of this array data structure.

Parameters
sizeThe new size that this array should assume.

Definition at line 50 of file ArrayData.cpp.

unsigned int ArrayData::size ( )

Gets the current size of this array data structure.

Returns
The current number of elements that this array may contain.

Definition at line 73 of file ArrayData.cpp.


The documentation for this class was generated from the following files:

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