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

A Helper class to identify types of Value. More...

Public Member Functions

 Type (const Type &)=default
 
 Type (Type &&)=default
 
Typeoperator= (const Type &)=default
 
Typeoperator= (Type &&)=default
 
TypeId getId () const BOOST_NOEXCEPT
 Returns type identifier. More...
 

Static Public Member Functions

static TypeId getBaseTypeId (const Type &t) BOOST_NOEXCEPT
 Returns the type identifier of a base type of sequence. More...
 
static size_t getDepth (const Type &t) BOOST_NOEXCEPT
 Returns the depth of a type. More...
 
template<typename T >
static constexpr Type typeOf (const T &) BOOST_NOEXCEPT
 Factory method to create Type instance from T. More...
 
template<typename T >
static constexpr Type typeOf () BOOST_NOEXCEPT
 Factory method to create Type instance from T. More...
 

Related Functions

(Note that these are not member functions.)

bool operator== (const RCSResourceAttributes::Type &, const RCSResourceAttributes::Type &) BOOST_NOEXCEPT
 
bool operator!= (const RCSResourceAttributes::Type &, const RCSResourceAttributes::Type &) BOOST_NOEXCEPT
 

Detailed Description

A Helper class to identify types of Value.

See Also
RCSResourceAttributes
Value
TypeId

Constructor & Destructor Documentation

OIC::Service::RCSResourceAttributes::Type::Type ( const Type )
default
OIC::Service::RCSResourceAttributes::Type::Type ( Type &&  )
default

Member Function Documentation

static TypeId OIC::Service::RCSResourceAttributes::Type::getBaseTypeId ( const Type t)
static

Returns the type identifier of a base type of sequence.

For non sequence types, it is equivalent to calling getId.

Returns
Identifier of type.
See Also
getDepth
getId
static size_t OIC::Service::RCSResourceAttributes::Type::getDepth ( const Type t)
static

Returns the depth of a type.

The return will be zero for non sequence types.

See Also
getBaseTypeId
TypeId OIC::Service::RCSResourceAttributes::Type::getId ( ) const

Returns type identifier.

Returns
Identifier of type.
See Also
getBaseTypeId
Type& OIC::Service::RCSResourceAttributes::Type::operator= ( const Type )
default
Type& OIC::Service::RCSResourceAttributes::Type::operator= ( Type &&  )
default
template<typename T >
static constexpr Type OIC::Service::RCSResourceAttributes::Type::typeOf ( const T &  )
inlinestatic

Factory method to create Type instance from T.

Returns
An instance that has TypeId for T.
Note
T must be supported by Value. Otherwise, it won't compile.
See Also
is_supported_type
template<typename T >
static constexpr Type OIC::Service::RCSResourceAttributes::Type::typeOf ( )
inlinestatic

Factory method to create Type instance from T.

Returns
An instance that has TypeId for T.
Note
T must be supported by Value. Otherwise, it won't compile.
See Also
is_supported_type

Friends And Related Function Documentation

bool operator!= ( const RCSResourceAttributes::Type ,
const RCSResourceAttributes::Type  
)
related

Checks if the objects are not equal, that is, whether types are not exactly same.

Returns
true if the objects are not equal, false otherwise.
bool operator== ( const RCSResourceAttributes::Type ,
const RCSResourceAttributes::Type  
)
related

Checks if the objects are equal, that is, whether types are exactly same.

Returns
true if the objects are equal, false otherwise.

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