ThePEG::RefInterfaceBase Class Reference

RefInterfaceBase is an abstract base class inheriting from InterfaceBase used for subclasses dealing with interfaces to do with references in one Interfaced object to another. More...

#include <InterfaceBase.h>

Inheritance diagram for ThePEG::RefInterfaceBase:

ThePEG::InterfaceBase ThePEG::Named ThePEG::ReferenceBase ThePEG::RefVectorBase ThePEG::Reference< T, R > ThePEG::RefVector< T, R >

List of all members.

Public Member Functions

 RefInterfaceBase (string newName, string newDescription, string newClassName, const type_info &newTypeInfo, string newRefClassName, const type_info &newRefTypeInfo, bool depSafe, bool readonly, bool norebind, bool nullable, bool defnull)
 Standard constructor.
string refClassName () const
 Return the class name of the class referred to by this interface.
const type_info & refTypeInfo () const
 Return the type_info object of the class referred to by this interface.
bool noRebind () const
 Get the flag saying whether the interface is responsible for rebinding of the corresponding refenerces.
void setNoRebind ()
 Set the flag saying that the interface is not responsible for rebinding refenerces.
void setRebind ()
 Set the flag saying that the interface is responsible for rebinding refenerces.
bool noNull () const
 Get the flag saying whether the interface is allowed to set the reference to null.
void setNullable ()
 Set the flag saying that the interface it is allowed to set the reference to null.
void setNotNullable ()
 Set the flag saying that the interface it is not allowed to set the reference to null.
bool defaultIfNull () const
 Get the flag saying wether a null pointer should be replaced by a default of suitable class when rebind is called.
void setDefaultIfNull ()
 Set the flag saying that a null pointer should be replaced by a default of suitable class when rebind is called.
void setNoDefaultIfNull ()
 Set the flag saying that a null pointer should not be replaced by a default of suitable class when rebind is called.

Private Attributes

string theRefClassName
 The class name of the class referred to by this interface.
const type_info & theRefTypeInfo
 The type_info object of the class referred to by this interface.
bool dontRebind
 The flag saying whether the interface is responsible for rebinding refenerces.
bool isNullable
 The flag saying whether the interface is allowed to set a reference to null.
bool theDefaultIfNull
 The flag saying wether a null pointer should be replaced by a default of suitable class when rebind is called.


Detailed Description

RefInterfaceBase is an abstract base class inheriting from InterfaceBase used for subclasses dealing with interfaces to do with references in one Interfaced object to another.

Definition at line 251 of file InterfaceBase.h.


Constructor & Destructor Documentation

ThePEG::RefInterfaceBase::RefInterfaceBase ( string  newName,
string  newDescription,
string  newClassName,
const type_info &  newTypeInfo,
string  newRefClassName,
const type_info &  newRefTypeInfo,
bool  depSafe,
bool  readonly,
bool  norebind,
bool  nullable,
bool  defnull 
)

Standard constructor.

Parameters:
newName the name of the interface, may only contain letters [a-zA-z0-9_].
newDescription a brief description of the interface.
newClassName the name of the corresponding class.
newTypeInfo the type_info object of the corresponding class.
newRefClassName the name of the class referred to by the corresponding class..
newRefTypeInfo the type_info object of the class referred to by the corresponding class.
depSafe set to true if calls to this interface for one object does not influence other objects.
readonly if this is set true the interface will not be able to manipulate objects of the corresponding class, but will still be able to access information.
norebind if set to true, this interface is not responsible for the rebinding of corresponding objects.
nullable if set to true this corresponding references may be null.
defnull if set to true and a corresponding reference is null it may be given a a default value in the initialization of an EventGenerator.


The documentation for this class was generated from the following file:

Generated on Thu Apr 29 12:43:07 2010 for ThePEG by  doxygen 1.5.5