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

#include <config.hpp>

Public Member Functions

void read (string const &file_name)
 Read config setting from the file. More...
 
std::map< string, string > const & binders () const
 
std::map< string, string > const & add_on_binders () const
 
std::map< string, string > const & binder_for_namespaces () const
 
std::map< string, string > const & add_on_binder_for_namespaces () const
 
std::map< string, std::vector
< string > > const & 
class_includes () const
 
std::map< string, std::vector
< string > > const & 
namespace_includes () const
 
string const & default_static_pointer_return_value_policy ()
 
string const & default_static_lvalue_reference_return_value_policy ()
 
string const & default_static_rvalue_reference_return_value_policy ()
 
string const & default_member_pointer_return_value_policy ()
 
string const & default_member_lvalue_reference_return_value_policy ()
 
string const & default_member_rvalue_reference_return_value_policy ()
 
string const & default_call_guard ()
 
bool is_namespace_binding_requested (string const &namespace_) const
 check if user requested binding for given declaration More...
 
bool is_namespace_skipping_requested (string const &namespace_) const
 
bool is_function_binding_requested (string const &function) const
 
bool is_function_skipping_requested (string const &function) const
 
bool is_class_binding_requested (string const &class_) const
 
bool is_class_skipping_requested (string const &class_) const
 
bool is_include_skipping_requested (string const &include) const
 
string includes_code () const
 

Static Public Member Functions

static Configget ()
 

Public Attributes

string root_module
 
std::vector< stringnamespaces_to_bind
 
std::vector< stringclasses_to_bind
 
std::vector< stringfunctions_to_bind
 
std::vector< stringnamespaces_to_skip
 
std::vector< stringclasses_to_skip
 
std::vector< stringfunctions_to_skip
 
std::vector< stringincludes_to_add
 
std::vector< stringincludes_to_skip
 
string prefix
 
std::size_t maximum_file_length
 

Private Types

typedef std::string string
 

Private Member Functions

 Config ()
 
 Config (string const &root_module_, std::vector< string > namespaces_to_bind_, std::vector< string > namespaces_to_skip_, string const &prefix_, std::size_t maximum_file_length_)
 

Private Attributes

std::map< string, stringbinders_
 
std::map< string, stringadd_on_binders_
 
std::map< string, stringbinder_for_namespaces_
 
std::map< string, stringadd_on_binder_for_namespaces_
 
std::map< string, std::vector
< string > > 
class_includes_
 
std::map< string, std::vector
< string > > 
namespace_includes_
 
string default_static_pointer_return_value_policy_ = "pybind11::return_value_policy::automatic"
 
string default_static_lvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
 
string default_static_rvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
 
string default_member_pointer_return_value_policy_ = "pybind11::return_value_policy::automatic"
 
string default_member_lvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
 
string default_member_rvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
 
string default_call_guard_ = ""
 

Member Typedef Documentation

typedef std::string binder::Config::string
private

Constructor & Destructor Documentation

binder::Config::Config ( )
inlineprivate
binder::Config::Config ( string const &  root_module_,
std::vector< string namespaces_to_bind_,
std::vector< string namespaces_to_skip_,
string const &  prefix_,
std::size_t  maximum_file_length_ 
)
inlineprivate

Member Function Documentation

std::map<string, string> const& binder::Config::add_on_binder_for_namespaces ( ) const
inline
std::map<string, string> const& binder::Config::add_on_binders ( ) const
inline

References add_on_binders_.

std::map<string, string> const& binder::Config::binder_for_namespaces ( ) const
inline
std::map<string, string> const& binder::Config::binders ( ) const
inline

References binders_.

std::map<string, std::vector<string> > const& binder::Config::class_includes ( ) const
inline

References class_includes_.

string const& binder::Config::default_call_guard ( )
inline

References default_call_guard_.

string const& binder::Config::default_member_lvalue_reference_return_value_policy ( )
inline
string const& binder::Config::default_member_pointer_return_value_policy ( )
inline
string const& binder::Config::default_member_rvalue_reference_return_value_policy ( )
inline
string const& binder::Config::default_static_lvalue_reference_return_value_policy ( )
inline
string const& binder::Config::default_static_pointer_return_value_policy ( )
inline
string const& binder::Config::default_static_rvalue_reference_return_value_policy ( )
inline
Config & binder::Config::get ( )
static
string binder::Config::includes_code ( ) const
bool binder::Config::is_class_binding_requested ( string const &  class_) const
bool binder::Config::is_class_skipping_requested ( string const &  class_) const
bool binder::Config::is_function_binding_requested ( string const &  function) const
bool binder::Config::is_function_skipping_requested ( string const &  function) const
bool binder::Config::is_include_skipping_requested ( string const &  include) const

References binder::begins_with().

bool binder::Config::is_namespace_binding_requested ( string const &  namespace_) const

check if user requested binding for given declaration

References binder::begins_with(), and basic::options::OptionKeys::in::file::s.

Referenced by binder::is_binding_requested(), and binder::EnumBinder::request_bindings_and_skipping().

bool binder::Config::is_namespace_skipping_requested ( string const &  namespace_) const
std::map<string, std::vector<string> > const& binder::Config::namespace_includes ( ) const
inline

References namespace_includes_.

void binder::Config::read ( string const &  file_name)

Read config setting from the file.

Read config setting from file.

References demo.D060_Folding::f, ObjexxFCL::getline(), line, name, erraser_util::remove(), ObjexxFCL::space(), and binder::split_in_two().

Referenced by BinderVisitor::BinderVisitor().

Member Data Documentation

std::map<string, string> binder::Config::add_on_binder_for_namespaces_
private
std::map<string, string> binder::Config::add_on_binders_
private

Referenced by add_on_binders().

std::map<string, string> binder::Config::binder_for_namespaces_
private

Referenced by binder_for_namespaces().

std::map<string, string> binder::Config::binders_
private

Referenced by binders().

std::map<string, std::vector<string> > binder::Config::class_includes_
private

Referenced by class_includes().

std::vector<string> binder::Config::classes_to_bind
std::vector<string> binder::Config::classes_to_skip
string binder::Config::default_call_guard_ = ""
private

Referenced by default_call_guard().

string binder::Config::default_member_lvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
private
string binder::Config::default_member_pointer_return_value_policy_ = "pybind11::return_value_policy::automatic"
private
string binder::Config::default_member_rvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
private
string binder::Config::default_static_lvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
private
string binder::Config::default_static_pointer_return_value_policy_ = "pybind11::return_value_policy::automatic"
private
string binder::Config::default_static_rvalue_reference_return_value_policy_ = "pybind11::return_value_policy::automatic"
private
std::vector<string> binder::Config::functions_to_bind
std::vector<string> binder::Config::functions_to_skip
std::vector<string> binder::Config::includes_to_add
std::vector<string> binder::Config::includes_to_skip
std::size_t binder::Config::maximum_file_length
std::map<string, std::vector<string> > binder::Config::namespace_includes_
private

Referenced by namespace_includes().

std::vector<string> binder::Config::namespaces_to_bind
std::vector<string> binder::Config::namespaces_to_skip
string binder::Config::prefix
string binder::Config::root_module

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