#include <type.h>
|
| static std::string | string (const std::string &) noexcept |
| |
|
| enum class | Data {
COMPLEX
, FLOAT
, INTEGER
, UNSIGNED
,
BOOL
, STRING
, CHAR
, OTHER
,
UNKNOWN
} |
| | Data type specification. More...
|
| |
| enum class | Suffix {
NONE
, CONST_
, REFERENCE_
, VOLATILE_
,
UNKNOWN
} |
| | Type prefix. More...
|
| |
| using | Dim = int8_t |
| |
◆ Dim
◆ Data
Data type specification.
The type is specified with one character (e.g. 'c', 'f', etc.).
- Note
- There are characters reserved for simple representation:
- v = c1 : (column) complex vector;
- r = c2 : row complex vector (viewed as matrix);
- m = c2 : complex matrix;
- t = c3 : complex tensor (cube);
- d = f0 : float scalar (d);
| Enumerator |
|---|
| COMPLEX | c
|
| FLOAT | f
|
| INTEGER | i
|
| UNSIGNED | u
|
| BOOL | b
|
| STRING | s
|
| CHAR | h
|
| OTHER | o (reserved for future use)
|
| UNKNOWN | (unknown)
|
◆ Suffix
Type prefix.
These are additional attributes of the type
| Enumerator |
|---|
| NONE | (none)
|
| CONST_ | c
|
| REFERENCE_ | r
|
| VOLATILE_ | v (not implemented yet)
|
| UNKNOWN | |
◆ Type() [1/2]
◆ Type() [2/2]
| Type::Type |
( |
const std::string & |
str | ) |
|
◆ _getData()
◆ _getString()
| std::string Type::_getString |
( |
const std::string & |
elem_type | ) |
const |
|
privatenoexcept |
◆ _getSuffix()
◆ data()
◆ dim()
◆ isConst()
| bool Type::isConst |
( |
| ) |
const |
|
inlinenoexcept |
◆ isReference()
| bool Type::isReference |
( |
| ) |
const |
|
inlinenoexcept |
◆ isUnknown()
| bool Type::isUnknown |
( |
| ) |
const |
|
inlinenoexcept |
◆ string() [1/2]
| std::string Type::string |
( |
| ) |
const |
|
noexcept |
Get the C++ type name.
- Returns
- (std::string) C++ type name. Return empty string if it is unknown.
◆ string() [2/2]
| std::string Type::string |
( |
const std::string & |
str | ) |
|
|
inlinestaticnoexcept |
◆ _data
◆ _dim
◆ _suffix
The documentation for this class was generated from the following files: