contrib/rpl/rgrl/rgrl_feature_set.cxx
Go to the documentation of this file.
00001 //:
00002 // \file
00003 // \author Amitha Perera
00004 // \date Feb 2002
00005 
00006 #include "rgrl_feature_set.h"
00007 
00008 rgrl_feature_set::
00009 rgrl_feature_set(feature_vector const& fea_vec, rgrl_feature_set_label const& label)
00010  :  label_(label), fea_vec_(fea_vec)
00011 {
00012 }
00013 
00014 rgrl_feature_set::
00015 ~rgrl_feature_set()
00016 {
00017 }
00018 
00019 
00020 // ============================================================================
00021 //                                                      rgrl_feature_set_label 
00022 // ============================================================================
00023 
00024 rgrl_feature_set_label::
00025 rgrl_feature_set_label( const vcl_string& name )
00026   : name_( name )
00027 {
00028 }
00029 
00030 
00031 bool
00032 rgrl_feature_set_label::
00033 operator==( rgrl_feature_set_label const& other ) const
00034 {
00035   return this->name_ == other.name_;
00036 }
00037 
00038 
00039 bool
00040 rgrl_feature_set_label::
00041 operator!=( rgrl_feature_set_label const& other ) const
00042 {
00043   return this->name_ != other.name_;
00044 }
00045 
00046 
00047 bool
00048 rgrl_feature_set_label::
00049 operator<( rgrl_feature_set_label const& other ) const
00050 {
00051   return this->name_ < other.name_;
00052 }