IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OIC::Service::RCSResourceAttributes::Value::ComparisonHelper Class Reference

A helper class to avoid obscure comparisons of values which are supported by RCSResourceAttributes::Value caused by implicitly converting a value to a RCSResourceAttributes::Value. More...

Public Member Functions

 ComparisonHelper (const Value &)
 
 ComparisonHelper (const ComparisonHelper &)=delete
 
ComparisonHelperoperator= (const ComparisonHelper &)=delete
 
template<typename T >
std::enable_if
< is_supported_type< T >
::value, bool >::type 
equals (const T &v) const
 
bool equals (const std::string &v) const
 
bool operator== (const ComparisonHelper &) const
 

Detailed Description

A helper class to avoid obscure comparisons of values which are supported by RCSResourceAttributes::Value caused by implicitly converting a value to a RCSResourceAttributes::Value.

See Also
Value
RCSResourceAttributes
is_supported_type

Constructor & Destructor Documentation

OIC::Service::RCSResourceAttributes::Value::ComparisonHelper::ComparisonHelper ( const Value )
OIC::Service::RCSResourceAttributes::Value::ComparisonHelper::ComparisonHelper ( const ComparisonHelper )
delete

Member Function Documentation

template<typename T >
std::enable_if< is_supported_type< T >::value, bool >::type OIC::Service::RCSResourceAttributes::Value::ComparisonHelper::equals ( const T &  v) const
inline
bool OIC::Service::RCSResourceAttributes::Value::ComparisonHelper::equals ( const std::string &  v) const
inline
ComparisonHelper& OIC::Service::RCSResourceAttributes::Value::ComparisonHelper::operator= ( const ComparisonHelper )
delete
bool OIC::Service::RCSResourceAttributes::Value::ComparisonHelper::operator== ( const ComparisonHelper ) const

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