Package pygccxml :: Package declarations :: Module mdecl_wrapper :: Class mdecl_wrapper_t

Class mdecl_wrapper_t

source code

object --+
         |
        mdecl_wrapper_t

Multiple declarations wrapper.

The main purpose of this class is to allow an user to work on many declarations, as they were only one single declaration.

Example: mb = module_builder_t( ... ) #lets say we want to exclude all member functions, that returns reference to int: mb.member_functions( return_type='int &' ).exclude()

"exclude" function will be called on every function that match the criteria.

Instance Methods
 
__init__(self, decls)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__nonzero__(self) source code
 
__len__(self)
returns the number of declarations
source code
 
__getitem__(self, index)
provides access to declaration
source code
 
__iter__(self) source code
 
__setattr__(self, name, value)
Updates the value of attribute on all declarations.
source code
 
__getattr__(self, name) source code
 
__contains__(self, item) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, decls)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • decls (list of declaration wrappers) - list of declarations to operate on.
Overrides: object.__init__

__setattr__(self, name, value)

source code 

Updates the value of attribute on all declarations.

Parameters:
  • name - name of attribute
  • value - new value of attribute
Overrides: object.__setattr__

__getattr__(self, name)
(Qualification operator)

source code 
Parameters:
  • name - name of method