#include <AbstractString.h>
Inheritance diagram for AbstractStringListFeature:

Public Member Functions | |
| virtual string | serialize () const |
| virtual void | unserialize (string value) |
| virtual double | getPosition () const |
| virtual double | getDistance (Feature *f) const |
| virtual void | moveTowards (Feature *f, double factor) |
| virtual Feature * | clone () const |
| virtual const string | getName () const |
| const bit_vector & | getListVal () const |
| const stringvector & | getListValues () const |
| virtual string | toString () const |
Protected Member Functions | |
| AbstractStringListFeature (stringcode *code, long *maxlen) | |
| AbstractStringListFeature (stringcode *code, long *maxlen, const stringvector *names) | |
| bit_vector | getCodeForList (const stringvector *names) |
Protected Attributes | |
| bit_vector | listval |
A feature of type nominal which has lists of strings as values.
|
||||||||||||
|
Feature constructor This constructor initializes the feature as prototypes value. For creating a specific sample of a feature, the sample constructor should be used.
|
|
||||||||||||||||
|
Sample constructor This constructor initializes the feature with a specific value and should thus be used for samples.
|
|
|
Clone a feature A feature must be able to clone itself. This is typically implemented with a copy constructor, but should return a new object. Reimplemented from AbstractStringFeature. |
|
|
Get a code value for a given stringvector The function composes a bit_vector wherein for each string in the stringvector the bit on the position of the strings code value is set to true. The remaining bits are initialized to false.
|
|
|
Reimplemented from AbstractStringFeature. |
|
|
Query the list of values
|
|
|
Query the list of values
|
|
|
Query a features name
Reimplemented from AbstractStringFeature. Reimplemented in BluetoothPeersFeature, SystemCommandStringListFeature, and WlanPeersFeature. |
|
|
Query a features position
Reimplemented from AbstractStringFeature. |
|
||||||||||||
|
Reimplemented from AbstractStringFeature. |
|
|
Serialize a samples data to a string
Reimplemented from AbstractStringFeature. |
|
|
Get feature as string
Reimplemented from AbstractStringFeature. Reimplemented in BluetoothPeersFeature, SystemCommandStringListFeature, and WlanPeersFeature. |
|
|
Unserialize a samples data from a string
Reimplemented from AbstractStringFeature. |
|
|
The coded value of the feature.
|
1.4.6