コード例 #1
0
def has_public_destructor(type):
    """returns True, if class has public destructor, False otherwise"""
    assert isinstance(type, class_declaration.class_t)
    return bool(
        algorithm.find_declaration(type.public_members,
                                   type=calldef.destructor_t,
                                   recursive=False))
コード例 #2
0
 def __find_class_by_class_declaration( self, class_decl ):
     found = algorithm.find_declaration( class_decl.parent.declarations
                                         , name=class_decl.name
                                         , type=class_declaration.class_t )
     return found
コード例 #3
0
ファイル: type_traits.py プロジェクト: alekob/tce
def has_public_destructor(type):
    """returns True, if class has public destructor, False otherwise"""
    assert isinstance( type, class_declaration.class_t )
    return bool( algorithm.find_declaration( type.public_members
                                             , type=calldef.destructor_t
                                             , recursive=False ) )
コード例 #4
0
ファイル: type_traits.py プロジェクト: Noitidart/osxtypes
 def __find_class_by_class_declaration( self, class_decl ):
     found = algorithm.find_declaration( class_decl.parent.declarations
                                         , name=class_decl.name
                                         , type=class_declaration.class_t )
     return found