Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
_utility__by_hand_ending.cc
Go to the documentation of this file.
1 
3 {
4  using namespace pointer;
5  typedef bp::return_value_policy< bp::reference_existing_object > CP_REF;
6  typedef bp::return_value_policy< bp::copy_const_reference > CP_CCR;
7  typedef bp::return_value_policy< bp::copy_non_const_reference > CP_CNCR;
8 
9  expose_basic_type<string>("string");
10 
11  expose_basic_type<int>("int");
12  // conflict with SSize expose_basic_type<long>("long");
13  // conflict with Size expose_basic_type<unsigned long>("ulong");
14  expose_basic_type<unsigned int>("uint");
15  expose_basic_type<char>("char");
16  expose_basic_type<float>("float");
17  // conflict with Real expose_basic_type<double>("double");
18  //expose_basic_type<unsigned>("unsigned");
19  expose_basic_type<core::Size>("Size");
20  expose_basic_type<core::SSize>("SSize");
21  expose_basic_type<core::Real>("Real");
22 
23  //Need overload of bool_get so no:
24  // expose_basic_type<bool>("bool");
25  bp::class_< vector1<bool> >("vector1_bool")
26  .def("__len__",&vector1_len<bool> )
27  .def("append", &vector1_bool_push )
28  .def("__getitem__", &vector1_bool_get )
29  .def("__iter__",bp::range(&vector1_begin<bool>,&vector1_end<bool>))
30  ;
31  wrap_vector1< vector1<bool>, CP_REF, CP_REF >("vec1_vec1_bool");
32 
33 
34  expose_number_type<int>("int");
35  // conflict with SSize expose_number_type<long>("long");
36  // conflict with Size expose_number_type<unsigned long>("ulong");
37  expose_number_type<unsigned int>("uint");
38  expose_number_type<char>("char");
39  expose_number_type<float>("float");
40  // conflict with Real expose_number_type<double>("double");
41  //expose_number_type<unsigned>("unsigned");
42  expose_number_type<bool>("bool");
43 
44  expose_number_type<core::Size>("Size");
45  expose_number_type<core::SSize>("SSize");
46  expose_number_type<core::Real>("Real");
47 
48  expose_pair_types<std::string, std::string>("string", "string");
49 
50  expose_pair_types<int, std::string>("int", "string");
51  expose_pair_types<std::string, int>("string", "int");
52 
53  expose_pair_types<core::Size, std::string>("Size", "string");
54  expose_pair_types<std::string, core::Size>("string", "Size");
55 
56  expose_pair_types<core::SSize, std::string>("SSize", "string");
57  expose_pair_types<std::string, core::SSize>("string", "SSize");
58 
59  expose_pair_types<core::Real, std::string>("Real", "string");
60  expose_pair_types<std::string, core::Real>("string", "Real");
61 
62  wrap_vector1<core::scoring::ScoreType, CP_CNCR, CP_CCR>("vector1_ScoreType");
63  wrap_vector1<core::id::AtomID, CP_REF,CP_REF>("vector1_AtomID");
64 
65  wrap_vector1<core::pose::PoseOP, CP_CNCR, CP_CCR>("vector1_PoseOP");
66  wrap_vector1<core::pose::Pose, CP_REF, CP_REF>("vector1_Pose");
67 
68  //if( true ) { // This code never executed, but we need it so compiler create operator ostream << vector1[core::conformation::Atom]
69  // cout << vector1< core::conformation::Atom > () ;
70  //}
71  //wrap_vector1_part<core::conformation::Atom, CP_REF, CP_REF>("vector1_core_conformation_Atom");
72  wrap_vector1_part<core::conformation::Atom, CP_CNCR, CP_CCR>("vector1_core_conformation_Atom");
73 }
void __utility_by_hand_ending__()
bp::return_value_policy< bp::copy_const_reference > CP_CCR
bool vector1_bool_get(utility::vector1< bool > &v, int i)
void vector1_bool_push(utility::vector1< bool > &v, bool h)
bp::return_value_policy< bp::reference_existing_object > CP_REF
bp::return_value_policy< bp::copy_non_const_reference > CP_CNCR