mrdocs::Type

A possibly qualified type.

Synopsis

Declared in <mrdocs/Metadata/Type/TypeBase.hpp>

struct Type;

Description

This class represents a type that may have qualifiers (e.g. const, volatile).

This base class is used to store the kind of type. Derived classes are used to store the type information according to the kind.

Member Functions

NameDescription
asType asType overloads
namedSymbol Return the symbol named by this type.

Data Members

NameDescription
Constraints The constraints associated with the type
IsConst The const qualifier
IsPackExpansion Whether this is the pattern of a pack expansion.
IsVolatile The volatile qualifier
Kind The kind of Type this is

Protected Member Functions

NameDescription
Type [constructor]Construct with a concrete type kind.
~Type [destructor] [virtual]Virtual destructor for polymorphic base.

Non-Member Functions

NameDescription
innerTypeReturn the inner type.
innerTypeReturn the inner type.
innerTypePtrReturn the inner type.
innerTypePtrReturn the inner type.
toStringRender a type to a human-readable string.

Derived Classes

NameDescription
TypeCommonBase CRTP base that ties a concrete type to a fixed TypeKind.