Sha256: 6fc5853fb8af0ea27ded30cc89a0b5450848f44377eed8b186463f49e9946073

Contents?: true

Size: 1.22 KB

Versions: 6

Compression:

Stored size: 1.22 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";
		}

		virtual const char* name_overridable_faster () const
		{
			return "Base::name_overridable_faster";
		}

};// 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";
		}

		virtual const char* name_overridable_faster () const
		{
			return "Sub::name_overridable_faster";
		}

};// 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

6 entries across 6 versions & 1 rubygems

Version Path
rucy-0.1.12 ext/rucy/class.h
rucy-0.1.11 ext/rucy/class.h
rucy-0.1.10 ext/rucy/class.h
rucy-0.1.9 ext/rucy/class.h
rucy-0.1.8 ext/rucy/class.h
rucy-0.1.7 ext/rucy/class.h