|
PLearn 0.1
|
FeatureSet with features corresponding to the input string token. More...
#include <IdentityFeatureSet.h>


Public Member Functions | |
| IdentityFeatureSet () | |
| Default constructor. | |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual IdentityFeatureSet * | deepCopy (CopiesMap &copies) const |
| virtual void | build () |
| Post-constructor. | |
| virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
| Transforms a shallow copy into a deep copy. | |
| virtual void | getNewFeaturesString (string token, TVec< string > &feats_str) |
| Gives the possibly new features in string form for a token. | |
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 Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
| static void | declareOptions (OptionList &ol) |
| Declares the class options. | |
Private Types | |
| typedef HashMapFeatureSet | inherited |
Private Member Functions | |
| void | build_ () |
| This does the actual building. | |
Private Attributes | |
| TVec< string > | f_str |
| Temporary computations vectors. | |
FeatureSet with features corresponding to the input string token.
Definition at line 51 of file IdentityFeatureSet.h.
typedef HashMapFeatureSet PLearn::IdentityFeatureSet::inherited [private] |
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 53 of file IdentityFeatureSet.h.
| PLearn::IdentityFeatureSet::IdentityFeatureSet | ( | ) |
| string PLearn::IdentityFeatureSet::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 50 of file IdentityFeatureSet.cc.
| OptionList & PLearn::IdentityFeatureSet::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 50 of file IdentityFeatureSet.cc.
| RemoteMethodMap & PLearn::IdentityFeatureSet::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 50 of file IdentityFeatureSet.cc.
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 50 of file IdentityFeatureSet.cc.
| Object * PLearn::IdentityFeatureSet::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 50 of file IdentityFeatureSet.cc.
| StaticInitializer IdentityFeatureSet::_static_initializer_ & PLearn::IdentityFeatureSet::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 50 of file IdentityFeatureSet.cc.
| void PLearn::IdentityFeatureSet::build | ( | ) | [virtual] |
Post-constructor.
The normal implementation 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::HashMapFeatureSet.
Definition at line 56 of file IdentityFeatureSet.cc.
{
inherited::build();
build_();
}
| void PLearn::IdentityFeatureSet::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 73 of file IdentityFeatureSet.cc.
{}
| string PLearn::IdentityFeatureSet::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 50 of file IdentityFeatureSet.cc.
| void PLearn::IdentityFeatureSet::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares the class options.
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 67 of file IdentityFeatureSet.cc.
{
// Now call the parent class' declareOptions
inherited::declareOptions(ol);
}
| static const PPath& PLearn::IdentityFeatureSet::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 67 of file IdentityFeatureSet.h.
:
//##### Protected Options ###############################################
| IdentityFeatureSet * PLearn::IdentityFeatureSet::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 50 of file IdentityFeatureSet.cc.
| void PLearn::IdentityFeatureSet::getNewFeaturesString | ( | string | token, |
| TVec< string > & | feats_str | ||
| ) | [virtual] |
Gives the possibly new features in string form for a token.
Implements PLearn::HashMapFeatureSet.
Definition at line 76 of file IdentityFeatureSet.cc.
References PLearn::TVec< T >::resize().

| OptionList & PLearn::IdentityFeatureSet::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 50 of file IdentityFeatureSet.cc.
| OptionMap & PLearn::IdentityFeatureSet::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 50 of file IdentityFeatureSet.cc.
| RemoteMethodMap & PLearn::IdentityFeatureSet::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 50 of file IdentityFeatureSet.cc.
| void PLearn::IdentityFeatureSet::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 62 of file IdentityFeatureSet.cc.
{
inherited::makeDeepCopyFromShallowCopy(copies);
}
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 67 of file IdentityFeatureSet.h.
TVec<string> PLearn::IdentityFeatureSet::f_str [private] |
Temporary computations vectors.
Reimplemented from PLearn::HashMapFeatureSet.
Definition at line 97 of file IdentityFeatureSet.h.
1.7.4