![]() |
Rosetta
3.6
|
Module - represent bindings of individual Python module. More...
#include <context.hpp>
Public Member Functions | |
void | add (BinderOP &) |
void | generate (Config const &config) |
void | request_bindings (std::string const &type) |
string | module_variable_name (string const &namespace_) |
generate C++ expression for module variable for namespace_ More... | |
Private Types | |
typedef std::string | string |
Private Member Functions | |
void | bind (Config const &config) |
bind all objects residing in namespaces and it dependency More... | |
std::set< string > | create_all_nested_namespaces () |
examine binded objects and recursivly create all nested namespaces More... | |
Private Attributes | |
std::vector< BinderOP > | binders |
array of all binderes from translation unit More... | |
std::unordered_map< string, BinderOP > | types |
types → binder More... | |
std::set< string > | ids |
Module - represent bindings of individual Python module.
Context - root, hold bindings info for whole TranslationUnit
|
private |
void binder::Context::add | ( | BinderOP & | b | ) |
|
private |
bind all objects residing in namespaces and it dependency
walk over all binders and bind one that belong to requested namespaces
References basic::options::OptionKeys::score::fiber_diffraction::b, binder::Binder::bind(), binder::Binder::bindable(), binder::Binder::binding_requested(), binder::Binder::id(), binder::Binder::is_binded(), binder::Binder::is_in_system_header(), and binder::Binder::request_bindings_and_skipping().
Referenced by app.pyrosetta_toolkit.window_modules.interactive_terminal.interactive_terminal.TkConsoleView::_setBindings().
|
private |
examine binded objects and recursivly create all nested namespaces
References basic::options::OptionKeys::score::fiber_diffraction::b, binder::base_namespace(), utility::keys::AutoKey< O, S, C >::code(), binder::namespace_from_named_decl(), and basic::options::OptionKeys::in::file::s.
void binder::Context::generate | ( | Config const & | config | ) |
References binder::base_namespace(), demo.D060_Folding::f, binder::file_name_prefix_for_binder(), BuildPackagedBindings::format, binder::generate_include_directives(), binder::last_namespace(), binder::main_module_header, binder::Config::maximum_file_length, binder::module_function_suffix, binder::module_header, binder::namespace_from_named_decl(), binder::Config::prefix, binder::replace(), binder::Config::root_module, basic::options::OptionKeys::in::file::s, utility::to_string(), and binder::update_source_file().
std::string binder::Context::module_variable_name | ( | std::string const & | namespace_ | ) |
generate C++ expression for module variable for namespace_
Referenced by binder::EnumBinder::bind(), binder::FunctionBinder::bind(), and binder::ClassBinder::bind().
void binder::Context::request_bindings | ( | std::string const & | type | ) |
References binder::is_python_builtin(), and basic::options::OptionKeys::frags::contacts::type.
Referenced by binder::request_bindings().
|
private |
array of all binderes from translation unit
|
private |