|
Project
|
Category datastructure. More...
#include <Category.h>
Public Member Functions | |
| Category (std::string category_id="", int cat_rank=-1) | |
| Category (const Category &category) | |
Public Attributes | |
| std::string | category_id_ |
| int | rank_ |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Category &category) |
| bool | operator== (const Category &cat1, const Category &cat2) |
Category datastructure.
The Category datastructure is represented by its name and its rank. The rank represents the order to assume when comparing two categories. The rank 0 is by convention the worst category.
| Category::Category | ( | std::string | category_id = "", |
| int | cat_rank = -1 |
||
| ) |
| Category::Category | ( | const Category & | category | ) |
|
friend |