42 #ifndef TEUCHOS_TEST_CLASSES_HPP 43 #define TEUCHOS_TEST_CLASSES_HPP 108 class B1 :
virtual public A {
112 ~B1() { B1_g_ = -1; B1_f_ = -1; }
114 virtual int B1_g() {
return B1_g_; }
115 virtual int B1_f()
const {
return B1_f_; }
119 class B2 :
virtual public A {
124 ~B2() { B2_g_ = -1; B2_f_ = -1; }
125 virtual int B2_g() {
return B2_g_; }
126 virtual int B2_f()
const {
return B2_f_; }
130 class C :
virtual public B1,
virtual public B2 141 C_g_ = -1; C_f_ = -1;
142 if (call_A_on_delete_) {
144 A_g_on_delete_ = call_A_g();
152 virtual int C_g() {
return C_g_; }
153 virtual int C_f()
const {
return C_f_; }
155 { call_A_on_delete_ = call_A_on_delete_in; }
215 int D_g() {
return D_g_; }
216 int D_f()
const {
return D_f_; }
225 int E_g() {
return E_g_; }
226 int E_f()
const {
return E_f_; }
273 static std::string
name() {
return "UndefinedType2"; }
295 struct UndefinedType3;
308 static std::string
name() {
return "Opaque3_handle"; }
317 #endif // TEUCHOS_TEST_CLASSES_HPP
void set_C(const Teuchos::RCP< C > &c)
static std::string name()
static Teuchos::RCP< B1 > create()
void deallocHandleA(A **handle)
const Opaque_handle OPAQUE_HANDLE_NULL
Opaque2_handle createOpaque2()
static Teuchos::RCP< C > create()
Opaque_handle createOpaque()
static Teuchos::RCP< A > create()
void destroyOpaque(Opaque_handle *opaque)
const int getOpaqueValue_return
const Opaque2_handle OPAQUE2_HANDLE_NULL
UndefinedType2 * Opaque2_handle
const int getOpaque2Value_return
static int A_g_on_delete_
Teuchos::RCP< A > get_A()
int getOpaque2Value(Opaque2_handle opaque)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
const Opaque3_handle OPAQUE3_HANDLE_NULL
static std::string concreteName(const UndefinedType2 &)
static Teuchos::RCP< B2 > create()
void set_A(const Teuchos::RCP< A > &a)
static std::string concreteName(Opaque3_handle)
static int get_A_g_on_delete()
UndefinedType * Opaque_handle
Get_A_f_return(const A *a, int *a_f_return)
Default traits class that just returns typeid(T).name().
UndefinedType3 * Opaque3_handle
int getOpaqueValue(Opaque_handle opaque)
void destroyOpaque2(Opaque2_handle *opaque)
Reference-counted pointer class and non-member templated function implementations.
void call_A_on_delete(bool call_A_on_delete_in)
static std::string name()