37 #include <opencog/util/platform.h>
42 using namespace opencog;
48 static TruthValuePtr instance(std::make_shared<NullTruthValue>());
69 static TruthValuePtr instance(std::make_shared<SimpleTruthValue>(0.0f, 1.0e35));
76 static TruthValuePtr instance(std::make_shared<SimpleTruthValue>(0.0, 0.0));
88 if (dtv.get() ==
this)
return true;
89 if (
getType() == dtv->getType() and
const strength_t MAX_TRUTH
virtual bool isDefaultTV() const
virtual count_t getCount() const =0
virtual TruthValueType getType() const =0
static TruthValuePtr TRUE_TV()
std::shared_ptr< TruthValue > TruthValuePtr
static TruthValuePtr NULL_TV()
static TruthValuePtr TRIVIAL_TV()
static TruthValuePtr DEFAULT_TV()
static TruthValuePtr FALSE_TV()
virtual bool isNullTv() const
virtual strength_t getMean() const =0