SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TaskGroup.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 TASKGROUP_H_
11 #define TASKGROUP_H_
12 
13 #include <shogun/lib/config.h>
14 
15 #include <shogun/base/SGObject.h>
19 
20 namespace shogun
21 {
22 
28 class CTaskGroup : public CTaskRelation
29 {
30 public:
31 
33  CTaskGroup();
34 
36  virtual ~CTaskGroup();
37 
42  virtual SGVector<index_t>* get_tasks_indices() const;
43 
48  void append_task(CTask* task);
49 
54  virtual int32_t get_num_tasks() const;
55 
60  const char* get_name() const { return "TaskGroup"; };
61 
66  ETaskRelationType get_relation_type() const { return TASK_GROUP; }
67 
68 private:
69 
71  void init();
72 
73 protected:
74 
77 
78 };
79 }
80 #endif
81 

SHOGUN Machine Learning Toolbox - Documentation