#include <ArrayEntryType.h>
Public Member Functions | |
ArrayEntryType (TypeId id, NetworkTableEntryType &elementType) | |
EntryValue | copyElement (EntryValue value) |
void | deleteElement (EntryValue value) |
bool | areElementsEqual (EntryValue v1, EntryValue v2) |
void | sendValue (EntryValue value, DataIOStream &os) |
EntryValue | readValue (DataIOStream &is) |
EntryValue | copyValue (EntryValue value) |
void | deleteValue (EntryValue value) |
bool | areEqual (EntryValue v1, EntryValue v2) |
EntryValue | internalizeValue (std::string &key, ComplexData &externalRepresentation, EntryValue currentInteralValue) |
void | exportValue (std::string &key, EntryValue internalData, ComplexData &externalRepresentation) |
Public Member Functions inherited from ComplexEntryType | |
virtual bool | isComplex () |
Additional Inherited Members | |
Public Attributes inherited from NetworkTableEntryType | |
const TypeId | id |
const char * | name |
Protected Member Functions inherited from ComplexEntryType | |
ComplexEntryType (TypeId id, const char *name) | |
Protected Member Functions inherited from NetworkTableEntryType | |
NetworkTableEntryType (TypeId id, const char *name) | |
Represents the type of an array entry value.
Definition at line 34 of file ArrayEntryType.h.
ArrayEntryType::ArrayEntryType | ( | TypeId | id, |
NetworkTableEntryType & | elementType | ||
) |
Creates a new ArrayEntryType.
id | The ID which identifies this type to other nodes on across the network. |
elementType | The type of the elements this array contains. |
Definition at line 10 of file ArrayEntryType.cpp.
bool ArrayEntryType::areElementsEqual | ( | EntryValue | v1, |
EntryValue | v2 | ||
) |
Compares two elements of the type of the array
Definition at line 20 of file ArrayEntryType.cpp.
|
virtual |
Compares two values to determine if they are equal and should not push an update to other nodes
v1 | |
v2 |
Implements NetworkTableEntryType.
Definition at line 80 of file ArrayEntryType.cpp.
EntryValue ArrayEntryType::copyElement | ( | EntryValue | value | ) |
Creates a copy of an value which is of the type contained by this array.
value | The element, of this array's contained type, to copy. |
Definition at line 14 of file ArrayEntryType.cpp.
|
virtual |
See NetworkTableEntryType::copyValue
Reimplemented from NetworkTableEntryType.
Definition at line 52 of file ArrayEntryType.cpp.
void ArrayEntryType::deleteElement | ( | EntryValue | value | ) |
Deletes a entry value which is of the type contained by this array.
After calling this method, the given entry value is no longer valid.
value | The value to delete. |
Definition at line 17 of file ArrayEntryType.cpp.
|
virtual |
See NetworkTableEntryType::deleteValue
Reimplemented from NetworkTableEntryType.
Definition at line 68 of file ArrayEntryType.cpp.
|
virtual |
See ComplexEntryType::exportValue
Implements ComplexEntryType.
Definition at line 126 of file ArrayEntryType.cpp.
|
virtual |
See ComplexEntryType::internalizeValue
Implements ComplexEntryType.
Definition at line 92 of file ArrayEntryType.cpp.
|
virtual |
See NetworkTableEntryType::readValue
Implements NetworkTableEntryType.
Definition at line 36 of file ArrayEntryType.cpp.
|
virtual |
See NetworkTableEntryType::sendValue
Implements NetworkTableEntryType.
Definition at line 25 of file ArrayEntryType.cpp.