Package pygccxml :: Package declarations :: Module calldef :: Class constructor_t |

# type constructor_t

source code

                   object --+
                            |
    declaration.declaration_t --+
                                |
                        calldef_t --+
                                    |
                     member_calldef_t --+
                                        |
                                       constructor_t

Known Subclasses:
  - pyplusplus.decl_wrappers.calldef_wrapper.constructor_t

describes constructor declaration

Instance Methods
__init__(self, *args, **keywords) | source code
__str__(self) Default __str__ method. | source code
Inherited from `member_calldef_t`: `__eq__`, `create_decl_string`, `function_type`, `get_virtuality`, `set_virtuality` Inherited from `calldef_t`: `i_depend_on_them` Inherited from `declaration.declaration_t`: `__lt__`, `__ne__`

Properties
| is_copy_constructor returns True if described declaration is copy constructor, otherwise False
| is_trivial_constructor
Inherited from `member_calldef_t`: `access_type`, `has_const`, `has_static`, `virtuality` Inherited from `calldef_t`: `argument_types`, `arguments`, `demangled_name`, `does_throw`, `exceptions`, `has_ellipsis`, `has_extern`, `optional_args`, `overloads`, `required_args`, `return_type` Inherited from `declaration.declaration_t`: `attributes`, `cache`, `compiler`, `decl_string`, `demangled`, `is_artificial`, `location`, `mangled`, `name`, `parent`, `partial_decl_string`, `partial_name`, `top_parent`

Method Details

### __init__(self, *args, **keywords) (Constructor) | source code
Overrides: declaration.declaration_t.__init__

### __str__(self) (Informal representation operator) | source code
Default __str__ method. This version just returns the decl_string and the class. Derived classes may override this method to provide more detailed information. A __str__ method for a declaration should always provide enough information so that it uniquely identifies the declaration and the user is able to find the declaration in his source code. Overrides: declaration.declaration_t.__str__ (inherited documentation)

Property Details

### is_copy_constructor returns True if described declaration is copy constructor, otherwise False

### is_trivial_constructor