NCBI C++ ToolKit
Public Member Functions | List of all members
IFeatSorter Class Referenceabstract

Search Toolkit Book for IFeatSorter

IFeatSorter is an abstract interface for sorting features based on any criteria. More...

#include <gui/widgets/seq_graphic/feature_sorter.hpp>

+ Inheritance diagram for IFeatSorter:
+ Collaboration diagram for IFeatSorter:

Public Member Functions

virtual int GetGroupIdx (const objects::CMappedFeat &feat) const =0
 Get the sorted group index for a given feature. More...
 
virtual bool ChildFeatureFirst () const
 Priority on sorting parent or child features. More...
 
- Public Member Functions inherited from IObjectSorter
virtual ~IObjectSorter ()
 
virtual string GroupIdxToName (int idx) const =0
 Convert group index into group name. More...
 
virtual SSorterDescriptor GetThisDescr () const =0
 Return a name for the sorter. More...
 

Detailed Description

IFeatSorter is an abstract interface for sorting features based on any criteria.

Definition at line 79 of file feature_sorter.hpp.

Member Function Documentation

◆ ChildFeatureFirst()

virtual bool IFeatSorter::ChildFeatureFirst ( ) const
inlinevirtual

Priority on sorting parent or child features.

In case there are parent-child relation features, and the sorting may be in conflict for parent and child features, we need a priority of sorting parent feature or child features to decide which sorted group they should go together.

Definition at line 92 of file feature_sorter.hpp.

◆ GetGroupIdx()

virtual int IFeatSorter::GetGroupIdx ( const objects::CMappedFeat &  feat) const
pure virtual

Get the sorted group index for a given feature.

@ret any index >=0 will be considered as a valid index. Otherwise, it is an invalid index.

Implemented in CFeatStrandSorter, CGRCStatusSorter, CDbvarValidationSorter, CDbvarSamplesetTypeSorter, CDbvarClinicalAsstSorter, CDbvarPilotSorter, CDbvarQualitySorter, and CCloneConcordancySorter.


The documentation for this class was generated from the following file:
Modified on Sat Feb 24 07:49:02 2024 by modify_doxy.py rev. 669887