15 #ifndef INCLUDED_utility_py_Inheritance_hh
16 #define INCLUDED_utility_py_Inheritance_hh
24 namespace utility {
namespace py {
31 Value(
Value const & src ) {
std::cout <<
"Value Copy constructor! ["<< src.
s_ <<
"]" << std::endl;
utility_exit_with_message(
"Got Value copy-constructor call.. this really should not be happening... most likely is that PyRosetta sub-classing got broken!"); }
35 std::string
s()
const {
return s_; }
36 void s(std::string
const &
s) {
s_=
s; }
42 std::ostream &
operator << ( std::ostream & os,
Value const &
v) { os <<
"Value('" << v.
s() <<
"') ";
return os; }
44 typedef utility::pointer::shared_ptr< Value >
ValueOP;
45 typedef utility::pointer::shared_ptr< Value const >
ValueCOP;
57 virtual void foo_int(
int i) {
std::cout <<
"Base::foo_int( " << i <<
" )" << std::endl; }
64 typedef utility::pointer::shared_ptr< Base >
BaseOP;
65 typedef utility::pointer::shared_ptr< Base const >
BaseCOP;
74 #endif // INCLUDED_utility_py_Inheritance_hh
#define utility_exit_with_message(m)
Exit with file + line + message.
Value(std::string s="unknown")
virtual void foo_value_sp(ValueOP v)
Non-owning access smart pointer – dispatch class.
virtual void foo_value(Value &v)
utility::pointer::shared_ptr< Base const > BaseCOP
void foo_all(Base &b, int i, Value &v, std::string s)
virtual void foo_int(int i)
void s(std::string const &s)
utility::pointer::shared_ptr< Base > BaseOP
Program exit functions and macros.
virtual void foo_string(std::string s)
std::ostream & operator<<(std::ostream &os, Value const &v)
utility::pointer::shared_ptr< Value const > ValueCOP
utility::pointer::shared_ptr< Value > ValueOP
ocstream cout(std::cout)
Wrapper around std::cout.
void foo_all_sp(BaseOP b, int i, Value &v, std::string s)
std::string string_value_