#include <InputDescription.h>
Public Types | |
typedef vector< const InputDescription * > | DescriptionVector |
A vector of pointers to InputDescription objects. | |
typedef ThePEG::Ptr < PersistentBase >::pointer | BPtr |
Alias for a reference counted pointer to PersistentBase . | |
typedef ThePEG::Ptr < PersistentBase > ::const_pointer | cBPtr |
Alias for a reference counted pointer to a const PersistentBase . | |
typedef ThePEG::Ptr < PersistentBase > ::transient_pointer | tBPtr |
Alias for a transient pointer to PersistentBase . | |
typedef ThePEG::Ptr < PersistentBase > ::transient_const_pointer | tcBPtr |
Alias for a transient pointer to a const PersistentBase . | |
Public Member Functions | |
InputDescription (string newName, int newVersion) | |
The standard constructor. | |
void | setDescription (const ClassDescriptionBase *cd) |
Set the ClassDescriptionBase object of the class being read. | |
void | addBaseClass (const InputDescription *newBase) |
Add a base class description. | |
const DescriptionVector & | descriptions () const |
Return the list of base class descriptions. | |
BPtr | create () const |
Create an object of the corresponding class. | |
void | input (tBPtr b, PersistentIStream &is) const |
Read an object part of the corresponding class from a stream. | |
Private Attributes | |
DescriptionVector | theBaseClasses |
The list of base class descriptions. | |
const ClassDescriptionBase * | theDescription |
The description of the corresponding class in the current program. | |
int | theVersion |
The version of the class to be read. |
It keeps a pointer to the corresponding ClassDescription in case the class read in was actually present in the current program, a version number of the read class which may be different from the class present in the current program and a list of base class InputDescription
s.
Definition at line 31 of file InputDescription.h.
typedef vector<const InputDescription *> ThePEG::InputDescription::DescriptionVector |
typedef ThePEG::Ptr< PersistentBase >::pointer ThePEG::InputDescription::BPtr |
Alias for a reference counted pointer to PersistentBase .
Definition at line 38 of file InputDescription.h.
typedef ThePEG::Ptr< PersistentBase >::const_pointer ThePEG::InputDescription::cBPtr |
Alias for a reference counted pointer to a const PersistentBase .
Definition at line 38 of file InputDescription.h.
typedef ThePEG::Ptr< PersistentBase >::transient_pointer ThePEG::InputDescription::tBPtr |
typedef ThePEG::Ptr< PersistentBase >::transient_const_pointer ThePEG::InputDescription::tcBPtr |
Alias for a transient pointer to a const PersistentBase .
Definition at line 38 of file InputDescription.h.
ThePEG::InputDescription::InputDescription | ( | string | newName, | |
int | newVersion | |||
) | [inline] |
The standard constructor.
newName | the name of the class being read. | |
newVersion | the version number of the class when written. |
Definition at line 47 of file InputDescription.h.
void ThePEG::InputDescription::input | ( | tBPtr | b, | |
PersistentIStream & | is | |||
) | const [inline] |
Read an object part of the corresponding class from a stream.
Will only read the part of the object corresponding to the members of the class represented by this object.
Definition at line 89 of file InputDescription.h.
References ThePEG::ClassDescriptionBase::input(), theDescription, and theVersion.