Functions: Support accessing socket index of MFSocket

This commit is contained in:
2020-07-08 15:06:04 +02:00
parent 34d175f372
commit 2b9d62b73a

View File

@@ -148,6 +148,7 @@ class MFSocket : NonCopyable, NonMovable {
StringRefNull name() const;
uint id() const;
uint index() const;
const MFDataType &data_type() const;
@@ -398,6 +399,11 @@ inline uint MFSocket::id() const
return id_;
}
inline uint MFSocket::index() const
{
return index_;
}
inline const MFDataType &MFSocket::data_type() const
{
return data_type_;