TaskRelation.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Copyright (C) 2012 Sergey Lisitsyn
00008  */
00009 
00010 #ifndef TASKRELATION_H_
00011 #define TASKRELATION_H_
00012 #define IGNORE_IN_CLASSLIST
00013 #include <shogun/base/SGObject.h>
00014 
00015 namespace shogun
00016 {
00017 
00018 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00019 IGNORE_IN_CLASSLIST enum ETaskRelationType
00020 {
00021     TASK_TREE,
00022     TASK_GROUP
00023 };
00024 #endif
00025 
00028 class CTaskRelation : public CSGObject
00029 {
00030 public:
00031 
00033     CTaskRelation()
00034     {
00035     }
00036 
00038     virtual ~CTaskRelation()
00039     {
00040     }
00041     
00046     virtual const char* get_name() const { return "TaskRelation"; };
00047 
00052     virtual ETaskRelationType get_relation_type() const = 0;
00053 
00058     virtual SGVector<index_t>* get_tasks_indices() const = 0;
00059 
00064     virtual int32_t get_num_tasks() const = 0;
00065 };
00066 
00067 }
00068 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation