#include <datatypelib.h>
Member represents a member of struct-like types or function signatures. A member is just a pair of a type and a name.
Classes | |
struct | FastNameCompare |
Public Member Functions | |
Member ()=default | |
MAXON_IMPLICIT | Member (const DataType &t, const InternedId &n=InternedId()) |
MAXON_IMPLICIT | Member (DataType &&t, InternedId &&n=InternedId()) |
String | ToString (const FormatStatement *fmt=nullptr) const |
MAXON_OPERATOR_EQUALITY_HASHCODE (Member, type, name) | |
Bool | operator< (const Member &other) const |
MAXON_OPERATOR_INEQUALITY (Member) | |
Static Public Member Functions | |
template<typename T > | |
static Member | Create (const InternedId &n) |
static Result< void > | DescribeIO (const DataSerializeInterface &stream) |
Public Attributes | |
DataType | type |
InternedId | name |
|
default |
MAXON_IMPLICIT Member | ( | const DataType & | t, |
const InternedId & | n = InternedId() |
||
) |
MAXON_IMPLICIT Member | ( | DataType && | t, |
InternedId && | n = InternedId() |
||
) |
|
static |
String ToString | ( | const FormatStatement * | fmt = nullptr | ) | const |
MAXON_OPERATOR_INEQUALITY | ( | Member | ) |
|
static |
DataType type |
The type of the member.
InternedId name |
The name of the member, this may be empty where anonymous members are allowed.