Package pygccxml :: Package declarations :: Module matchers :: Class or_matcher_t

type or_matcher_t

source code

    object --+    
             |    
matcher_base_t --+
                 |
                or_matcher_t

Combine several other matchers with "|".

For example: find all functions and variables with name 'XXX'

matcher = variable_matcher_t( name='XXX' ) | calldef_matcher_t( name='XXX' )

Instance Methods
 
__init__(self, matchers) source code
 
__call__(self, decl) source code
 
__str__(self) source code

Inherited from matcher_base_t: __and__, __invert__, __or__

Method Details

__init__(self, matchers)
(Constructor)

source code 
Overrides: matcher_base_t.__init__

__call__(self, decl)
(Call operator)

source code 
Overrides: matcher_base_t.__call__

__str__(self)
(Informal representation operator)

source code 
Overrides: matcher_base_t.__str__