Annotation of parser3/src/types/pa_vjunction.C, revision 1.6

1.1       paf         1: /**    @file
1.4       misha       2:        Parser: @b junction class decl.
1.1       paf         3: 
1.5       misha       4:        Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com)
1.1       paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
                      6: */
                      7: 
1.6     ! misha       8: static const char * const IDENT_VJUNCTION_C="$Date: 2009-04-16 01:08:27 $";
1.4       misha       9: 
                     10: // include
1.2       paf        11: 
1.1       paf        12: #include "pa_vjunction.h"
1.4       misha      13: #include "pa_vbool.h"
1.6     ! misha      14: #include "pa_wcontext.h"
        !            15: 
        !            16: void VJunction::reattach(WContext *new_wcontext){
        !            17: 
        !            18: #ifdef USE_DESTRUCTORS
        !            19:        if (fjunction.wcontext)
        !            20: #endif
        !            21:        if(new_wcontext) {
        !            22:                assert(fjunction.wcontext!=new_wcontext);
        !            23:                fjunction.wcontext=new_wcontext;
        !            24:                fjunction.wcontext->attach_junction(this);
        !            25:                return;
        !            26:        }
        !            27: 
        !            28: #ifdef USE_DESTRUCTORS
        !            29:        if (fjunction.is_temporal) delete this;
        !            30: #endif
        !            31: 
        !            32: }
        !            33: 
1.1       paf        34: 
1.4       misha      35: override Value& VJunction::as_expr_result(bool) {
1.5       misha      36:        return VBool::get(as_bool());
1.1       paf        37: }

E-mail: