Public Member Functions | List of all members
AP_main Class Reference

#include <ap_main_type.hxx>

Inheritance diagram for AP_main:
Inheritance graph
Collaboration diagram for AP_main:
Collaboration graph

Public Member Functions

 AP_main ()
 ~AP_main ()
void set_tree_root (AWT_graphic_parsimony *agt_)
AWT_graphic_parsimonyget_graphic_tree ()
AP_pars_root * get_tree_root () const
 DEFINE_READ_ACCESSORS (AP_tree_nlen *, get_root_node, agt->get_root_node())
GBDATAget_gb_main () const
const charget_aliname () const
size_t get_user_push_counter () const
Level get_frameLevel () const
GB_ERROR open (const char *db_server)
bool push_node (AP_tree_nlen *node, AP_STACK_MODE)
void remember_user_state ()
void revert_user_state ()
void remember ()
void revert ()
void accept ()
void accept_all ()
void accept_if (bool cond)
void revert_if (bool cond)
bool remember_and_rollback_to (Level wanted_frameLevel)
bool remember_and_rollback_to_previous ()
Validity revert_will_produce_valid_tree ()
Validity all_available_reverts_will_produce_valid_trees ()
AP_tree_nlen * makeNode (AP_pars_root *proot)
AP_tree_edgemakeEdge (AP_tree_nlen *n1, AP_tree_nlen *n2)
void destroyNode (AP_tree_nlen *node)
void destroyEdge (AP_tree_edge *edge)

Detailed Description

Definition at line 31 of file ap_main_type.hxx.

Constructor & Destructor Documentation

AP_main::AP_main ( )

Definition at line 44 of file ap_main_type.hxx.

AP_main::~AP_main ( )

Definition at line 51 of file ap_main_type.hxx.

References ap_assert, and GB_close().

Member Function Documentation

void AP_main::set_tree_root ( AWT_graphic_parsimony agt_)

Definition at line 299 of file AP_main.cxx.

References ap_assert.

Referenced by ArbParsimony::set_tree().

AWT_graphic_parsimony* AP_main::get_graphic_tree ( )

Definition at line 58 of file ap_main_type.hxx.

Referenced by delete_kept_ghostnodes(), and PARS_tree_init().

AP_pars_root* AP_main::get_tree_root ( ) const
AP_main::DEFINE_READ_ACCESSORS ( AP_tree_nlen *  ,
get_root_node  ,
agt->  get_root_node() 
GBDATA* AP_main::get_gb_main ( ) const
const char * AP_main::get_aliname ( ) const

Definition at line 304 of file AP_main.cxx.

Referenced by nt_add_partial(), and PARS_tree_init().

size_t AP_main::get_user_push_counter ( ) const
Level AP_main::get_frameLevel ( ) const
GB_ERROR AP_main::open ( const char db_server)

Definition at line 20 of file AP_main.cxx.

References error(), GB_await_error(), gb_main, GB_open(), and NULp.

Referenced by ARB_main().

bool AP_main::push_node ( AP_tree_nlen *  node,

stores node in currFrame (if exists) if (mode&SEQUENCE) => sequence gets invalidated

true, if a new entry has been created. false, if existing entry was extended or no stack exists.

Definition at line 252 of file AP_main.cxx.

References ap_assert, BOTH, GBK_terminate(), ROOT, and SEQUENCE.

Referenced by AP_tree_edge::nni_rec(), push_all_upnode_sequences(), and undefine_branchlengths().

void AP_main::remember_user_state ( )

Definition at line 27 of file AP_main.cxx.

Referenced by AP_user_push_cb().

void AP_main::revert_user_state ( )

Definition at line 32 of file AP_main.cxx.

References aw_message(), and UserFrame::get_level().

Referenced by AP_user_pop_cb().

void AP_main::remember ( )
void AP_main::revert ( )
void AP_main::accept ( )
void AP_main::accept_all ( )

Definition at line 82 of file ap_main_type.hxx.

References accept().

Referenced by pars_exit().

void AP_main::accept_if ( bool  cond)
void AP_main::revert_if ( bool  cond)

Definition at line 89 of file ap_main_type.hxx.

References accept_if().

bool AP_main::remember_and_rollback_to ( Level  wanted_frameLevel)
bool AP_main::remember_and_rollback_to_previous ( )

tree is modified into the same (or equiv) state as it would be done by calling pop(), but the current state is pushed onto the stack. Calling pop() afterwards will undo this operation.

Definition at line 100 of file ap_main_type.hxx.

References remember_and_rollback_to().

Referenced by revert_will_produce_valid_tree().

Validity AP_main::revert_will_produce_valid_tree ( )
Validity AP_main::all_available_reverts_will_produce_valid_trees ( )
AP_tree_nlen * AP_main::makeNode ( AP_pars_root *  proot)

Definition at line 84 of file ap_main.hxx.

References StackFrameData::makeNode().

AP_tree_edge * AP_main::makeEdge ( AP_tree_nlen *  n1,
AP_tree_nlen *  n2 

Definition at line 87 of file ap_main.hxx.

References StackFrameData::makeEdge().

Referenced by makeEdge().

void AP_main::destroyNode ( AP_tree_nlen *  node)

Definition at line 90 of file ap_main.hxx.

References ap_assert, and StackFrameData::destroyNode().

void AP_main::destroyEdge ( AP_tree_edge edge)

Definition at line 100 of file ap_main.hxx.

References ap_assert, and StackFrameData::destroyEdge().

Referenced by destroyEdge().

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