#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 866 of file emobject.h.
|
Definition at line 869 of file emobject.h. 00869 {}
|
|
Definition at line 870 of file emobject.h. 00870 {};
|
|
Definition at line 921 of file emobject.h. References get_param_types(). Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00922 { 00923 return params.copy_keys_in(that->get_param_types()); 00924 00925 }
|
|
|
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::WienerFourierReconstructor, 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(). |
|
get a copy of the parameters of this class
Definition at line 885 of file emobject.h. Referenced by EMAN::SaffOrientationGenerator::gen_orientations(), and EMAN::SaffOrientationGenerator::get_orientations_tally(). 00885 { return params; }
|
|
Insert parameters. Previously present parameters are replaced, new ones are inserted.
Definition at line 905 of file emobject.h. References EMAN::Dict::begin(), EMAN::Dict::end(), EMAN::TypeDict::find_type(), and InvalidParameterException. 00906 { 00907 // this is really inserting OR individually replacing... 00908 // the old data will be kept if it is not written over 00909 TypeDict permissable_params = get_param_types(); 00910 for ( Dict::const_iterator it = new_params.begin(); it != new_params.end(); ++it ) 00911 { 00912 00913 if ( !permissable_params.find_type(it->first) ) 00914 { 00915 throw InvalidParameterException(it->first); 00916 } 00917 params[it->first] = it->second; 00918 } 00919 }
|
|
Definition at line 896 of file emobject.h. 00896 { params[key]=val; }
|
|
Set new parameters. Old parameters are cleared
Definition at line 890 of file emobject.h. Referenced by EMAN::OptimumOrientationGenerator::gen_orientations(). 00891 { 00892 params.clear(); 00893 insert_params(new_params); 00894 }
|
|
This is the dictionary the stores the parameters of the object.
Definition at line 929 of file emobject.h. |