PLearn 0.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Private Types | Private Member Functions | Private Attributes
PLearn::IdentityFeatureSet Class Reference

FeatureSet with features corresponding to the input string token. More...

#include <IdentityFeatureSet.h>

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

List of all members.

Public Member Functions

 IdentityFeatureSet ()
 Default constructor.
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual IdentityFeatureSetdeepCopy (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 PPathdeclaringFile ()

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.

Detailed Description

FeatureSet with features corresponding to the input string token.

Definition at line 51 of file IdentityFeatureSet.h.


Member Typedef Documentation

Reimplemented from PLearn::HashMapFeatureSet.

Definition at line 53 of file IdentityFeatureSet.h.


Constructor & Destructor Documentation

PLearn::IdentityFeatureSet::IdentityFeatureSet ( )

Default constructor.

Definition at line 52 of file IdentityFeatureSet.cc.

{}

Member Function Documentation

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.

bool PLearn::IdentityFeatureSet::_isa_ ( const Object o) [static]

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.

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

{
    feats_str.resize(1);
    feats_str[0] = token;
}

Here is the call graph for this function:

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.


Member Data Documentation

Reimplemented from PLearn::HashMapFeatureSet.

Definition at line 67 of file IdentityFeatureSet.h.

Temporary computations vectors.

Reimplemented from PLearn::HashMapFeatureSet.

Definition at line 97 of file IdentityFeatureSet.h.


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