![]() |
Rosetta
3.6
|
Classes | |
class | Binder |
structure to hold include information and set of NamedDecl objects that was already queried More... | |
class | ClassBinder |
struct | Config |
class | Context |
Module - represent bindings of individual Python module. More... | |
class | EnumBinder |
class | FunctionBinder |
Typedefs | |
typedef std::shared_ptr< Binder > | BinderOP |
typedef std::vector< BinderOP > | Binders |
Functions | |
string | template_specialization (clang::CXXRecordDecl const *C) |
string | class_name (CXXRecordDecl const *C) |
string | class_qualified_name (CXXRecordDecl const *C) |
vector< QualType > | get_type_dependencies (CXXRecordDecl const *C) |
bool | is_inherited_from_enable_shared_from_this (CXXRecordDecl const *C) |
bool | is_field_assignable (FieldDecl const *f) |
generate list of class/enum names on which this CXXRecordDecl depend to get binded ommiting build-in types More... | |
bool | is_bindable (FieldDecl *f) |
check if generator can create binding More... | |
string | bind_data_member (FieldDecl const *d, string const &class_qualified_name) |
bool | is_bindable (clang::CXXRecordDecl const *C) |
check if generator can create binding More... | |
bool | is_binding_requested (clang::CXXRecordDecl const *C, Config const &config) |
check if user requested binding for the given declaration More... | |
bool | is_skipping_requested (clang::CXXRecordDecl const *C, Config const &config) |
check if user requested skipping for the given declaration More... | |
void | add_relevant_includes (clang::CXXRecordDecl const *C, vector< string > &includes, set< NamedDecl const * > &stack) |
std::string | class_name (clang::CXXRecordDecl const *C) |
std::string | class_qualified_name (clang::CXXRecordDecl const *C) |
std::vector< clang::QualType > | get_type_dependencies (clang::CXXRecordDecl const *C) |
std::vector< clang::NamedDecl const * > | get_decl_dependencies (clang::CXXRecordDecl const *C) |
void | add_relevant_includes (clang::CXXRecordDecl const *C, std::vector< std::string > &includes, std::set< clang::NamedDecl const * > &stack) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &os, Binder const &b) |
string | generate_include_directives (vector< string > &includes) |
string | file_name_prefix_for_binder (BinderOP &b) |
Generate file name where binding for given generator should be stored. More... | |
void | add_relevant_includes (clang::EnumDecl const *E, std::vector< std::string > &includes, std::set< clang::NamedDecl const * > &stack) |
extract include needed for this generator and add it to includes vector More... | |
std::string | bind_enum (std::string const &module, EnumDecl *E) |
std::string | bind_enum (std::string const &module, clang::EnumDecl *E) |
string | function_arguments (clang::FunctionDecl const *record) |
string | template_specialization (FunctionDecl const *F) |
string | function_pointer_type (FunctionDecl const *F) |
string | function_qualified_name (FunctionDecl const *F) |
vector< QualType > | get_type_dependencies (FunctionDecl const *F) |
bool | is_binding_requested (FunctionDecl const *F, Config const &config) |
check if user requested binding for the given declaration More... | |
bool | is_skipping_requested (FunctionDecl const *F, Config const &config) |
check if user requested skipping for the given declaration More... | |
string | bind_function (FunctionDecl *F, Context &context) |
void | add_relevant_includes (FunctionDecl const *F, std::vector< std::string > &includes, std::set< NamedDecl const * > &stack) |
extract include needed for this generator and add it to includes vector More... | |
bool | is_bindable (FunctionDecl const *F) |
check if generator can create binding More... | |
std::string | function_pointer_type (clang::FunctionDecl const *record) |
std::string | function_qualified_name (clang::FunctionDecl const *F) |
bool | is_binding_requested (clang::FunctionDecl const *F, Config const &config) |
check if user requested binding for the given declaration More... | |
bool | is_skipping_requested (clang::FunctionDecl const *F, Config const &config) |
check if user requested skipping for the given declaration More... | |
std::string | bind_function (clang::FunctionDecl *F, Context &) |
void | add_relevant_includes (clang::FunctionDecl const *F, std::vector< std::string > &includes, std::set< clang::NamedDecl const * > &stack) |
extract include needed for this generator and add it to includes vector More... | |
bool | is_bindable (clang::FunctionDecl const *F) |
check if generator can create binding More... | |
bool | is_binding_requested (clang::QualType const &qt, Config const &config) |
check if user requested binding for the given QualType More... | |
bool | is_skipping_requested (QualType const &qt, Config const &config) |
string | relevant_include (NamedDecl const *decl) |
void | add_relevant_include_for_decl (NamedDecl const *decl, vector< string > &includes) |
void | add_relevant_includes (QualType const &qt, std::vector< std::string > &includes, std::set< clang::NamedDecl const * > &stack) |
extract include needed for this generator and add it to includes vector More... | |
bool | is_bindable (QualType const &qt) |
void | request_bindings (clang::QualType const &qt, Context &context) |
extract type info from QualType if any and bind relative type More... | |
bool | is_python_builtin (NamedDecl const *C) |
check if given class/struct is builtin in Python and therefor should not be binded More... | |
bool | is_skipping_requested (clang::QualType const &qt, Config const &config) |
check if user requested skipping for the given QualType More... | |
std::string | relevant_include (clang::NamedDecl const *decl) |
void | add_relevant_include_for_decl (clang::NamedDecl const *decl, std::vector< std::string > &includes) |
void | add_relevant_includes (clang::QualType const &qt, std::vector< std::string > &includes, std::set< clang::NamedDecl const * > &stack) |
extract include needed for this generator and add it to includes vector More... | |
bool | is_bindable (clang::QualType const &qt) |
bool | is_python_builtin (clang::NamedDecl const *C) |
check if given class/struct is builtin in Python and therefor should not be binded More... | |
vector< string > | split (string const &buffer, string const &separator) |
Split string using given separator. More... | |
string | replace (string const &s, string const &from, string const &to) |
Replace all occurrences of string. More... | |
bool | begins_with (std::string const &source, std::string const &prefix) |
check if string begins with given prefix More... | |
string | indent (std::string const &code, std::string const &indentation) |
indent given code More... | |
void | update_source_file (std::string const &prefix, std::string const &file_name, std::string const &code) |
Try to read exisitng file and if content does not match to code - write a new version. Also create nested dirs starting from prefix if nessesary. More... | |
string | namespace_from_named_decl (NamedDecl const *decl) |
string | typename_from_type_decl (TypeDecl *decl) |
generate unique string representation of type represented by given declaration More... | |
string | base_namespace (string const &ns) |
Calculate base (upper) namespace for given one: core::pose::motif –> core::pose. More... | |
string | last_namespace (string const &ns) |
Calculate last namespace for given one: core::pose::motif –> motif. More... | |
void | fix_boolean_types (std::string &type) |
replace all _Bool types with bool More... | |
string | expresion_to_string (clang::Expr *e) |
Generate string representation of given expression. More... | |
string | template_argument_to_string (clang::TemplateArgument const &) |
Generate string representation of given TemplateArgument. More... | |
string | line_number (NamedDecl *decl) |
std::string | namespace_from_named_decl (clang::NamedDecl const *decl) |
calculate namespace path from given NamedDecl, like: std, core::pose More... | |
std::string | typename_from_type_decl (clang::TypeDecl *decl) |
std::string | line_number (clang::NamedDecl *decl) |
calcualte line in source file for NamedDecl More... | |
Variables | |
const char * | main_module_header |
const char * | module_header = "\n#include <pybind11/pybind11.h>\n//#include <pybind11/stl.h>\n\n" |
const char * | module_function_suffix = "(std::function< pybind11::module &(std::string const &namespace_) > &M)" |
typedef std::shared_ptr< Binder > binder::BinderOP |
typedef std::vector<BinderOP> binder::Binders |
void binder::add_relevant_include_for_decl | ( | clang::NamedDecl const * | decl, |
std::vector< std::string > & | includes | ||
) |
void binder::add_relevant_include_for_decl | ( | NamedDecl const * | decl, |
vector< string > & | includes | ||
) |
References begins_with(), name, basic::options::OptionKeys::score::fiber_diffraction::p, and relevant_include().
Referenced by add_relevant_includes().
void binder::add_relevant_includes | ( | clang::EnumDecl const * | E, |
std::vector< std::string > & | includes, | ||
std::set< clang::NamedDecl const * > & | stack | ||
) |
extract include needed for this generator and add it to includes vector
References add_relevant_include_for_decl().
void binder::add_relevant_includes | ( | clang::QualType const & | qt, |
std::vector< std::string > & | includes, | ||
std::set< clang::NamedDecl const * > & | stack | ||
) |
extract include needed for this generator and add it to includes vector
void binder::add_relevant_includes | ( | clang::FunctionDecl const * | F, |
std::vector< std::string > & | includes, | ||
std::set< clang::NamedDecl const * > & | stack | ||
) |
extract include needed for this generator and add it to includes vector
void binder::add_relevant_includes | ( | clang::CXXRecordDecl const * | C, |
std::vector< std::string > & | includes, | ||
std::set< clang::NamedDecl const * > & | stack | ||
) |
void binder::add_relevant_includes | ( | QualType const & | qt, |
std::vector< std::string > & | includes, | ||
std::set< clang::NamedDecl const * > & | stack | ||
) |
extract include needed for this generator and add it to includes vector
void binder::add_relevant_includes | ( | FunctionDecl const * | F, |
std::vector< std::string > & | includes, | ||
std::set< NamedDecl const * > & | stack | ||
) |
extract include needed for this generator and add it to includes vector
References add_relevant_include_for_decl(), add_relevant_includes(), get_type_dependencies(), and basic::options::OptionKeys::in::file::t.
void binder::add_relevant_includes | ( | clang::CXXRecordDecl const * | C, |
vector< string > & | includes, | ||
set< NamedDecl const * > & | stack | ||
) |
std::string binder::base_namespace | ( | string const & | ns | ) |
Calculate base (upper) namespace for given one: core::pose::motif –> core::pose.
References demo.D060_Folding::f.
Referenced by binder::Context::create_all_nested_namespaces(), and binder::Context::generate().
bool binder::begins_with | ( | std::string const & | source, |
std::string const & | prefix | ||
) |
check if string begins with given prefix
References basic::options::OptionKeys::antibody::prefix.
Referenced by add_relevant_include_for_decl(), file_name_prefix_for_binder(), binder::Config::is_namespace_binding_requested(), binder::Config::is_namespace_skipping_requested(), and is_python_builtin().
string binder::bind_data_member | ( | FieldDecl const * | d, |
string const & | class_qualified_name | ||
) |
References class_qualified_name().
Referenced by binder::ClassBinder::bind().
std::string binder::bind_enum | ( | std::string const & | module, |
clang::EnumDecl * | E | ||
) |
std::string binder::bind_enum | ( | std::string const & | module, |
EnumDecl * | E | ||
) |
References name.
Referenced by binder::EnumBinder::bind(), and binder::ClassBinder::bind().
std::string binder::bind_function | ( | clang::FunctionDecl * | F, |
Context & | |||
) |
string binder::bind_function | ( | FunctionDecl * | F, |
Context & | context | ||
) |
References tools.CppParser::context, expresion_to_string(), ObjexxFCL::format::F(), fix_boolean_types(), function_pointer_type(), function_qualified_name(), basic::options::OptionKeys::score::fiber_diffraction::p, replace(), request_bindings(), and template_specialization().
Referenced by binder::FunctionBinder::bind(), and binder::ClassBinder::bind().
std::string binder::class_name | ( | clang::CXXRecordDecl const * | C | ) |
string binder::class_name | ( | CXXRecordDecl const * | C | ) |
References template_specialization().
Referenced by binder::ClassBinder::bind().
std::string binder::class_qualified_name | ( | clang::CXXRecordDecl const * | C | ) |
string binder::class_qualified_name | ( | CXXRecordDecl const * | C | ) |
References template_specialization().
Referenced by binder::ClassBinder::bind(), bind_data_member(), function_pointer_type(), binder::ClassBinder::id(), is_binding_requested(), and is_skipping_requested().
std::string binder::expresion_to_string | ( | clang::Expr * | e | ) |
Generate string representation of given expression.
References basic::options::OptionKeys::in::file::s.
Referenced by bind_function().
string binder::file_name_prefix_for_binder | ( | BinderOP & | b | ) |
Generate file name where binding for given generator should be stored.
References begins_with(), namespace_from_named_decl(), relevant_include(), and replace().
Referenced by binder::Context::generate().
void binder::fix_boolean_types | ( | string & | type | ) |
replace all _Bool types with bool
Referenced by bind_function(), function_arguments(), function_pointer_type(), function_qualified_name(), and template_specialization().
std::string binder::function_arguments | ( | clang::FunctionDecl const * | record | ) |
References fix_boolean_types().
Referenced by binder::FunctionBinder::bind(), binder::ClassBinder::bind(), function_pointer_type(), and function_qualified_name().
std::string binder::function_pointer_type | ( | clang::FunctionDecl const * | record | ) |
string binder::function_pointer_type | ( | FunctionDecl const * | F | ) |
References class_qualified_name(), fix_boolean_types(), function_arguments(), and basic::options::OptionKeys::antibody::prefix.
Referenced by bind_function().
std::string binder::function_qualified_name | ( | clang::FunctionDecl const * | F | ) |
string binder::function_qualified_name | ( | FunctionDecl const * | F | ) |
References fix_boolean_types(), function_arguments(), and template_specialization().
Referenced by bind_function(), binder::FunctionBinder::id(), is_binding_requested(), and is_skipping_requested().
string binder::generate_include_directives | ( | vector< string > & | includes | ) |
Referenced by binder::Context::generate().
std::vector<clang::NamedDecl const *> binder::get_decl_dependencies | ( | clang::CXXRecordDecl const * | C | ) |
std::vector<clang::QualType> binder::get_type_dependencies | ( | clang::CXXRecordDecl const * | C | ) |
vector<QualType> binder::get_type_dependencies | ( | CXXRecordDecl const * | C | ) |
References basic::options::OptionKeys::in::file::t.
Referenced by is_binding_requested(), and is_skipping_requested().
vector<QualType> binder::get_type_dependencies | ( | FunctionDecl const * | F | ) |
Referenced by add_relevant_includes(), is_binding_requested(), and is_skipping_requested().
std::string binder::indent | ( | string const & | code, |
string const & | indentation | ||
) |
indent given code
References basic::options::OptionKeys::in::file::l, clean_pdb_keep_ligand::lines, and split().
Referenced by binder::ClassBinder::bind(), basic::YamlEmitter::do_indent(), basic::JsonEmitter::do_indent(), basic::YamlEmitter::end_raw(), utility::options::OptionCollection::load_options_from_stream(), basic::Emitter::start_list(), basic::Emitter::start_map(), basic::YamlEmitter::start_raw(), basic::JsonEmitter::start_raw(), and basic::YamlEmitter::write_list_marker().
bool binder::is_bindable | ( | clang::QualType const & | qt | ) |
bool binder::is_bindable | ( | clang::FunctionDecl const * | F | ) |
check if generator can create binding
bool binder::is_bindable | ( | FieldDecl * | f | ) |
check if generator can create binding
References is_field_assignable().
Referenced by binder::FunctionBinder::bindable(), BinderVisitor::VisitCXXRecordDecl(), and BinderVisitor::VisitFunctionDecl().
bool binder::is_bindable | ( | QualType const & | qt | ) |
bool binder::is_bindable | ( | clang::CXXRecordDecl const * | C | ) |
check if generator can create binding
References basic::options::OptionKeys::in::file::t, and test.T850_SubClassing::v.
Referenced by add_relevant_includes(), binder::ClassBinder::bind(), binder::ClassBinder::bindable(), and binder::ClassBinder::request_bindings_and_skipping().
bool binder::is_bindable | ( | FunctionDecl const * | F | ) |
check if generator can create binding
References ObjexxFCL::format::F(), and basic::options::OptionKeys::score::fiber_diffraction::p.
bool binder::is_binding_requested | ( | clang::QualType const & | qt, |
Config const & | config | ||
) |
check if user requested binding for the given QualType
References basic::options::OptionKeys::frags::scoring::config.
bool binder::is_binding_requested | ( | clang::FunctionDecl const * | F, |
Config const & | config | ||
) |
check if user requested binding for the given declaration
bool binder::is_binding_requested | ( | FunctionDecl const * | F, |
Config const & | config | ||
) |
check if user requested binding for the given declaration
References function_qualified_name(), get_type_dependencies(), is_binding_requested(), binder::Config::is_function_binding_requested(), binder::Config::is_namespace_binding_requested(), namespace_from_named_decl(), and basic::options::OptionKeys::in::file::t.
Referenced by binder::FunctionBinder::request_bindings_and_skipping().
bool binder::is_binding_requested | ( | clang::CXXRecordDecl const * | C, |
Config const & | config | ||
) |
check if user requested binding for the given declaration
References class_qualified_name(), get_type_dependencies(), binder::Config::is_class_binding_requested(), binder::Config::is_namespace_binding_requested(), is_skipping_requested(), namespace_from_named_decl(), and basic::options::OptionKeys::in::file::t.
Referenced by is_binding_requested(), and binder::ClassBinder::request_bindings_and_skipping().
bool binder::is_field_assignable | ( | FieldDecl const * | f | ) |
generate list of class/enum names on which this CXXRecordDecl depend to get binded ommiting build-in types
References C.
Referenced by is_bindable().
bool binder::is_inherited_from_enable_shared_from_this | ( | CXXRecordDecl const * | C | ) |
References basic::options::OptionKeys::score::fiber_diffraction::b.
Referenced by binder::ClassBinder::bind().
bool binder::is_python_builtin | ( | clang::NamedDecl const * | C | ) |
check if given class/struct is builtin in Python and therefor should not be binded
bool binder::is_python_builtin | ( | NamedDecl const * | C | ) |
check if given class/struct is builtin in Python and therefor should not be binded
References begins_with(), and name.
Referenced by binder::Binder::is_binded(), and binder::Context::request_bindings().
bool binder::is_skipping_requested | ( | clang::QualType const & | qt, |
Config const & | config | ||
) |
check if user requested skipping for the given QualType
bool binder::is_skipping_requested | ( | clang::FunctionDecl const * | F, |
Config const & | config | ||
) |
check if user requested skipping for the given declaration
bool binder::is_skipping_requested | ( | QualType const & | qt, |
Config const & | config | ||
) |
bool binder::is_skipping_requested | ( | FunctionDecl const * | F, |
Config const & | config | ||
) |
check if user requested skipping for the given declaration
References function_qualified_name(), get_type_dependencies(), binder::Config::is_class_skipping_requested(), binder::Config::is_function_skipping_requested(), binder::Config::is_namespace_skipping_requested(), namespace_from_named_decl(), basic::options::OptionKeys::rescore::skip, and basic::options::OptionKeys::in::file::t.
Referenced by binder::FunctionBinder::request_bindings_and_skipping().
bool binder::is_skipping_requested | ( | clang::CXXRecordDecl const * | C, |
Config const & | config | ||
) |
check if user requested skipping for the given declaration
References class_qualified_name(), get_type_dependencies(), binder::Config::is_class_skipping_requested(), binder::Config::is_namespace_skipping_requested(), namespace_from_named_decl(), basic::options::OptionKeys::rescore::skip, and basic::options::OptionKeys::in::file::t.
Referenced by is_binding_requested(), and binder::ClassBinder::request_bindings_and_skipping().
std::string binder::last_namespace | ( | string const & | ns | ) |
Calculate last namespace for given one: core::pose::motif –> motif.
References demo.D060_Folding::f.
Referenced by binder::Context::generate().
std::string binder::line_number | ( | clang::NamedDecl * | decl | ) |
calcualte line in source file for NamedDecl
string binder::line_number | ( | NamedDecl * | decl | ) |
References utility::to_string().
Referenced by binder::EnumBinder::bind(), binder::FunctionBinder::bind(), and binder::ClassBinder::bind().
std::string binder::namespace_from_named_decl | ( | clang::NamedDecl const * | decl | ) |
calculate namespace path from given NamedDecl, like: std, core::pose
string binder::namespace_from_named_decl | ( | NamedDecl const * | decl | ) |
References basic::options::OptionKeys::in::path::path.
Referenced by binder::EnumBinder::bind(), binder::FunctionBinder::bind(), binder::ClassBinder::bind(), binder::Context::create_all_nested_namespaces(), file_name_prefix_for_binder(), binder::Context::generate(), is_binding_requested(), is_skipping_requested(), and binder::EnumBinder::request_bindings_and_skipping().
llvm::raw_ostream & binder::operator<< | ( | llvm::raw_ostream & | os, |
Binder const & | b | ||
) |
References name, binder::Binder::named_decl(), and basic::options::OptionKeys::in::path::path.
std::string binder::relevant_include | ( | clang::NamedDecl const * | decl | ) |
string binder::relevant_include | ( | NamedDecl const * | decl | ) |
std::string binder::replace | ( | string const & | s, |
string const & | from, | ||
string const & | to | ||
) |
Replace all occurrences of string.
Referenced by tools.DoxygenExtractorPyPP.doxygen_doc_extractor::__call__(), app.pyrosetta_toolkit.modules.prettytable.prettytable.PrettyTable::_get_formatted_html_string(), app.pyrosetta_toolkit.modules.prettytable.prettytable.PrettyTable::_get_simple_html_string(), utility::file::PathName::assign(), utility::file::FileName::assign(), bind_function(), BuildBindings::buildModule_One(), BuildBindings::calculate_source_modification_date(), file_name_prefix_for_binder(), exclude::finalize(), exclude::finalize_old(), binder::Context::generate(), tools.CppParser::generate_monolith_main(), tools.dox_extract.dox_extract::getDoxygenComment(), tools.CppParser.CppClass::getMangledName(), exclude::isFileInScons(), utility::file::PathName::path(), utility::file::FileName::path(), and BuildBindings::windows_buildOneNamespace().
void binder::request_bindings | ( | clang::QualType const & | qt, |
Context & | context | ||
) |
extract type info from QualType if any and bind relative type
References binder::Context::request_bindings(), and typename_from_type_decl().
Referenced by bind_function(), binder::EnumBinder::request_bindings_and_skipping(), binder::FunctionBinder::request_bindings_and_skipping(), and binder::ClassBinder::request_bindings_and_skipping().
std::vector< std::string > binder::split | ( | string const & | buffer, |
string const & | separator | ||
) |
Split string using given separator.
References line, and clean_pdb_keep_ligand::lines.
Referenced by app.pyrosetta_toolkit.modules.prettytable.prettytable.PrettyTable::_stringify_row(), BuildBindings::buildModule_All(), BuildBindings::buildModule_One(), app.pyrosetta_toolkit.modules.DesignBreakdown.DesignBreakdown::calculate_results(), BuildBindings::calculate_source_modification_date(), app.pyrosetta_toolkit.window_modules.design.ResfileDesignWindow.ResfileDesignWindow::check_for_residue_existance(), app.pyrosetta_toolkit.modules.tools.output::convert_PDBLIST_to_sqlite3db(), app.pyrosetta_toolkit.modules.ScoreAnalysis.ScoreAnalysis::copy_results(), arls_impl::find_programs(), build::generate_bindings(), build::generate_rosetta_external_cmake_files(), BuildBindings::get_all_rosetta_objs(), BuildBindings::get_compiler_defines(), build::get_defines(), build::get_rosetta_include_directories(), app.pyrosetta_toolkit.modules.tools.interfaces.Antibodies::getContactCDRs(), PhiPsi::hbond_record(), indent(), exclude::isFileInScons(), tools.CppParser.CppClass::isPublicMembersWrappable(), best_ifaceE::main(), get_scores::main(), prune_atdiff_top5pct::main(), BuildBindings::main(), app.pyrosetta_toolkit.window_modules.design.ResfileDesignWindow.ResfileDesignWindow::nextRes(), app.pyrosetta_toolkit.window_modules.ligand_ncaa_ptm_manager.ligand_ncaa_ptm_manager.ligand_ncaa_ptm_manager::open_param_or_patch(), app.pyrosetta_toolkit.modules.tools.output::output_molfile_to_params(), tools.CppParser.GccXML::parse(), app.pyrosetta_toolkit.window_modules.scorefunction.ScoreFxnControl.ScoreFxnControl::populateScoreList(), app.pyrosetta_toolkit.window_modules.design.ResfileDesignWindow.ResfileDesignWindow::prevRes(), app.pyrosetta_toolkit.modules.ScoreAnalysis.ScoreAnalysis::read_FASC(), app.pyrosetta_toolkit.modules.ScoreAnalysis.ScoreAnalysis::read_SC(), register_options(), app.pyrosetta_toolkit.window_modules.design.ResfileDesignWindow.ResfileDesignWindow::remove_from_current_designs_callback(), app.pyrosetta_toolkit.modules.tools.general_tools::renameandsave(), app.pyrosetta_toolkit.modules.calibur.calibur::ret_centers(), app.pyrosetta_toolkit.modules.tools.loops::return_residue_array(), run(), demo.D090_Ala_scan::scanning_analysis(), app.pyrosetta_toolkit.window_main.frames.SimpleAnalysisFrame.SimpleAnalysisFrame::score_loops(), update_source_file(), app.pyrosetta_toolkit.window_modules.design.ResfileDesignWindow.ResfileDesignWindow::updateInfo(), BuildBindings::windows_buildOneNamespace(), and tools.CppParser::wrapModule().
std::string binder::template_argument_to_string | ( | clang::TemplateArgument const & | t | ) |
Generate string representation of given TemplateArgument.
References basic::options::OptionKeys::in::file::s.
Referenced by template_specialization().
std::string binder::template_specialization | ( | clang::CXXRecordDecl const * | C | ) |
References fix_boolean_types(), basic::options::OptionKeys::in::file::t, and template_argument_to_string().
Referenced by class_name(), and class_qualified_name().
string binder::template_specialization | ( | FunctionDecl const * | F | ) |
References fix_boolean_types(), and template_argument_to_string().
Referenced by bind_function(), and function_qualified_name().
std::string binder::typename_from_type_decl | ( | clang::TypeDecl * | decl | ) |
string binder::typename_from_type_decl | ( | TypeDecl * | decl | ) |
generate unique string representation of type represented by given declaration
Referenced by binder::Context::add(), and request_bindings().
void binder::update_source_file | ( | std::string const & | prefix, |
std::string const & | file_name, | ||
std::string const & | code | ||
) |
Try to read exisitng file and if content does not match to code - write a new version. Also create nested dirs starting from prefix if nessesary.
References demo.D060_Folding::f, basic::options::OptionKeys::in::path::path, basic::options::OptionKeys::antibody::prefix, and split().
Referenced by binder::Context::generate().
const char* binder::main_module_header |
Referenced by binder::Context::generate().
const char* binder::module_function_suffix = "(std::function< pybind11::module &(std::string const &namespace_) > &M)" |
Referenced by binder::Context::generate().
const char* binder::module_header = "\n#include <pybind11/pybind11.h>\n//#include <pybind11/stl.h>\n\n" |
Referenced by binder::Context::generate().