Debian Codegraph @

pypy/module/_cppyy/test/pythonizables.cxx

raw symbols SCIP
1 #include "pythonizables.h"
2
3
4 pyzables::MyBase::~MyBase() {}
5 pyzables::MyDerived::~MyDerived() {}
6
7 pyzables::MyBase* pyzables::GimeDerived() {
8 return new MyDerived();
9 }
10
11
12 //===========================================================================
13 int pyzables::Countable::sInstances = 0;
14 pyzables::SharedCountable_t pyzables::mine =
15 pyzables::SharedCountable_t(new pyzables::Countable);
16
17 void pyzables::renew_mine() { mine = std::shared_ptr<Countable>(new Countable); }
18
19 pyzables::SharedCountable_t pyzables::gime_mine() { return mine; }
20 pyzables::SharedCountable_t* pyzables::gime_mine_ptr() { return &mine; }
21 pyzables::SharedCountable_t& pyzables::gime_mine_ref() { return mine; }
22
23 unsigned int pyzables::pass_mine_sp(std::shared_ptr<Countable> ptr) { return ptr->m_check; }
24 unsigned int pyzables::pass_mine_sp_ref(std::shared_ptr<Countable>& ptr) { return ptr->m_check; }
25 unsigned int pyzables::pass_mine_sp_ptr(std::shared_ptr<Countable>* ptr) { return (*ptr)->m_check; }
26
27 unsigned int pyzables::pass_mine_rp(Countable c) { return c.m_check; }
28 unsigned int pyzables::pass_mine_rp_ref(const Countable& c) { return c.m_check; }
29 unsigned int pyzables::pass_mine_rp_ptr(const Countable* c) { return c->m_check; }
30
31 pyzables::Countable* pyzables::gime_naked_countable() { return new Countable(); }