|
|
__init__(self,
*arguments,
**keywords)
creates class that describes C++ class definition |
source code
|
|
|
|
|
|
|
add_destructor_code(self,
code)
adds code to the class-wrapper destructor |
source code
|
|
|
|
|
|
|
add_declaration_code(self,
code)
adds the code to the declaration section |
source code
|
|
|
|
|
|
|
add_code(self,
code,
works_on_instance=True,
tail=True)
adds the code to the class registration section |
source code
|
|
|
|
add_wrapper_code(self,
code)
adds code to the class wrapper class definition |
source code
|
|
|
|
set_constructors_body(self,
body)
Sets the body for all constructors |
source code
|
|
|
|
get_exportable_members(self,
sort=None)
returns list of internal declarations that should\could be exported |
source code
|
|
|
|
|
|
|
| add_properties(self,
recognizer=None,
exclude_accessors=False) |
source code
|
|
|
|
add_static_property(self,
name,
fget,
fset=None,
doc='')
adds new static property to the class |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from scopedef_wrapper.scopedef_t:
exclude,
include
Inherited from decl_wrapper.decl_wrapper_t:
disable_messages,
disable_warnings,
get_already_exposed,
get_exportable,
readme,
rename,
set_already_exposed,
set_exportable,
why_not_exportable
Inherited from pygccxml.declarations.class_declaration.class_t:
__eq__,
__str__,
adopt_declaration,
find_copy_constructor,
find_noncopyable_vars,
find_out_member_access_type,
find_trivial_constructor,
get_members,
i_depend_on_them,
remove_declaration
Inherited from pygccxml.declarations.scopedef.scopedef_t:
__getitem__,
calldef,
calldefs,
casting_operator,
casting_operators,
class_,
classes,
clear_optimizer,
constructor,
constructors,
decl,
decls,
enum,
enumeration,
enumerations,
enums,
init_optimizer,
mem_fun,
mem_funs,
mem_oper,
mem_opers,
member_function,
member_functions,
member_operator,
member_operators,
operator,
operators,
typedef,
typedefs,
var,
variable,
variables,
vars
Inherited from pygccxml.declarations.declaration.declaration_t:
__lt__,
__ne__,
create_decl_string
|
|
|
fake_constructors
list of fake constructors
|
|
|
redefine_operators
tells Py++ to redefine operators from base class in this class, False
by default
|
|
|
exposed_class_type
set this value to CLASS_TYPE.WRAPPER, if you need to transfer
ownership ofpolymorphic class
|
|
|
held_type
string, this property tells Py++ what HeldType this class hasDefault
value is calculated, based on information presented in exposed
declarations
|
|
|
noncopyable
True if the class is noncopyable, False otherwiesDefault value is
calculated, based on information presented in the declarations tree
|
|
|
wrapper_alias
class-wrapper name
|
|
|
declaration_code
List of strings, that contains valid C++ code, that will be added to
the class declaration section
|
|
|
registration_code_head
List of strings, that contains valid C++ code, that will be added to
the head of the class registration section
|
|
|
registration_code_tail
List of strings, that contains valid C++ code, that will be added to
the tail of the class registration section
|
|
|
registration_code
List of strings, that contains all C++ code, that will be added to
the class registration section
|
|
|
wrapper_code
List of strings, that contains valid C++ code, that will be added to
the class wrapper.
|
|
|
null_constructor_body
null constructor code, that will be added as is to the null
constructor of class-wrapper
|
|
|
copy_constructor_body
copy constructor code, that will be added as is to the copy
constructor of class-wrapper
|
|
|
destructor_code
list of code to be added to wrapper destructor
|
|
|
exception_argument_name
exception argument name for translate exception function
|
|
|
exception_translation_code
C++ exception to Python exception translation code Example:
PyErr_SetString(PyExc_RuntimeError, exc.what()); Py++ will generate
the rest of the code.
|
|
|
properties
list of properties
|
|
|
require_self_reference
boolean, if True the first argument to the constructor will be
reference to self object
|
|
|
expose_this
boolean, if True an object address( this pointer ) will be exposed to
Python as integer.
|
|
|
expose_sizeof
boolean, if True the sizeof(obj) will be exposed to Python as
integer.
|
|
|
introduces_new_scope
returns True, if during exposing this class, new scope will be
created
|
|
|
no_init
If True, class will be registered with 'boost::python::no_init'
|
|
Inherited from class_common_details_t:
always_expose_using_scope,
class_var_name,
equality_comparable,
indexing_suite,
indexing_suite_version,
less_than_comparable,
opaque
Inherited from decl_wrapper.decl_wrapper_t:
alias,
already_exposed,
disabled_messages,
documentation,
exportable,
ignore,
include_files,
logger
Inherited from pygccxml.declarations.class_declaration.class_t:
aliases,
bases,
byte_align,
byte_size,
class_type,
container_traits,
derived,
is_abstract,
private_members,
protected_members,
public_members,
recursive_bases,
recursive_derived
Inherited from pygccxml.declarations.scopedef.scopedef_t:
declarations
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
|