ARB
Classes | Macros | Functions | Variables
NT_sort.cxx File Reference
#include "NT_local.h"
#include <item_sel_list.h>
#include <aw_awar.hxx>
#include <arb_progress.h>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <TreeNode.h>
#include <arb_sort.h>
#include <arb_global_defs.h>
Include dependency graph for NT_sort.cxx:

Go to the source code of this file.

Classes

struct  customCriterion
 

Macros

#define FIELD_FILTER_RESORT   (1<<GB_STRING)|(1<<GB_INT)|(1<<GB_FLOAT)
 
#define CUSTOM_CRITERIA   3
 
#define AWAR_TREE_SORT1   "db_sort/sort_1"
 
#define AWAR_TREE_SORT2   "db_sort/sort_2"
 
#define AWAR_TREE_SORT3   "db_sort/sort_3"
 
#define AWAR_TREE_REV1   "db_sort/rev1"
 
#define AWAR_TREE_REV2   "db_sort/rev2"
 
#define AWAR_TREE_REV3   "db_sort/rev3"
 

Functions

static int cmpByKey (GBDATA *gbd1, GBDATA *gbd2, const customCriterion &by)
 
static void NT_resort_data_base_by_tree (TreeNode *tree, GBDATA *gb_species_data)
 
static int resort_data_by_customOrder (const void *v1, const void *v2, void *cd_sortBy)
 
static GB_ERROR resort_data_base (GBDATA *gb_main, TreeNode *tree, const customCriterion *sortBy)
 
static GB_ERROR strict_resort_data_base (GBDATA *gb_main, const customCriterion *sortBy)
 
void NT_resort_data_by_phylogeny (AW_window *, TREE_canvas *ntw)
 
static void NT_resort_data_by_user_criteria (AW_window *aw)
 
void NT_create_resort_awars (AW_root *awr, AW_default aw_def)
 
AW_windowNT_create_resort_window (AW_root *awr)
 

Variables

static GBDATA ** gb_resort_data_list
 
static long gb_resort_data_count
 
static bool customOrderIsStrict = true
 
static bool customDefinesOrder = false
 

Macro Definition Documentation

#define FIELD_FILTER_RESORT   (1<<GB_STRING)|(1<<GB_INT)|(1<<GB_FLOAT)

Definition at line 22 of file NT_sort.cxx.

Referenced by NT_create_resort_window().

#define CUSTOM_CRITERIA   3

Definition at line 24 of file NT_sort.cxx.

Referenced by NT_resort_data_by_user_criteria(), and resort_data_by_customOrder().

#define AWAR_TREE_SORT1   "db_sort/sort_1"
#define AWAR_TREE_SORT2   "db_sort/sort_2"
#define AWAR_TREE_SORT3   "db_sort/sort_3"
#define AWAR_TREE_REV1   "db_sort/rev1"
#define AWAR_TREE_REV2   "db_sort/rev2"
#define AWAR_TREE_REV3   "db_sort/rev3"

Function Documentation

static int cmpByKey ( GBDATA gbd1,
GBDATA gbd2,
const customCriterion by 
)
static
static void NT_resort_data_base_by_tree ( TreeNode tree,
GBDATA gb_species_data 
)
static

Definition at line 89 of file NT_sort.cxx.

References TreeNode::gb_node, gb_resort_data_count, gb_species_data, and TreeNode::is_leaf().

Referenced by resort_data_base().

static int resort_data_by_customOrder ( const void *  v1,
const void *  v2,
void *  cd_sortBy 
)
static

Definition at line 106 of file NT_sort.cxx.

References cmp, cmpByKey(), CUSTOM_CRITERIA, customDefinesOrder, and customOrderIsStrict.

Referenced by resort_data_base().

static GB_ERROR resort_data_base ( GBDATA gb_main,
TreeNode tree,
const customCriterion sortBy 
)
static
static GB_ERROR strict_resort_data_base ( GBDATA gb_main,
const customCriterion sortBy 
)
static
void NT_resort_data_by_phylogeny ( AW_window ,
TREE_canvas ntw 
)
static void NT_resort_data_by_user_criteria ( AW_window aw)
static
void NT_create_resort_awars ( AW_root awr,
AW_default  aw_def 
)
AW_window* NT_create_resort_window ( AW_root awr)

Variable Documentation

GBDATA** gb_resort_data_list
static

Definition at line 86 of file NT_sort.cxx.

long gb_resort_data_count
static

Definition at line 87 of file NT_sort.cxx.

Referenced by NT_resort_data_base_by_tree(), and resort_data_base().

bool customOrderIsStrict = true
static

Definition at line 103 of file NT_sort.cxx.

Referenced by resort_data_by_customOrder(), and strict_resort_data_base().

bool customDefinesOrder = false
static

Definition at line 104 of file NT_sort.cxx.

Referenced by resort_data_by_customOrder(), and strict_resort_data_base().