namespace modules::utils
[No description available]
Functions
Name | |
---|---|
def | isComplete(class_el class_el) |
def | isLoadable(class_el class_el, print_warning print_warning =False, check_pure_virtual_members check_pure_virtual_members =True) |
def | isFundamental(el el) |
def | isKnownClass(el el, class_name class_name =None) |
def | isTemplateClass(class_el class_el) |
def | isTemplateFunction(func_el func_el) |
def | isEnumeration(el el) |
def | isNative(el el) |
def | isStdType(el el, class_name class_name =None) |
def | isConstFunction(func_el func_el) |
def | getTemplateBracket(el el) |
def | getSpecTemplateTypes(input_type input_type, byname byname =False) |
def | unpackAllSpecTemplateTypes(input_bracket input_bracket, result_list result_list) |
def | getAllTemplateTypes(type_name type_name) |
def | getBasicTypeName(type_name type_name) |
def | removeComments(content content, insert_blanks insert_blanks =False) |
def | findType(el_input el_input) |
def | findNewLinePos(content content, line_number line_number) |
def | getBracketPositions(content content, delims delims =[’{’,’}’]) |
def | addIndentation(content content, indent indent) |
def | getNamespaces(xml_el xml_el, include_self include_self =False, xml_file_name xml_file_name =’') |
def | removeTemplateBracket(type_name type_name, return_bracket return_bracket =False) |
def | removeNamespace(type_name type_name, return_namespace return_namespace =False) |
def | removeArgumentBracket(func_signature func_signature, return_args_bracket return_args_bracket =False) |
def | isAcceptedType(input_el input_el) |
def | isLoadedClass(input_type input_type, byname byname =False, class_name class_name =None) |
def | isParentOfLoadedType(input_el input_el) |
def | constrAbsForwardDeclHeader(file_output_path file_output_path) |
def | constrWrpForwardDeclHeader(file_output_path file_output_path) |
def | getParentClasses(class_el class_el, only_native_classes only_native_classes =False, only_loaded_classes only_loaded_classes =False) |
def | getAllParentClasses(class_el class_el, only_native_classes only_native_classes =True, only_loaded_classes only_loaded_classes =False, return_dicts return_dicts =False, reverse_order reverse_order =False) |
def | getAllTypesInClass(class_el class_el, include_parents include_parents =False) |
def | getMemberElements(el el, include_artificial include_artificial =False) |
def | getMemberFunctions(class_el class_el, include_artificial include_artificial =False, include_inherited include_inherited =False, only_accepted only_accepted =True, limit_pointerness limit_pointerness =True, include_operators include_operators =False) |
def | getAllTypesInFunction(func_el func_el) |
def | constrNamespace(namespaces namespaces, open_or_close open_or_close, indent indent =cfg.indent) |
def | pointerAndRefCheck(input_type input_type, byname byname =False) |
def | addIncludeGuard(code code, file_name file_name, prefix prefix =’’, suffix suffix =’’, uppercase uppercase =False) |
def | identifyIncludedHeaders(content content, only_native only_native =True) |
def | isHeader(file_el file_el) |
def | getIncludeStatements(input_el input_el, convert_loaded_to convert_loaded_to =‘none’, exclude_types exclude_types =[], input_element input_element =‘class’, forward_declared forward_declared =‘exclude’, use_full_path use_full_path =False, include_parents include_parents =False) |
def | getOriginalHeaderPath(el el, full_path full_path =False) |
def | shortenHeaderPath(full_path full_path) |
def | constrNamespaceFromTags(content content, new_namespace new_namespace, open_tag open_tag, close_tag close_tag) |
def | replaceCodeTags(input input, file_input file_input =False, write_file write_file =False) |
def | removeCodeTags(content content, remove_tags_list remove_tags_list) |
def | constrLoadedTypesHeaderContent() |
def | constrEnumDeclHeader(enum_el_list enum_el_list, file_output_path file_output_path) |
def | castxmlRunner(input_file_path input_file_path, include_paths_list include_paths_list, xml_output_path xml_output_path, use_castxml_path use_castxml_path =None) |
def | pathSplitAll(path path) |
def | fillAcceptedTypesList() |
def | isProblematicType(el el) |
def | addParentClasses() |
def | fillParentsOfLoadedClassesList() |
def | xmlFilesToDicts(xml_files xml_files) |
def | clearGlobalXMLdicts() |
def | initGlobalXMLdicts(xml_path xml_path, id_and_name_only id_and_name_only =False) |
def | identifyStdIncludePaths() |
def | isInList(search_entry search_entry, search_list search_list, return_index return_index =True, ignore_whitespace ignore_whitespace =True) |
def | modifyText(msg msg, mod mod) |
def | orderIncludeStatements(include_statements include_statements) |
def | removeComments(code_lines code_lines) |
def | removeBlankLines(code_lines code_lines) |
def | removeLeadingTrailingBlanks(code_lines code_lines) |
def | removeStatementLabels(code_lines code_lines) |
def | removeKeywords(code_lines code_lines) |
def | allSingleSpace(code_lines code_lines) |
def | joinContinuedLines(code_lines code_lines) |
def | getCodeParts(code_lines code_lines, prepend_module_name prepend_module_name =False) |
def | getCodePartName(code_line code_line, keyword keyword) |
def | getImplicitDefs(code_lines code_lines) |
def | getParameterDefs(code_lines code_lines) |
def | getCommonBlockDicts(code_lines code_lines) |
def | isVariableDecl(line_in line_in, return_type return_type =False) |
def | isDimensionStatement(line_in line_in) |
def | getArrayIndicesTuples(dimensions_str dimensions_str, parameter_defs parameter_defs) |
def | getVariablesDict(code_lines code_lines, get_variables get_variables) |
def | parseVariableSequence(var_seq_str var_seq_str) |
def | getFunctionArgumentNames(code_line code_line) |
def | getFunctionReturnType(code_lines code_lines) |
def | generateTypeDeclCommonBlock(cb_dict cb_dict, var_info_dict var_info_dict, parameter_defs parameter_defs) |
def | generateFrontendCommonBlock(cb_dict cb_dict) |
def | generateFrontendFunction(f_dict f_dict, parameter_defs parameter_defs) |
def | getMangledSymbolName(identifier identifier, module module =’’) |
def | getCTypeName(var_dict var_dict, parameter_defs parameter_defs) |
def | addNamespace(code code, namespace_name namespace_name, indent indent =4) |
Attributes
Name | |
---|---|
cfg |
Functions Documentation
function isComplete
def isComplete(
class_el class_el
)
function isLoadable
def isLoadable(
class_el class_el,
print_warning print_warning =False,
check_pure_virtual_members check_pure_virtual_members =True
)
function isFundamental
def isFundamental(
el el
)
function isKnownClass
def isKnownClass(
el el,
class_name class_name =None
)
function isTemplateClass
def isTemplateClass(
class_el class_el
)
function isTemplateFunction
def isTemplateFunction(
func_el func_el
)
function isEnumeration
def isEnumeration(
el el
)
function isNative
def isNative(
el el
)
function isStdType
def isStdType(
el el,
class_name class_name =None
)
function isConstFunction
def isConstFunction(
func_el func_el
)
function getTemplateBracket
def getTemplateBracket(
el el
)
function getSpecTemplateTypes
def getSpecTemplateTypes(
input_type input_type,
byname byname =False
)
function unpackAllSpecTemplateTypes
def unpackAllSpecTemplateTypes(
input_bracket input_bracket,
result_list result_list
)
function getAllTemplateTypes
def getAllTemplateTypes(
type_name type_name
)
function getBasicTypeName
def getBasicTypeName(
type_name type_name
)
function removeComments
def removeComments(
content content,
insert_blanks insert_blanks =False
)
function findType
def findType(
el_input el_input
)
function findNewLinePos
def findNewLinePos(
content content,
line_number line_number
)
function getBracketPositions
def getBracketPositions(
content content,
delims delims =['{','}']
)
function addIndentation
def addIndentation(
content content,
indent indent
)
function getNamespaces
def getNamespaces(
xml_el xml_el,
include_self include_self =False,
xml_file_name xml_file_name =''
)
function removeTemplateBracket
def removeTemplateBracket(
type_name type_name,
return_bracket return_bracket =False
)
function removeNamespace
def removeNamespace(
type_name type_name,
return_namespace return_namespace =False
)
function removeArgumentBracket
def removeArgumentBracket(
func_signature func_signature,
return_args_bracket return_args_bracket =False
)
function isAcceptedType
def isAcceptedType(
input_el input_el
)
function isLoadedClass
def isLoadedClass(
input_type input_type,
byname byname =False,
class_name class_name =None
)
function isParentOfLoadedType
def isParentOfLoadedType(
input_el input_el
)
function constrAbsForwardDeclHeader
def constrAbsForwardDeclHeader(
file_output_path file_output_path
)
function constrWrpForwardDeclHeader
def constrWrpForwardDeclHeader(
file_output_path file_output_path
)
function getParentClasses
def getParentClasses(
class_el class_el,
only_native_classes only_native_classes =False,
only_loaded_classes only_loaded_classes =False
)
function getAllParentClasses
def getAllParentClasses(
class_el class_el,
only_native_classes only_native_classes =True,
only_loaded_classes only_loaded_classes =False,
return_dicts return_dicts =False,
reverse_order reverse_order =False
)
function getAllTypesInClass
def getAllTypesInClass(
class_el class_el,
include_parents include_parents =False
)
function getMemberElements
def getMemberElements(
el el,
include_artificial include_artificial =False
)
function getMemberFunctions
def getMemberFunctions(
class_el class_el,
include_artificial include_artificial =False,
include_inherited include_inherited =False,
only_accepted only_accepted =True,
limit_pointerness limit_pointerness =True,
include_operators include_operators =False
)
function getAllTypesInFunction
def getAllTypesInFunction(
func_el func_el
)
function constrNamespace
def constrNamespace(
namespaces namespaces,
open_or_close open_or_close,
indent indent =cfg.indent
)
function pointerAndRefCheck
def pointerAndRefCheck(
input_type input_type,
byname byname =False
)
function addIncludeGuard
def addIncludeGuard(
code code,
file_name file_name,
prefix prefix ='',
suffix suffix ='',
uppercase uppercase =False
)
function identifyIncludedHeaders
def identifyIncludedHeaders(
content content,
only_native only_native =True
)
function isHeader
def isHeader(
file_el file_el
)
function getIncludeStatements
def getIncludeStatements(
input_el input_el,
convert_loaded_to convert_loaded_to ='none',
exclude_types exclude_types =[],
input_element input_element ='class',
forward_declared forward_declared ='exclude',
use_full_path use_full_path =False,
include_parents include_parents =False
)
function getOriginalHeaderPath
def getOriginalHeaderPath(
el el,
full_path full_path =False
)
function shortenHeaderPath
def shortenHeaderPath(
full_path full_path
)
function constrNamespaceFromTags
def constrNamespaceFromTags(
content content,
new_namespace new_namespace,
open_tag open_tag,
close_tag close_tag
)
function replaceCodeTags
def replaceCodeTags(
input input,
file_input file_input =False,
write_file write_file =False
)
function removeCodeTags
def removeCodeTags(
content content,
remove_tags_list remove_tags_list
)
function constrLoadedTypesHeaderContent
def constrLoadedTypesHeaderContent()
function constrEnumDeclHeader
def constrEnumDeclHeader(
enum_el_list enum_el_list,
file_output_path file_output_path
)
function castxmlRunner
def castxmlRunner(
input_file_path input_file_path,
include_paths_list include_paths_list,
xml_output_path xml_output_path,
use_castxml_path use_castxml_path =None
)
function pathSplitAll
def pathSplitAll(
path path
)
function fillAcceptedTypesList
def fillAcceptedTypesList()
function isProblematicType
def isProblematicType(
el el
)
function addParentClasses
def addParentClasses()
function fillParentsOfLoadedClassesList
def fillParentsOfLoadedClassesList()
function xmlFilesToDicts
def xmlFilesToDicts(
xml_files xml_files
)
function clearGlobalXMLdicts
def clearGlobalXMLdicts()
function initGlobalXMLdicts
def initGlobalXMLdicts(
xml_path xml_path,
id_and_name_only id_and_name_only =False
)
function identifyStdIncludePaths
def identifyStdIncludePaths()
function isInList
def isInList(
search_entry search_entry,
search_list search_list,
return_index return_index =True,
ignore_whitespace ignore_whitespace =True
)
function modifyText
def modifyText(
msg msg,
mod mod
)
function orderIncludeStatements
def orderIncludeStatements(
include_statements include_statements
)
function removeComments
def removeComments(
code_lines code_lines
)
function removeBlankLines
def removeBlankLines(
code_lines code_lines
)
function removeLeadingTrailingBlanks
def removeLeadingTrailingBlanks(
code_lines code_lines
)
function removeStatementLabels
def removeStatementLabels(
code_lines code_lines
)
function removeKeywords
def removeKeywords(
code_lines code_lines
)
function allSingleSpace
def allSingleSpace(
code_lines code_lines
)
function joinContinuedLines
def joinContinuedLines(
code_lines code_lines
)
function getCodeParts
def getCodeParts(
code_lines code_lines,
prepend_module_name prepend_module_name =False
)
function getCodePartName
def getCodePartName(
code_line code_line,
keyword keyword
)
function getImplicitDefs
def getImplicitDefs(
code_lines code_lines
)
function getParameterDefs
def getParameterDefs(
code_lines code_lines
)
function getCommonBlockDicts
def getCommonBlockDicts(
code_lines code_lines
)
function isVariableDecl
def isVariableDecl(
line_in line_in,
return_type return_type =False
)
function isDimensionStatement
def isDimensionStatement(
line_in line_in
)
function getArrayIndicesTuples
def getArrayIndicesTuples(
dimensions_str dimensions_str,
parameter_defs parameter_defs
)
function getVariablesDict
def getVariablesDict(
code_lines code_lines,
get_variables get_variables
)
function parseVariableSequence
def parseVariableSequence(
var_seq_str var_seq_str
)
function getFunctionArgumentNames
def getFunctionArgumentNames(
code_line code_line
)
function getFunctionReturnType
def getFunctionReturnType(
code_lines code_lines
)
function generateTypeDeclCommonBlock
def generateTypeDeclCommonBlock(
cb_dict cb_dict,
var_info_dict var_info_dict,
parameter_defs parameter_defs
)
function generateFrontendCommonBlock
def generateFrontendCommonBlock(
cb_dict cb_dict
)
function generateFrontendFunction
def generateFrontendFunction(
f_dict f_dict,
parameter_defs parameter_defs
)
function getMangledSymbolName
def getMangledSymbolName(
identifier identifier,
module module =''
)
function getCTypeName
def getCTypeName(
var_dict var_dict,
parameter_defs parameter_defs
)
function addNamespace
def addNamespace(
code code,
namespace_name namespace_name,
indent indent =4
)
Attributes Documentation
variable cfg
cfg = importlib.import_module("configs." + modules.active_cfg.module_name);
Updated on 2022-08-03 at 12:58:17 +0000