ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | List of all members
meta::util::multilevel_clonable< Root, Base, Derived > Class Template Reference

Template class to facilitate polymorphic cloning. More...

#include <clonable.h>

Inheritance diagram for meta::util::multilevel_clonable< Root, Base, Derived >:
meta::analyzers::branch_featurizer meta::analyzers::depth_featurizer meta::analyzers::filters::alpha_filter meta::analyzers::filters::empty_sentence_filter meta::analyzers::filters::english_normalizer meta::analyzers::filters::icu_filter meta::analyzers::filters::length_filter meta::analyzers::filters::list_filter meta::analyzers::filters::lowercase_filter meta::analyzers::filters::porter2_stemmer meta::analyzers::filters::ptb_normalizer " and "") to streams of tokens. " alt="meta::analyzers::filters::sentence_boundary" shape="rect" coords="323,728,636,752"/> meta::analyzers::libsvm_analyzer meta::analyzers::multi_analyzer meta::analyzers::semi_skeleton_featurizer meta::analyzers::skeleton_featurizer meta::analyzers::subtree_featurizer meta::analyzers::tag_featurizer meta::analyzers::tokenizers::character_tokenizer meta::analyzers::tokenizers::icu_tokenizer meta::analyzers::tokenizers::whitespace_tokenizer meta::analyzers::tree_analyzer meta::parser::internal_node meta::parser::leaf_node

Public Member Functions

virtual std::unique_ptr< Root > clone () const
 Clones the given object. More...
 

Detailed Description

template<class Root, class Base, class Derived>
class meta::util::multilevel_clonable< Root, Base, Derived >

Template class to facilitate polymorphic cloning.

Use in place of an ordinary base class, with first parameter being the root of the inheritance hierarchy, the second being the desired base class, and the third being the current class (CRTP style).

Member Function Documentation

template<class Root, class Base, class Derived>
virtual std::unique_ptr<Root> meta::util::multilevel_clonable< Root, Base, Derived >::clone ( ) const
inlinevirtual

Clones the given object.

This requires that the Derived class be capable of being copy-constructed.

Returns
a unique_ptr to the Root type object.

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