Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11222278
Interfaced.icc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
Interfaced.icc
View Options
// -*- C++ -*-
//
// This is the implementation of the inlined member functions of
// the Interfaced class.
//
namespace ThePEG {
inline Interfaced::Interfaced()
: theUseFlag(false) {}
inline Interfaced::Interfaced(const Interfaced & i)
: InterfacedBase(i), theGenerator(i.theGenerator), theUseFlag(false) {}
inline Interfaced::Interfaced(string newName)
: InterfacedBase(newName), theUseFlag(false) {}
inline Interfaced::~Interfaced() {}
inline tEGPtr Interfaced::generator() const {
return theGenerator;
}
inline void Interfaced::setGenerator(tEGPtr generator) {
theGenerator=generator;
}
inline bool Interfaced::used() const {
return theUseFlag;
}
inline void Interfaced::useMe() const {
if ( used() ) return;
setUsed();
}
template <typename PtrT>
inline bool Interfaced::
setDefaultReference(PtrT & ptr, string classname, string objectname) {
if ( ptr ) return true;
const ClassDescriptionBase * db = DescriptionList::find(classname);
if ( !db ) return false;
ptr = dynamic_ptr_cast<PtrT>(db->create());
if ( !ptr ) return false;
reporeg(ptr, objectname);
if ( !ptr->defaultInit() ) return false;
return true;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, May 14, 11:41 AM (5 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5088124
Default Alt Text
Interfaced.icc (1 KB)
Attached To
rTHEPEGHG thepeghg
Event Timeline
Log In to Comment