TupleValue Class Reference Data Types

#include <datatype.h>

详细描述

A TupleValue is returned by DataType::GetTuple() if the type represents a tuple data type. The members of the tuple value can be accessed through the functions of this class.

公共成员函数

template<typename T >
const T &  Get ( Int index, const TupleDataType &type) const
template<typename T >
T &  Get ( Int index, const TupleDataType &type)
const TupleValue GetTuple ( Int index, const TupleDataType &type) const
TupleValue GetTuple ( Int index, const TupleDataType &type)

成员函数文档编制

◆  Get() [1/2]

const T& Get ( Int   index ,
const TupleDataType type  
) const

Returns a reference to the value of the tuple member at index .

Template Parameters
T Type of the member.
参数
[in] index Index of the member.
[in] type Tuple data type of this TupleValue .
返回
Reference to the member value.

◆  Get() [2/2]

T& Get ( Int   index ,
const TupleDataType type  
)

Returns a reference to the value of the tuple member at index .

Template Parameters
T Type of the member.
参数
[in] index Index of the member.
[in] type Tuple data type of this TupleValue .
返回
Reference to the member value.

◆  GetTuple() [1/2]

const TupleValue & GetTuple ( Int   index ,
const TupleDataType type  
) const

Returns a reference to the tuple value of the tuple member at index . The corresponding member type has to be a tuple data type.

参数
[in] index Index of the member.
[in] type Tuple data type of this TupleValue .
返回
Reference to the member value.

◆  GetTuple() [2/2]

TupleValue & GetTuple ( Int   index ,
const TupleDataType type  
)

Returns a reference to the tuple value of the tuple member at index . The corresponding member type has to be a tuple data type.

参数
[in] index Index of the member.
[in] type Tuple data type of this TupleValue .
返回
Reference to the member value.