PLearn 0.1
|
Public Member Functions | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual X * | deepCopy (CopiesMap &copies) const |
X () | |
virtual void | printName () |
virtual void | method1 (string s) |
virtual void | method2 (string s, int i) |
X (int value) | |
PythonObjectWrapper | f (const TVec< PythonObjectWrapper > &args) |
PythonObjectWrapper | g (const TVec< PythonObjectWrapper > &args) const |
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 | name |
PP< X > | child |
int | i |
Static Public Attributes | |
static StaticInitializer | _static_initializer_ |
Private Types | |
typedef Object | inherited |
Definition at line 136 of file ObjectGraphIteratorTest.cc.
typedef Object PLearn::X::inherited [private] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 138 of file ObjectGraphIteratorTest.cc.
PLearn::X::X | ( | ) | [inline] |
Definition at line 146 of file ObjectGraphIteratorTest.cc.
{}
PLearn::X::X | ( | int | value | ) | [inline] |
Definition at line 157 of file InjectionTest.cc.
: i(value) { }
string X::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
OptionList & X::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
RemoteMethodMap & X::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
Object * X::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
StaticInitializer X::_static_initializer_ & X::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
string X::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
static void PLearn::X::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 148 of file ObjectGraphIteratorTest.cc.
References PLearn::OptionBase::buildoption, child, PLearn::declareOption(), and name.
{ declareOption(ol, "name", &X::name, OptionBase::buildoption, ""); declareOption(ol, "child", &X::child, OptionBase::buildoption, ""); }
static const PPath& PLearn::X::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 139 of file ObjectGraphIteratorTest.cc.
: string name;
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
PythonObjectWrapper X::f | ( | const TVec< PythonObjectWrapper > & | args | ) |
Definition at line 164 of file InjectionTest.cc.
References PLearn::endl(), and i.
Referenced by main(), and PLearn::InjectionTest::perform().
{ cout << "X::f() called with i=" << i << " and arg[0]=" << args[0].as<int>() << endl; return PythonObjectWrapper(1337); }
PythonObjectWrapper X::g | ( | const TVec< PythonObjectWrapper > & | args | ) | const |
Definition at line 171 of file InjectionTest.cc.
References PLearn::endl(), and i.
Referenced by PLearn::InjectionTest::perform().
{ cout << "X::g() called with i=" << i << " and arg[0]=" << args[0].as<int>() << endl; return PythonObjectWrapper(1337*2); }
OptionList & X::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
OptionMap & X::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
RemoteMethodMap & X::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 173 of file ObjectGraphIteratorTest.cc.
: public X
virtual void PLearn::X::method1 | ( | string | s | ) | [inline, virtual] |
Definition at line 159 of file ObjectGraphIteratorTest.cc.
References PLearn::endl().
Referenced by PLearn::ObjectGraphIteratorTest::perform().
virtual void PLearn::X::method2 | ( | string | s, |
int | i | ||
) | [inline, virtual] |
Definition at line 164 of file ObjectGraphIteratorTest.cc.
References PLearn::endl().
Referenced by PLearn::ObjectGraphIteratorTest::perform().
{ cout << "X::method1: name='" << name << "' arg1='" << s << "'" << " arg2='" << i << "'" << endl; }
virtual void PLearn::X::printName | ( | ) | [inline, virtual] |
Reimplemented in PLearn::Y.
Definition at line 154 of file ObjectGraphIteratorTest.cc.
References PLearn::endl().
Referenced by PLearn::ObjectGraphIteratorTest::perform().
Reimplemented from PLearn::Object.
Reimplemented in PLearn::Y.
Definition at line 139 of file ObjectGraphIteratorTest.cc.
Definition at line 143 of file ObjectGraphIteratorTest.cc.
Referenced by declareOptions().
Definition at line 159 of file InjectionTest.cc.
string PLearn::X::name |
Definition at line 139 of file ObjectGraphIteratorTest.cc.
Referenced by declareOptions().