type code_creator_t
source code
object --+
         |
        code_creator_t
- Known Subclasses:
- 
      
- registration_based.registration_based_t
- , instruction.instruction_t
- , license.license_t
- , compound.compound_t
- , exception_translator.exception_translator_t
- , calldef.calldef_wrapper_t
- , opaque_type_registrator.opaque_type_registrator_t
- , member_variable.array_mv_wrapper_t
- , member_variable.bit_field_wrapper_t
- , member_variable.mem_var_ref_wrapper_t
- , member_variable.member_variable_wrapper_t
- , calldef.calldef_overloads_class_t
- , calldef.copy_constructor_wrapper_t
- , calldef.destructor_wrapper_t
- , calldef.null_constructor_wrapper_t
- , namespace.namespace_alias_t
- , namespace.namespace_using_t
- , custom.custom_t
- , indexing_suites.value_traits_t
- , include.include_t
- , global_variable.array_gv_wrapper_t
 
code_creator_t is the base class for all code creators.
  This class defines the interface that every code creator should 
  implement. Also it provides few convenience functions.
  The purpose of a code creator is the generation of a block of C++ 
  source code as it will appear in the final source code for the extension 
  module. The source code is obtained by calling the create() method. Derived classes must implement the _create_impl() method which is
  called by the create() method.
    |  |  | 
    | str | 
        
          | create(self) this function should be used in order to get code that should be 
      generated.
 | source code |  | 
    |  | 
        
          | get_system_headers(self,
        recursive=False,
        unique=False) | source code |  | 
    | str | 
        
          | beautify(self,
        code) function that returns code without leading and trailing whitespaces.
 | source code |  | 
    |  |  | 
    | str |  | 
    | str |  | 
    | bool | 
        
          | is_comment(line) function that returns true if content of the line is comment, 
      otherwise false.
 | source code |  | 
    |  | PYPLUSPLUS_NS_NAME = 'pyplusplus' | 
    |  | LINE_LENGTH = 80 | 
    |  | PARAM_SEPARATOR = ', ' | 
| Constructor. 
    Parameters:
        parent(code_creator_t) - Parent code creator.Overrides:
        object.__init__
     | 
 
| this function should be used in order to get code that should be 
  generated. 
    Returns: strReturns a text block of C++ source code. | 
 
| function that returns code without leading and trailing 
  whitespaces. 
    Parameters:
        code(str) - A code block with C++ source code.Returns: str | 
 
| function that implements code indent algorithm. 
    Parameters:
        code(str) - C++ code block.size(int) - The number of indentation levels that the code is shiftedReturns: strReturns indented source code | 
 
| function that implements code unindent algorithm. 
    Parameters:
        code(str) - C++ code block.Returns: str | 
 
| function that returns true if content of the line is comment, 
  otherwise false. 
    Parameters:
        line(str) - C++ source codeReturns: bool |