Package pygccxml :: Package declarations :: Module calldef :: Class member_calldef_t

type member_calldef_t

source code

               object --+        
                        |        
declaration.declaration_t --+    
                            |    
                    calldef_t --+
                                |
                               member_calldef_t
Known Subclasses:

base class for "callable" declarations that defined within C++ class or struct

Instance Methods
 
__init__(self, virtuality=None, has_const=None, has_static=None, *args, **keywords) source code
 
__str__(self)
Default __str__ method.
source code
 
__eq__(self, other)
function will return true, if both declarations refers to the same object.
source code
 
get_virtuality(self) source code
 
set_virtuality(self, virtuality) source code
 
function_type(self)
returns function type.
source code
 
create_decl_string(self, with_defaults=True) source code

Inherited from calldef_t: i_depend_on_them

Inherited from declaration.declaration_t: __lt__, __ne__

Properties
str virtuality
Describes the "virtuality" of the member (as defined by the string constants in the class VIRTUALITY_TYPES).
str access_type
Return the access type of the member (as defined by the string constants in the class ACCESS_TYPES.
  has_const
describes, whether "callable" has const modifier or not
  has_static
describes, whether "callable" has static modifier or not

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, virtuality=None, has_const=None, has_static=None, *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)

__eq__(self, other)
(Equality operator)

source code 

function will return true, if both declarations refers to the same object. This function could be implemented in terms of _get__cmp__data, but in this case it will downgrade performance. self.mangled property is not compared, because it could be chaned from one compilation time to an other.

Overrides: declaration.declaration_t.__eq__
(inherited documentation)

function_type(self)

source code 

returns function type. See type_t hierarchy

create_decl_string(self, with_defaults=True)

source code 
Overrides: declaration.declaration_t.create_decl_string

Property Details

virtuality

Describes the "virtuality" of the member (as defined by the string constants in the class VIRTUALITY_TYPES).

Get Method:
get_virtuality(self)
Set Method:
set_virtuality(self, virtuality)
Type:
str

access_type

Return the access type of the member (as defined by the string constants in the class ACCESS_TYPES.

Get Method:
_get_access_type(self)
Type:
str

has_const

describes, whether "callable" has const modifier or not

Get Method:
_get_has_const(self)
Set Method:
_set_has_const(self, has_const)

has_static

describes, whether "callable" has static modifier or not

Get Method:
_get_has_static(self)
Set Method:
_set_has_static(self, has_static)