10 #ifndef __SUBSETSTACK_H_ 11 #define __SUBSETSTACK_H_ 13 #include <shogun/lib/config.h> 52 inline const char*
get_name()
const {
return "SubsetStack"; }
83 SG_WARNING(
"CSubsetStack::get_size(): No subset in stack!\n")
107 return m_active_subset ? m_active_subset->m_subset_idx.
vector[idx] : idx;
Wrapper class for an index subset which is used by SubsetStack.
virtual bool has_subsets() const
const char * get_name() const
class to add subset support to another class. A CSubsetStackStack instance should be added and wrappe...
index_t subset_idx_conversion(index_t idx) const
virtual void add_subset(SGVector< index_t > subset)
Class SGObject is the base class of all shogun objects.
virtual void remove_all_subsets()
virtual void add_subset_in_place(SGVector< index_t > subset)
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
int32_t get_num_elements() const
all of classes and functions are contained in the shogun namespace
virtual void remove_subset()
CSubset * get_last_subset() const