#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 878 of file emobject.h.
|
Definition at line 881 of file emobject.h. 00881 {}
|
|
Definition at line 882 of file emobject.h. 00882 {};
|
|
Definition at line 933 of file emobject.h. References get_param_types(). Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00934 { 00935 return params.copy_keys_in(that->get_param_types()); 00936 00937 }
|
|
|
|
Implemented in EMAN::XYZReconstructor, EMAN::FourierReconstructorSimple2D, EMAN::FourierReconstructor, EMAN::FourierPlaneReconstructor, 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 897 of file emobject.h. Referenced by EMAN::SymAlignProcessor::align(), EMAN::SaffOrientationGenerator::gen_orientations(), and EMAN::SaffOrientationGenerator::get_orientations_tally(). 00897 { return params; }
|
|
Insert parameters. Previously present parameters are replaced, new ones are inserted.
Definition at line 917 of file emobject.h. References EMAN::Dict::begin(), EMAN::Dict::end(), EMAN::TypeDict::find_type(), and InvalidParameterException. 00918 { 00919 // this is really inserting OR individually replacing... 00920 // the old data will be kept if it is not written over 00921 TypeDict permissable_params = get_param_types(); 00922 for ( Dict::const_iterator it = new_params.begin(); it != new_params.end(); ++it ) 00923 { 00924 00925 if ( !permissable_params.find_type(it->first) ) 00926 { 00927 throw InvalidParameterException(it->first); 00928 } 00929 params[it->first] = it->second; 00930 } 00931 }
|
|
Definition at line 908 of file emobject.h. 00908 { params[key]=val; }
|
|
Set new parameters. Old parameters are cleared
Definition at line 902 of file emobject.h. Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00903 { 00904 params.clear(); 00905 insert_params(new_params); 00906 }
|
|
This is the dictionary the stores the parameters of the object.
Definition at line 941 of file emobject.h. |