// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "feature_type.h" #include namespace search::fef { const FeatureType FeatureType::_number = FeatureType(TYPE_UP()); FeatureType::FeatureType(const FeatureType &rhs) : _type() { if (rhs.is_object()) { _type = std::make_unique(rhs.type()); } } FeatureType FeatureType::object(const TYPE &type_in) { return FeatureType(std::make_unique(type_in)); } const FeatureType::TYPE & FeatureType::type() const { assert(_type); return *_type; } }