Package pyplusplus :: Package decl_wrappers :: Module calldef_wrapper :: Class casting_operator_t

# type casting_operator_t

source code

                                         object --+
                                                  |
    pygccxml.declarations.declaration.declaration_t --+
                                                      |
                pygccxml.declarations.calldef.calldef_t --+
                                                          |
             pygccxml.declarations.calldef.member_calldef_t --+
                                                              |
                                                 object --+   |
                                                          |   |
                   pygccxml.declarations.calldef.operator_t --+
                                                              |
               pygccxml.declarations.calldef.casting_operator_t --+
                                                                  |
                                                 object --+       |
                                                          |       |
                                decl_wrapper.decl_wrapper_t --+   |
                                                              |   |
                                                      calldef_t --+
                                                                  |
                                                                 casting_operator_t

defines a set of properties, that will instruct Py++ how to expose the casting operator

Instance Methods

prepare_special_cases() Creates a map of special cases ( aliases ) for casting operator. | source code

__init__(self, *arguments, **keywords) | source code

Inherited from `pygccxml.declarations.calldef.member_calldef_t`: `__eq__`, `__str__`, `create_decl_string`, `function_type`, `get_virtuality`, `set_virtuality`

Inherited from `pygccxml.declarations.calldef.calldef_t`: `i_depend_on_them`

Inherited from `pygccxml.declarations.declaration.declaration_t`: `__lt__`, `__ne__`

Inherited from `calldef_t`: `add_transformation`, `get_call_policies`, `get_overridable`, `has_wrapper`, `mark_as_non_overridable`, `set_call_policies`, `set_overridable`

Inherited from `decl_wrapper.decl_wrapper_t`: `disable_messages`, `disable_warnings`, `exclude`, `get_already_exposed`, `get_exportable`, `include`, `readme`, `rename`, `set_already_exposed`, `set_exportable`, `why_not_exportable`

Class Variables
| SPECIAL_CASES = `prepare_special_cases()`
Inherited from `pygccxml.declarations.calldef.operator_t`: `OPERATOR_WORD_LEN` Inherited from `calldef_t`: `BOOST_PYTHON_MAX_ARITY` Inherited from `decl_wrapper.decl_wrapper_t`: `SPECIAL_TYPEDEF_PICK_ANY`

Properties
| alias Gives right alias for casting operators: __int__, __long__, __str__.If there is no built-in type, creates as_xxx alias

Inherited from `pygccxml.declarations.calldef.member_calldef_t`: `access_type`, `has_const`, `has_static`, `virtuality`

Inherited from `pygccxml.declarations.calldef.calldef_t`: `argument_types`, `arguments`, `demangled_name`, `does_throw`, `exceptions`, `has_ellipsis`, `has_extern`, `optional_args`, `overloads`, `required_args`, `return_type`

Inherited from `pygccxml.declarations.declaration.declaration_t`: `attributes`, `cache`, `compiler`, `decl_string`, `demangled`, `is_artificial`, `location`, `mangled`, `name`, `parent`, `partial_decl_string`, `partial_name`, `top_parent`

Inherited from `pygccxml.declarations.calldef.operator_t`: `symbol`

Inherited from `calldef_t`: `call_policies`, `create_with_signature`, `non_overridable_reason`, `overridable`, `transformations`, `use_default_arguments`, `use_keywords`

Inherited from `decl_wrapper.decl_wrapper_t`: `already_exposed`, `disabled_messages`, `documentation`, `exportable`, `ignore`, `include_files`, `logger`

Method Details

### __init__(self, *arguments, **keywords)
(Constructor)

source code

Overrides: decl_wrapper.decl_wrapper_t.__init__

Property Details

### alias

Gives right alias for casting operators: __int__, __long__, __str__.If there is no built-in type, creates as_xxx alias

Get Method:
  _get_alias(self)