An InputItem is a single element that is read from the input file. It is a part of an InputList and possesses three properties:

  • A unique string identifier that is used by FLAGR to identify the common elements among all InputLists,
  • Its (integer) ranking in the input preference list, and
  • An optional score value that is assigned by the associated voter and justifies its ranking in the input list. The score data type can be either float, or double; this is determined by the score_t data type definition in flagr.cpp.

Implementation files
The InputItem class is defined in the src/InputItem.h header file; its member functions are implemented in src/InputItem.cpp.

The following interactive block diagram depicts the functionality of the InputItem class inside the entire architecture of FLAGR.

FLAGR architecture