|
PLearn 0.1
|


Public Member Functions | |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual Z * | deepCopy (CopiesMap &copies) const |
| Z () | |
Static Public Member Functions | |
| static string | _classname_ () |
| static OptionList & | _getOptionList_ () |
| static RemoteMethodMap & | _getRemoteMethodMap_ () |
| static Object * | _new_instance_for_typemap_ () |
| static bool | _isa_ (const Object *o) |
| static void | _static_initialize_ () |
| static const PPath & | declaringFile () |
| static void | declareOptions (OptionList &ol) |
| Declare options (data fields) for the class. | |
Public Attributes | |
| string | dummy_option1 |
| TVec< PP< X > > | sub_objects |
| int | dummy_option2 |
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Private Types | |
| typedef Object | inherited |
Definition at line 198 of file ObjectGraphIteratorTest.cc.
typedef Object PLearn::Z::inherited [private] |
Reimplemented from PLearn::Object.
Definition at line 200 of file ObjectGraphIteratorTest.cc.
| PLearn::Z::Z | ( | ) | [inline] |
Definition at line 209 of file ObjectGraphIteratorTest.cc.
{ dummy_option2 = 0; }
| string PLearn::Z::_classname_ | ( | ) | [static] |
| OptionList & PLearn::Z::_getOptionList_ | ( | ) | [static] |
| RemoteMethodMap & PLearn::Z::_getRemoteMethodMap_ | ( | ) | [static] |
| Object * PLearn::Z::_new_instance_for_typemap_ | ( | ) | [static] |
| StaticInitializer Z::_static_initializer_ & PLearn::Z::_static_initialize_ | ( | ) | [static] |
| string PLearn::Z::classname | ( | ) | const [virtual] |
| static void PLearn::Z::declareOptions | ( | OptionList & | ol | ) | [inline, static] |
Declare options (data fields) for the class.
Redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options). Please call the inherited method AT THE END to get the options listed in a consistent order (from most recently defined to least recently defined).
static void MyDerivedClass::declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "The size of the input; it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "The learned model weights"); inherited::declareOptions(ol); }
| ol | List of options that is progressively being constructed for the current class. |
Reimplemented from PLearn::Object.
Definition at line 211 of file ObjectGraphIteratorTest.cc.
References PLearn::OptionBase::buildoption, PLearn::declareOption(), dummy_option1, dummy_option2, and sub_objects.
{
declareOption(ol, "dummy_option1", &Z::dummy_option1, OptionBase::buildoption, "");
declareOption(ol, "sub_objects", &Z::sub_objects, OptionBase::buildoption, "");
declareOption(ol, "dummy_option2", &Z::dummy_option2, OptionBase::buildoption, "");
}

| static const PPath& PLearn::Z::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Object.
Definition at line 201 of file ObjectGraphIteratorTest.cc.
:
string dummy_option1;
| OptionList & PLearn::Z::getOptionList | ( | ) | const [virtual] |
| OptionMap & PLearn::Z::getOptionMap | ( | ) | const [virtual] |
| RemoteMethodMap & PLearn::Z::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 201 of file ObjectGraphIteratorTest.cc.
| string PLearn::Z::dummy_option1 |
Definition at line 201 of file ObjectGraphIteratorTest.cc.
Referenced by declareOptions().
Definition at line 206 of file ObjectGraphIteratorTest.cc.
Referenced by declareOptions().
Definition at line 205 of file ObjectGraphIteratorTest.cc.
Referenced by declareOptions().
1.7.4