SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TaskRelation.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Copyright (C) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef TASKRELATION_H_
11 #define TASKRELATION_H_
12 #define IGNORE_IN_CLASSLIST
13 
14 #include <shogun/lib/config.h>
15 
16 #include <shogun/base/SGObject.h>
17 
18 namespace shogun
19 {
20 
21 #ifndef DOXYGEN_SHOULD_SKIP_THIS
22 IGNORE_IN_CLASSLIST enum ETaskRelationType
23 {
24  TASK_TREE,
25  TASK_GROUP
26 };
27 #endif
28 
31 class CTaskRelation : public CSGObject
32 {
33 public:
34 
37  {
38  }
39 
41  virtual ~CTaskRelation()
42  {
43  }
44 
49  virtual const char* get_name() const { return "TaskRelation"; };
50 
55  virtual ETaskRelationType get_relation_type() const = 0;
56 
61  virtual SGVector<index_t>* get_tasks_indices() const = 0;
62 
67  virtual int32_t get_num_tasks() const = 0;
68 };
69 
70 }
71 #endif

SHOGUN Machine Learning Toolbox - Documentation