#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 873 of file emobject.h.
|
Definition at line 876 of file emobject.h. 00876 {}
|
|
Definition at line 877 of file emobject.h. 00877 {};
|
|
Definition at line 928 of file emobject.h. References get_param_types(). Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00929 { 00930 return params.copy_keys_in(that->get_param_types()); 00931 00932 }
|
|
|
|
Implemented in EMAN::XYZReconstructor, EMAN::FourierReconstructorSimple2D, EMAN::FourierReconstructor, EMAN::BackProjectionReconstructor, EMAN::nn4Reconstructor, EMAN::nn4_rectReconstructor, EMAN::nnSSNR_Reconstructor, EMAN::nn4_ctfReconstructor, EMAN::nn4_ctf_rectReconstructor, 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(). |
|
get a copy of the parameters of this class
Definition at line 892 of file emobject.h. Referenced by EMAN::SaffOrientationGenerator::gen_orientations(), EMAN::SaffOrientationGenerator::get_orientations_tally(), EMAN::SymAlignProcessor::process(), and EMAN::ApplySymProcessor::process(). 00892 { return params; }
|
|
Insert parameters. Previously present parameters are replaced, new ones are inserted.
Definition at line 912 of file emobject.h. References EMAN::Dict::begin(), EMAN::Dict::end(), EMAN::TypeDict::find_type(), and InvalidParameterException. 00913 { 00914 // this is really inserting OR individually replacing... 00915 // the old data will be kept if it is not written over 00916 TypeDict permissable_params = get_param_types(); 00917 for ( Dict::const_iterator it = new_params.begin(); it != new_params.end(); ++it ) 00918 { 00919 00920 if ( !permissable_params.find_type(it->first) ) 00921 { 00922 throw InvalidParameterException(it->first); 00923 } 00924 params[it->first] = it->second; 00925 } 00926 }
|
|
Definition at line 903 of file emobject.h. 00903 { params[key]=val; }
|
|
Set new parameters. Old parameters are cleared
Definition at line 897 of file emobject.h. Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00898 { 00899 params.clear(); 00900 insert_params(new_params); 00901 }
|
|
This is the dictionary the stores the parameters of the object.
Definition at line 936 of file emobject.h. |