ARB
Public Member Functions | Public Attributes | List of all members
AP_tree_root Class Reference

#include <AP_Tree.hxx>

Inheritance diagram for AP_tree_root:
Inheritance graph
[legend]
Collaboration diagram for AP_tree_root:
Collaboration graph
[legend]

Public Member Functions

 AP_tree_root (AliView *aliView, AP_sequence *seq_proto, bool add_delete_callbacks, const group_scaling *scaling)
 
 ~AP_tree_root () OVERRIDE
 
 DEFINE_TREE_ROOT_ACCESSORS (AP_tree_root, AP_tree)
 
TreeNodemakeNode () const OVERRIDE
 
void destroyNode (TreeNode *node) const OVERRIDE
 
void change_root (TreeNode *old, TreeNode *newroot) FINAL_OVERRIDE
 
GB_ERROR loadFromDB (const char *name) FINAL_OVERRIDE
 
GB_ERROR saveToDB () OVERRIDE
 
virtual AP_UPDATE_FLAGS check_update ()
 
void update_timers ()
 
bool is_tree_updated ()
 
bool is_species_updated ()
 
const group_scalingget_group_scaling () const
 
void inform_about_delete (AP_tree *old)
 
void set_root_changed_callback (AP_rootChangedCb cb, void *cd)
 
void set_node_deleted_callback (AP_nodeDelCb cb, void *cd)
 
long remove_leafs (AWT_RemoveType awt_remove_type)
 
 PREPARE_MARK_NONFINAL_CLASS (AP_tree_root)
 
- Public Member Functions inherited from ARB_seqtree_root
 ARB_seqtree_root (AliView *aliView, AP_sequence *seqTempl, bool add_delete_callbacks)
 
 ~ARB_seqtree_root () OVERRIDE
 
 DEFINE_TREE_ROOT_ACCESSORS (ARB_seqtree_root, ARB_seqtree)
 
const AliViewget_aliview () const
 
const AP_filterget_filter () const
 
const AP_weightsget_weights () const
 
GBDATAget_gb_main () const
 
GBDATAget_gb_tree () const
 
void tree_deleted_cb (GBDATA *gb_tree_del)
 
const charget_tree_name () const
 
const AP_sequenceget_seqTemplate () const
 
GB_ERROR linkToDB (int *zombies, int *duplicates) __ATTR__USERESULT
 
void unlinkFromDB ()
 
 PREPARE_MARK_NONFINAL_CLASS (ARB_seqtree_root)
 
- Public Member Functions inherited from TreeRoot
 TreeRoot (bool deleteWithNodes_)
 
virtual ~TreeRoot ()
 
void delete_by_node ()
 
bool has_bootstrap () const
 
void set_bootstrap_seen (bool seen)
 
 DEFINE_READ_ACCESSORS (TreeNode *, get_root_node, rootNode)
 
ARB_edge find_innermost_edge ()
 

Public Attributes

GBDATAgb_tree_gone
 
chargone_tree_name
 
long tree_timer
 
long species_timer
 
AP_ratesrates
 

Additional Inherited Members

- Protected Member Functions inherited from ARB_seqtree_root
void set_gb_tree (GBDATA *gbTree)
 
void set_gb_tree_and_name (GBDATA *gbTree, const char *name)
 
- Protected Member Functions inherited from TreeRoot
void predelete ()
 

Detailed Description

Definition at line 81 of file AP_Tree.hxx.

Constructor & Destructor Documentation

AP_tree_root::AP_tree_root ( AliView aliView,
AP_sequence seq_proto,
bool  add_delete_callbacks,
const group_scaling scaling 
)

AP_tree_root **********

Definition at line 85 of file AP_Tree.cxx.

References gb_main, GBT_get_species_data(), ARB_seqtree_root::get_gb_main(), and ta.

AP_tree_root::~AP_tree_root ( )

Definition at line 102 of file AP_Tree.cxx.

References ap_assert, gone_tree_name, and TreeRoot::predelete().

Member Function Documentation

AP_tree_root::DEFINE_TREE_ROOT_ACCESSORS ( AP_tree_root  ,
AP_tree   
)
TreeNode * AP_tree_root::makeNode ( ) const
inlinevirtual

Implements TreeRoot.

Reimplemented in FINAL_TYPE< SEQTYPE >.

Definition at line 386 of file AP_Tree.hxx.

Referenced by AP_tree::initial_insert().

void AP_tree_root::destroyNode ( TreeNode node) const
inlinevirtual

Implements TreeRoot.

Reimplemented in FINAL_TYPE< SEQTYPE >.

Definition at line 387 of file AP_Tree.hxx.

References DOWNCAST.

Referenced by remove_leafs().

void AP_tree_root::change_root ( TreeNode old,
TreeNode newroot 
)
virtual
GB_ERROR AP_tree_root::loadFromDB ( const char name)
virtual
GB_ERROR AP_tree_root::saveToDB ( )
virtual
AP_UPDATE_FLAGS AP_tree_root::check_update ( )
virtual
void AP_tree_root::update_timers ( )
bool AP_tree_root::is_tree_updated ( )

Definition at line 108 of file AP_Tree.cxx.

References GB_read_clock(), ARB_seqtree_root::get_gb_tree(), ta, and tree_timer.

Referenced by check_update().

bool AP_tree_root::is_species_updated ( )

Definition at line 117 of file AP_Tree.cxx.

References GB_read_clock(), species_timer, and ta.

Referenced by check_update().

const group_scaling* AP_tree_root::get_group_scaling ( ) const
inline

Definition at line 122 of file AP_Tree.hxx.

Referenced by AP_tree::compute_tree(), and AP_tree::recompute_and_write_folding().

void AP_tree_root::inform_about_delete ( AP_tree old)

Definition at line 244 of file AP_Tree.cxx.

Referenced by AP_tree::REMOVE(), and AP_tree::~AP_tree().

void AP_tree_root::set_root_changed_callback ( AP_rootChangedCb  cb,
void *  cd 
)

Definition at line 248 of file AP_Tree.cxx.

References cb.

Referenced by AWT_graphic_tree::load_from_DB().

void AP_tree_root::set_node_deleted_callback ( AP_nodeDelCb  cb,
void *  cd 
)

Definition at line 253 of file AP_Tree.cxx.

References cb.

Referenced by AWT_graphic_tree::load_from_DB().

long AP_tree_root::remove_leafs ( AWT_RemoveType  awt_remove_type)
AP_tree_root::PREPARE_MARK_NONFINAL_CLASS ( AP_tree_root  )

Member Data Documentation

GBDATA* AP_tree_root::gb_tree_gone

Definition at line 92 of file AP_Tree.hxx.

Referenced by change_root(), AWT_graphic_tree::save_to_DB(), and saveToDB().

char* AP_tree_root::gone_tree_name
long AP_tree_root::tree_timer

Definition at line 95 of file AP_Tree.hxx.

Referenced by is_tree_updated(), and update_timers().

long AP_tree_root::species_timer

Definition at line 96 of file AP_Tree.hxx.

Referenced by is_species_updated(), and update_timers().

AP_rates* AP_tree_root::rates

Definition at line 98 of file AP_Tree.hxx.


The documentation for this class was generated from the following files: