mxnet
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
mxnet::runtime::MXNetPODValue_ Class Reference

Internal base class to handle conversion to POD values. More...

#include <packed_func.h>

Inheritance diagram for mxnet::runtime::MXNetPODValue_:
Inheritance graph
Collaboration diagram for mxnet::runtime::MXNetPODValue_:
Collaboration graph

Public Member Functions

 operator double () const
 
 operator int64_t () const
 
 operator uint64_t () const
 
 operator int () const
 
 operator bool () const
 
 operator void * () const
 
 operator ObjectRef () const
 
template<typename TObjectRef , typename = typename std::enable_if< std::is_class<TObjectRef>::value>::type>
bool IsObjectRef () const
 
int type_code () const
 
template<typename T >
T * ptr () const
 return handle as specific pointer type. More...
 

Protected Member Functions

 MXNetPODValue_ ()
 
 MXNetPODValue_ (MXNetValue value, int type_code)
 

Protected Attributes

MXNetValue value_
 The value. More...
 
int type_code_
 the type code More...
 

Friends

class MXNetArgsSetter
 
class MXNetRetValue
 

Detailed Description

Internal base class to handle conversion to POD values.

Constructor & Destructor Documentation

◆ MXNetPODValue_() [1/2]

mxnet::runtime::MXNetPODValue_::MXNetPODValue_ ( )
inlineprotected

◆ MXNetPODValue_() [2/2]

mxnet::runtime::MXNetPODValue_::MXNetPODValue_ ( MXNetValue  value,
int  type_code 
)
inlineprotected

Member Function Documentation

◆ IsObjectRef()

template<typename TObjectRef , typename = typename std::enable_if< std::is_class<TObjectRef>::value>::type>
bool mxnet::runtime::MXNetPODValue_::IsObjectRef ( ) const
inline

◆ operator bool()

mxnet::runtime::MXNetPODValue_::operator bool ( ) const
inline

◆ operator double()

mxnet::runtime::MXNetPODValue_::operator double ( ) const
inline

◆ operator int()

mxnet::runtime::MXNetPODValue_::operator int ( ) const
inline

◆ operator int64_t()

mxnet::runtime::MXNetPODValue_::operator int64_t ( ) const
inline

◆ operator ObjectRef()

mxnet::runtime::MXNetPODValue_::operator ObjectRef ( ) const
inline

◆ operator uint64_t()

mxnet::runtime::MXNetPODValue_::operator uint64_t ( ) const
inline

◆ operator void *()

mxnet::runtime::MXNetPODValue_::operator void * ( ) const
inline

◆ ptr()

template<typename T >
T* mxnet::runtime::MXNetPODValue_::ptr ( ) const
inline

return handle as specific pointer type.

Template Parameters
Tthe data type.
Returns
The pointer type.

◆ type_code()

int mxnet::runtime::MXNetPODValue_::type_code ( ) const
inline

Friends And Related Function Documentation

◆ MXNetArgsSetter

friend class MXNetArgsSetter
friend

◆ MXNetRetValue

friend class MXNetRetValue
friend

Member Data Documentation

◆ type_code_

int mxnet::runtime::MXNetPODValue_::type_code_
protected

the type code

◆ value_

MXNetValue mxnet::runtime::MXNetPODValue_::value_
protected

The value.


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