PLearn 0.1
|
#include <Option.h>
Public Member Functions | |
TVecStaticOption (const string &optionname, TVec< VecElementType > *member_ptr, OptionBase::flag_t flags, const string &optiontype, const string &defaultval, const string &description, const OptionBase::OptionLevel &level) | |
virtual void | readIntoIndex (Object *o, PStream &in, const string &index) |
Read into index "i" of the object's option; the index is a string for generality (i.e. | |
virtual void | writeAtIndex (const Object *o, PStream &out, const string &index) const |
Write from index "i" of the object's option; the index is a string for generality (i.e. | |
Private Types | |
typedef StaticOption< TVec < VecElementType > > | inherited |
typedef StaticOption<TVec<VecElementType> > PLearn::TVecStaticOption< VecElementType >::inherited [private] |
Reimplemented from PLearn::StaticOption< TVec< VecElementType > >.
PLearn::TVecStaticOption< VecElementType >::TVecStaticOption | ( | const string & | optionname, |
TVec< VecElementType > * | member_ptr, | ||
OptionBase::flag_t | flags, | ||
const string & | optiontype, | ||
const string & | defaultval, | ||
const string & | description, | ||
const OptionBase::OptionLevel & | level | ||
) | [inline] |
Definition at line 332 of file Option.h.
: inherited(optionname, member_ptr, flags, optiontype, defaultval, description, level) { }
virtual void PLearn::TVecStaticOption< VecElementType >::readIntoIndex | ( | Object * | o, |
PStream & | in, | ||
const string & | index | ||
) | [inline, virtual] |
Read into index "i" of the object's option; the index is a string for generality (i.e.
applies to both vectors and maps)
Reimplemented from PLearn::OptionBase.
Definition at line 339 of file Option.h.
References i, PLearn::StaticOption< TVec< VecElementType > >::ptr, and PLearn::tolong().
virtual void PLearn::TVecStaticOption< VecElementType >::writeAtIndex | ( | const Object * | o, |
PStream & | out, | ||
const string & | index | ||
) | const [inline, virtual] |
Write from index "i" of the object's option; the index is a string for generality (i.e.
applies to both vectors and maps)
Reimplemented from PLearn::OptionBase.
Definition at line 345 of file Option.h.
References i, PLearn::StaticOption< TVec< VecElementType > >::ptr, and PLearn::tolong().