jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Public Member Functions | Private Attributes | List of all members
jubatus::core::fv_converter::except_match Class Reference

#include <except_match.hpp>

Inheritance diagram for jubatus::core::fv_converter::except_match:
Inheritance graph
Collaboration diagram for jubatus::core::fv_converter::except_match:
Collaboration graph

Public Member Functions

 except_match (jubatus::util::lang::shared_ptr< key_matcher > condition, jubatus::util::lang::shared_ptr< key_matcher > except)
 
bool match (const std::string &s)
 
- Public Member Functions inherited from jubatus::core::fv_converter::key_matcher
 key_matcher ()
 
virtual ~key_matcher ()
 

Private Attributes

jubatus::util::lang::shared_ptr< key_matchercondition_
 
jubatus::util::lang::shared_ptr< key_matcherexcept_
 

Detailed Description

Definition at line 28 of file except_match.hpp.

Constructor & Destructor Documentation

jubatus::core::fv_converter::except_match::except_match ( jubatus::util::lang::shared_ptr< key_matcher condition,
jubatus::util::lang::shared_ptr< key_matcher except 
)
inline

Definition at line 30 of file except_match.hpp.

33  : condition_(condition), except_(except) {
34  }
jubatus::util::lang::shared_ptr< key_matcher > condition_
jubatus::util::lang::shared_ptr< key_matcher > except_

Member Function Documentation

bool jubatus::core::fv_converter::except_match::match ( const std::string &  s)
inlinevirtual

Implements jubatus::core::fv_converter::key_matcher.

Definition at line 36 of file except_match.hpp.

References condition_, and except_.

36  {
37  return condition_->match(s) && !except_->match(s);
38  }
jubatus::util::lang::shared_ptr< key_matcher > condition_
jubatus::util::lang::shared_ptr< key_matcher > except_

Member Data Documentation

jubatus::util::lang::shared_ptr<key_matcher> jubatus::core::fv_converter::except_match::condition_
private

Definition at line 41 of file except_match.hpp.

Referenced by match().

jubatus::util::lang::shared_ptr<key_matcher> jubatus::core::fv_converter::except_match::except_
private

Definition at line 41 of file except_match.hpp.

Referenced by match().


The documentation for this class was generated from the following file: