Sha256: 386246a1bc44c904ade7e22201b8cfd29f9db0ee2ace71c9f3de8c00d30ffc5b

Contents?: true

Size: 1.01 KB

Versions: 21

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

21 entries across 21 versions & 1 rubygems

Version Path
rucy-0.1.35 ext/rucy/class.h
rucy-0.1.34 ext/rucy/class.h
rucy-0.1.33 ext/rucy/class.h
rucy-0.1.32 ext/rucy/class.h
rucy-0.1.31 ext/rucy/class.h
rucy-0.1.30 ext/rucy/class.h
rucy-0.1.29 ext/rucy/class.h
rucy-0.1.28 ext/rucy/class.h
rucy-0.1.27 ext/rucy/class.h
rucy-0.1.26 ext/rucy/class.h
rucy-0.1.25 ext/rucy/class.h
rucy-0.1.24 ext/rucy/class.h
rucy-0.1.23 ext/rucy/class.h
rucy-0.1.22 ext/rucy/class.h
rucy-0.1.21 ext/rucy/class.h
rucy-0.1.20 ext/rucy/class.h
rucy-0.1.18 ext/rucy/class.h
rucy-0.1.16 ext/rucy/class.h
rucy-0.1.15 ext/rucy/class.h
rucy-0.1.14 ext/rucy/class.h