#include <emobject.h>
Inheritance diagram for EMAN::FactoryBase:
Public Member Functions | |
FactoryBase () | |
virtual | ~FactoryBase () |
virtual string | get_name () const =0 |
Get the unique name of this class (especially for factory based instantiation access). | |
virtual string | get_desc () const =0 |
Get a clear, concise description of this class. | |
Dict | get_params () const |
get a copy of the parameters of this class | |
void | set_params (const Dict &new_params) |
Set new parameters. | |
void | set_param (const string key, const EMObject val) |
virtual TypeDict | get_param_types () const =0 |
void | insert_params (const Dict &new_params) |
Insert parameters. | |
Dict | copy_relevant_params (const FactoryBase *const that) const |
Protected Attributes | |
Dict | params |
This is the dictionary the stores the parameters of the object. |
This class is abstract.
Definition at line 869 of file emobject.h.
|
Definition at line 872 of file emobject.h.
|
|
Definition at line 873 of file emobject.h.
|
|
Definition at line 924 of file emobject.h. References EMAN::Dict::copy_keys_in(), get_param_types(), and params. Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00925 { 00926 return params.copy_keys_in(that->get_param_types()); 00927 00928 }
|
|
|
Get the unique name of this class (especially for factory based instantiation access).
Implemented in EMAN::XYZReconstructor, EMAN::FourierReconstructorSimple2D, EMAN::FourierReconstructor, EMAN::WienerFourierReconstructor, EMAN::BackProjectionReconstructor, EMAN::nn4Reconstructor, EMAN::nnSSNR_Reconstructor, EMAN::nn4_ctfReconstructor, EMAN::nnSSNR_ctfReconstructor, EMAN::FourierInserter3DMode1, EMAN::FourierInserter3DMode2, EMAN::FourierInserter3DMode3, EMAN::FourierInserter3DMode5, EMAN::FourierInserter3DMode6, EMAN::FourierInserter3DMode7, EMAN::FourierInserter3DMode8, EMAN::CSym, EMAN::DSym, EMAN::HSym, EMAN::TetrahedralSym, EMAN::OctahedralSym, EMAN::IcosahedralSym, EMAN::EmanOrientationGenerator, EMAN::RandomOrientationGenerator, EMAN::EvenOrientationGenerator, EMAN::SaffOrientationGenerator, and EMAN::OptimumOrientationGenerator. Referenced by EMAN::PlatonicSym::get_delimiters(). |
|
Implemented in EMAN::XYZReconstructor, EMAN::FourierReconstructorSimple2D, EMAN::FourierReconstructor, EMAN::BackProjectionReconstructor, EMAN::nn4Reconstructor, EMAN::nnSSNR_Reconstructor, EMAN::nn4_ctfReconstructor, EMAN::nnSSNR_ctfReconstructor, EMAN::FourierPixelInserter3D, EMAN::CSym, EMAN::DSym, EMAN::HSym, EMAN::PlatonicSym, EMAN::OrientationGenerator, EMAN::EmanOrientationGenerator, EMAN::RandomOrientationGenerator, EMAN::EvenOrientationGenerator, EMAN::SaffOrientationGenerator, and EMAN::OptimumOrientationGenerator. Referenced by copy_relevant_params(), and insert_params(). |
|
get a copy of the parameters of this class
Definition at line 888 of file emobject.h. References params. Referenced by EMAN::SaffOrientationGenerator::gen_orientations(), and EMAN::SaffOrientationGenerator::get_orientations_tally(). 00888 { return params; }
|
|
Insert parameters. Previously present parameters are replaced, new ones are inserted.
Definition at line 908 of file emobject.h. References EMAN::Dict::begin(), EMAN::Dict::end(), EMAN::TypeDict::find_type(), get_param_types(), InvalidParameterException, and params. Referenced by set_params(). 00909 { 00910 // this is really inserting OR individually replacing... 00911 // the old data will be kept if it is not written over 00912 TypeDict permissable_params = get_param_types(); 00913 for ( Dict::const_iterator it = new_params.begin(); it != new_params.end(); ++it ) 00914 { 00915 00916 if ( !permissable_params.find_type(it->first) ) 00917 { 00918 throw InvalidParameterException(it->first); 00919 } 00920 params[it->first] = it->second; 00921 } 00922 }
|
|
Definition at line 899 of file emobject.h. References params.
|
|
Set new parameters. Old parameters are cleared
Definition at line 893 of file emobject.h. References EMAN::Dict::clear(), insert_params(), and params. Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00894 { 00895 params.clear(); 00896 insert_params(new_params); 00897 }
|
|