[ create a new paste ] login | about

Link: http://codepad.org/Jfme3U6U    [ raw code | fork ]

Python, pasted on Dec 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python

import boost_python_and_ref_ptr as bprp

class DerivedNode( bprp.Node ):
    def __init__( self ):
        super( DerivedNode, self ).__init__()

    def apply( self, vb ):
        print " ( python ) Hi my name is", vb.name

node = DerivedNode()

visitorBase = bprp.VisitorBase()
derivedVisitor = bprp.DerivedVisitor()

bprp.check_their_identification( node, visitorBase )
bprp.check_their_identification( node, derivedVisitor )


Create a new paste based on this one


Comments: