ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
meta::analyzers::filters::lowercase_filter Class Reference

Filter that converts all tokens to lowercase. More...

#include <lowercase_filter.h>

Inheritance diagram for meta::analyzers::filters::lowercase_filter:
meta::util::multilevel_clonable< Root, Base, Derived >

Public Member Functions

 lowercase_filter (std::unique_ptr< token_stream > source)
 Constructs a new lowercase_filter, reading tokens from the given source. More...
 
 lowercase_filter (const lowercase_filter &other)
 Copy constructor. More...
 
void set_content (const std::string &content) override
 Sets the content for the beginning of the filter chain. More...
 
std::string next () override
 Obtains the next token in the sequence.
 
 operator bool () const override
 Determines whether there are more tokens available in the stream.
 
- Public Member Functions inherited from meta::util::multilevel_clonable< Root, Base, Derived >
virtual std::unique_ptr< Root > clone () const
 Clones the given object. More...
 

Static Public Attributes

static const std::string id = "lowercase"
 Identifier for this filter.
 

Private Attributes

std::unique_ptr< token_streamsource_
 The stream to read tokens from.
 

Detailed Description

Filter that converts all tokens to lowercase.

Constructor & Destructor Documentation

meta::analyzers::filters::lowercase_filter::lowercase_filter ( std::unique_ptr< token_stream source)

Constructs a new lowercase_filter, reading tokens from the given source.

Parameters
sourceThe source to construct the filter from
meta::analyzers::filters::lowercase_filter::lowercase_filter ( const lowercase_filter other)

Copy constructor.

Parameters
otherThe lowercase_filter to copy into this one

Member Function Documentation

void meta::analyzers::filters::lowercase_filter::set_content ( const std::string &  content)
override

Sets the content for the beginning of the filter chain.

Parameters
contentThe string content to set

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