[GME-commit] GMESRC/SDK/BON Extensions.h,1.9,1.10

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Tue Mar 9 14:08:53 CST 2004


Update of /var/lib/gme/GMESRC/SDK/BON
In directory braindrain:/tmp/cvs-serv26344

Modified Files:
	Extensions.h 
Log Message:
Copy constructors are added to the Extension classes (smart pointers). Again: BON2 NEEDS DESIGN REVIEW !

CVS User: volgy

Index: Extensions.h
===================================================================
RCS file: /var/lib/gme/GMESRC/SDK/BON/Extensions.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Extensions.h	3 Feb 2004 10:53:05 -0000	1.9
--- Extensions.h	9 Mar 2004 20:08:50 -0000	1.10
***************
*** 209,212 ****
--- 209,220 ----
  			}
  
+ 			//	VOLGY: Copy constructor
+ 			Extension( const Extension<TBON,TUserI>& object )
+ 				: TBON()
+ 			{
+ 				setCounted( castObjectImpl( dynamic_cast<ObjectImpl*>( object.getCounted( false ) ) ) );
+ 			}
+ 
+ 
  			Extension<TBON,TUserI>& operator = ( const Object& object )
  			{
***************
*** 703,706 ****
--- 711,721 ----
  				if ( ! castObjectImpl( dynamic_cast<ObjectImpl*>( getCounted( false ) ) ) )
  					setCounted( NULL );
+ 			}
+ 
+ 			//	VOLGY: Copy constructor
+ 			ExtensionA( const ExtensionA<TBON,TUserI>& object )
+ 				: TBON()
+ 			{
+ 				setCounted( castObjectImpl( dynamic_cast<ObjectImpl*>( object.getCounted( false ) ) ) );
  			}
  



More information about the GME-commit mailing list