Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::SetOption Class Reference

#include <SetOption.h>

Inheritance diagram for PLearn::SetOption:

Inheritance graph
[legend]
Collaboration diagram for PLearn::SetOption:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Object inherited

Public Member Functions

 SetOption ()
virtual void build ()
 Should call simply inherited::build(), then this class's build_().

virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
 Transforms a shallow copy into a deep copy.

void apply (PP< Object > obj)
 Will call obj->setOption(name, value).

void apply (PP< Object > obj, const map< string, string > &aliases)
 Will call obj->setOption(name, value); or if name is a key in aliases, it will call obj->setOption(aliases[name], value).

virtual string classname () const
virtual OptionListgetOptionList () const
virtual SetOptiondeepCopy (CopiesMap &copies) const

Static Public Member Functions

string _classname_ ()
 Declares name and deepCopy methods.

OptionList_getOptionList_ ()
Object_new_instance_for_typemap_ ()
bool _isa_ (Object *o)
void _static_initialize_ ()

Public Attributes

string name
string value

Static Public Attributes

StaticInitializer _static_initializer_

Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef Object PLearn::SetOption::inherited
 

Reimplemented from PLearn::Object.

Definition at line 60 of file SetOption.h.


Constructor & Destructor Documentation

PLearn::SetOption::SetOption  ) 
 

Definition at line 45 of file SetOption.cc.


Member Function Documentation

string PLearn::SetOption::_classname_  )  [static]
 

Declares name and deepCopy methods.

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

OptionList & PLearn::SetOption::_getOptionList_  )  [static]
 

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

bool PLearn::SetOption::_isa_ Object o  )  [static]
 

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

Object * PLearn::SetOption::_new_instance_for_typemap_  )  [static]
 

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

void PLearn::SetOption::_static_initialize_  )  [static]
 

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

void PLearn::SetOption::apply PP< Object obj,
const map< string, string > &  aliases
 

Will call obj->setOption(name, value); or if name is a key in aliases, it will call obj->setOption(aliases[name], value).

Definition at line 79 of file SetOption.cc.

References name, and value.

void PLearn::SetOption::apply PP< Object obj  )  [inline]
 

Will call obj->setOption(name, value).

Definition at line 100 of file SetOption.h.

References name, and value.

void PLearn::SetOption::build  )  [virtual]
 

Should call simply inherited::build(), then this class's build_().

This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::Object.

Definition at line 67 of file SetOption.cc.

References build_().

void PLearn::SetOption::build_  )  [private]
 

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 63 of file SetOption.cc.

Referenced by build().

string PLearn::SetOption::classname  )  const [virtual]
 

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

void PLearn::SetOption::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 54 of file SetOption.cc.

References PLearn::declareOption(), and PLearn::OptionList.

SetOption * PLearn::SetOption::deepCopy CopiesMap copies  )  const [virtual]
 

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

OptionList & PLearn::SetOption::getOptionList  )  const [virtual]
 

Reimplemented from PLearn::Object.

Definition at line 52 of file SetOption.cc.

void PLearn::SetOption::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Transforms a shallow copy into a deep copy.

Definition at line 74 of file SetOption.cc.


Member Data Documentation

StaticInitializer PLearn::SetOption::_static_initializer_ [static]
 

Reimplemented from PLearn::Object.

string PLearn::SetOption::name
 

Definition at line 66 of file SetOption.h.

Referenced by apply().

string PLearn::SetOption::value
 

Definition at line 67 of file SetOption.h.

Referenced by apply().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:22:43 2004 for PLearn by doxygen 1.3.7