Public Member Functions | List of all members
NameDictionary Class Reference

Storage and functionality for block naming. More...

#include <NameDictionary.h>

Public Member Functions

String get (String key)
 Returns the value associated to a key. If no key value pair is found, the search term is returned. More...
 
void keys ()
 Prints all the keys to the serial. More...
 
int length ()
 Returns the number of key value pairs in the dictionary. More...
 
void list ()
 Prints all the key value pairs to the serial. More...
 
 NameDictionary ()
 Class constructor. More...
 
void values ()
 Prints all the values to the serial. More...
 

Detailed Description

Storage and functionality for block naming.

This class contains an array of chip ID to name mappings and a number of functions to help blocks auto asign themselves a name.

Constructor & Destructor Documentation

◆ NameDictionary()

NameDictionary::NameDictionary ( )

Class constructor.

Member Function Documentation

◆ get()

String NameDictionary::get ( String  key)

Returns the value associated to a key. If no key value pair is found, the search term is returned.

◆ keys()

void NameDictionary::keys ( )

Prints all the keys to the serial.

◆ length()

int NameDictionary::length ( )

Returns the number of key value pairs in the dictionary.

◆ list()

void NameDictionary::list ( )

Prints all the key value pairs to the serial.

◆ values()

void NameDictionary::values ( )

Prints all the values to the serial.


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