#ifndef REFLEX_BUILD
#define REFLEX_BUILD
#endif
#include "Reflex/Base.h"
#include "Class.h"
Reflex::Base::Base( const Type & baseType,
OffsetFunction offsetfp,
unsigned int modifiers )
: fOffsetFP( offsetfp ),
fModifiers( modifiers ),
fBaseType( Type() ),
fBaseClass( 0 ) {
fBaseType = baseType;
}
const Reflex::Class * Reflex::Base::BaseClass() const {
if ( fBaseClass ) return fBaseClass;
if ( fBaseType ) {
fBaseClass = dynamic_cast< const Class * >(fBaseType.ToTypeBase());
return fBaseClass;
}
return 0;
}
std::string Reflex::Base::Name( unsigned int mod ) const {
std::string s = "";
if ( 0 != ( mod & ( QUALIFIED | Q ))) {
if ( IsPublic()) { s += "public "; }
if ( IsProtected()) { s += "protected "; }
if ( IsPrivate()) { s += "private "; }
if ( IsVirtual()) { s += "virtual "; }
}
s += fBaseType.Name( mod );
return s;
}
Last change: Wed Jun 25 08:31:12 2008
Last generated: 2008-06-25 08:31
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.