PLearn 0.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Types
PLearn::X Struct Reference
Inheritance diagram for PLearn::X:
Inheritance graph
[legend]
Collaboration diagram for PLearn::X:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual XdeepCopy (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 PPathdeclaringFile ()
static void declareOptions (OptionList &ol)
 Declare options (data fields) for the class.

Public Attributes

string name
PP< Xchild
int i

Static Public Attributes

static StaticInitializer _static_initializer_

Private Types

typedef Object inherited

Detailed Description

Definition at line 136 of file ObjectGraphIteratorTest.cc.


Member Typedef Documentation

typedef Object PLearn::X::inherited [private]

Reimplemented from PLearn::Object.

Reimplemented in PLearn::Y.

Definition at line 138 of file ObjectGraphIteratorTest.cc.


Constructor & Destructor Documentation

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) { }

Member Function Documentation

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
bool X::_isa_ ( const Object o) [static]

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);
  }
Parameters:
olList 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.

Here is the call graph for this function:

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;
X * X::deepCopy ( CopiesMap copies) const [virtual]

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);
}

Here is the call graph for this function:

Here is the caller graph for this function:

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);
}

Here is the call graph for this function:

Here is the caller graph for this function:

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().

    {
        cout << "X::method1: name='" << name << "'  arg1='" << s << "'" << endl;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

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;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

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().

    {
        cout << "X::printName: " << name << endl;
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.

Definition at line 139 of file ObjectGraphIteratorTest.cc.

Referenced by declareOptions().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines