head	1.2;
access;
symbols
	charm6_1:1.2
	charm_6_0_1:1.2
	charm6_0_1:1.2;
locks; strict;
comment	@# @;


1.2
date	2008.12.18.20.22.34;	author abecker;	state Exp;
branches;
next	1.1;
commitid	Smwujl2zJu4skZut;

1.1
date	2008.12.18.00.21.11;	author abecker;	state Exp;
branches;
next	;
commitid	CD6f27PU2CjcGSut;


desc
@@


1.2
log
@improved nampace support in charmxi
@
text
@This is a demonstration of using namespaces and inheritance in Charm++.
The base class A is created in namespace Base, and a class B in namespace
Base::Derived is derived from A. Class C in the global namespace inherits from
B. The main chare, Driver, instantiates objects of types B and C.

@


1.1
log
@added example of the use of namespaces with chare inheritance
@
text
@d3 2
a4 3
Base::Derived is derived from A. The main chare, Driver, imports the
Base::Derived namespace to create a chare of type B, on which it then calls
a method defined in A and a method defined in B.
a5 3
Note that the "using namespace" statement in Inherit.ci is not really
necessary--it could be moved to Inherit.cc. However, it would be needed in
the .ci file to inherit from a class inside a namespace.
@

