Sha256: 877a9d8fb395fc6a5652f18da8bde81fbe74fe8c7c59895f6d291e5c50c3841c
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
// -*- c++ -*- #pragma once #ifndef __CLASS_H__ #define __CLASS_H__ #include <xot/ref.h> #include <xot/string.h> #include "rucy/extension.h" #include "tester.h" class Base : public Xot::RefCountable<> { public: Base () { log("Base()"); } virtual ~Base () { log("~Base()"); } virtual const char* name () const { return "Base::name"; } virtual const char* name_overridable () const { return "Base::name_overridable"; } };// Base class Sub : public Base { public: Sub () { log("Sub()"); } virtual ~Sub () { log("~Sub()"); } virtual const char* name () const { return "Sub::name"; } virtual const char* name_overridable () const { return "Sub::name_overridable"; } };// Sub class SimpleObj : public Xot::RefCountable<> { public: void init (const char* name_) { name = name_; log("SimpleObj(" + name + ")"); } ~SimpleObj () { log("~SimpleObj(" + name + ")"); } private: Xot::String name; };// SimpleObj #endif//EOH
Version data entries
12 entries across 12 versions & 1 rubygems