Rosetta  3.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
binder::Context Class Reference

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< stringcreate_all_nested_namespaces ()
 examine binded objects and recursivly create all nested namespaces More...
 

Private Attributes

std::vector< BinderOPbinders
 array of all binderes from translation unit More...
 
std::unordered_map< string,
BinderOP
types
 types → binder More...
 
std::set< stringids
 

Detailed Description

Module - represent bindings of individual Python module.

Context - root, hold bindings info for whole TranslationUnit

Member Typedef Documentation

typedef std::string binder::Context::string
private

Member Function Documentation

void binder::Context::add ( BinderOP b)
void binder::Context::bind ( Config const &  config)
private
std::set< string > binder::Context::create_all_nested_namespaces ( )
private
void binder::Context::generate ( Config const &  config)
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)

Member Data Documentation

std::vector<BinderOP> binder::Context::binders
private

array of all binderes from translation unit

std::set<string> binder::Context::ids
private
std::unordered_map<string, BinderOP> binder::Context::types
private

types → binder


The documentation for this class was generated from the following files: