ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::expressions::Types Struct Reference

Description:

This struct holds static sample values for the built-in supported types of module ALib Expressions.

These boxes are mainly used by built-in compiler plug-ins to denote the corresponding type. Customized plug-ins are proposed to use these boxes to denote internal types as well and besides that to define static sample boxes for each custom type that they introduce in a similar fashion.

Note
Of course, just sample any value might be passed where a type is expected, but using these pre-defined objects is more efficient in respect to code size. In respect to execution performance, the sample values are rather irrelevant, as those are used almost exclusively at expression compile-time.

Definition at line 204 of file expressionscamp.inl.

Public Static Field Index:

static Box Boolean = false
 Sample type-box for C++ type bool.
static Box DateTime = time::DateTime::FromRaw(0)
 Sample type-box for date and time values of type DateTime).
static Box Duration = time::DateTime::Duration::FromNanoseconds(0)
static Box Float = double(0.0)
 Sample type-box for C++ type double.
static Box Integer = integer(0)
 Sample type-box for integer types. (Precisely for type integer.).
static Box String = A_CHAR("")
static Box Void = nullptr
 Sample type-box for C++ type void.

Field Details:

◆ Boolean

Box alib::expressions::Types::Boolean = false
static

Sample type-box for C++ type bool.

Definition at line 210 of file expressionscamp.inl.

◆ DateTime

Box alib::expressions::Types::DateTime = time::DateTime::FromRaw(0)
static

Sample type-box for date and time values of type DateTime).

Definition at line 224 of file expressionscamp.inl.

◆ Duration

Box alib::expressions::Types::Duration = time::DateTime::Duration::FromNanoseconds(0)
static

Sample type-box for values of type Duration (which class DateTime inherits from its base).

Definition at line 228 of file expressionscamp.inl.

◆ Float

Box alib::expressions::Types::Float = double(0.0)
static

Sample type-box for C++ type double.

Definition at line 216 of file expressionscamp.inl.

◆ Integer

Box alib::expressions::Types::Integer = integer(0)
static

Sample type-box for integer types. (Precisely for type integer.).

Definition at line 213 of file expressionscamp.inl.

◆ String

Box alib::expressions::Types::String = A_CHAR("")
static

Sample type-box for string types. While internally, ALib class String is used, due to the magic of module ALib Boxing, almost any custom string type is compatible, including of course std::string.

Definition at line 221 of file expressionscamp.inl.

◆ Void

Box alib::expressions::Types::Void = nullptr
static

Sample type-box for C++ type void.

Definition at line 207 of file expressionscamp.inl.


The documentation for this struct was generated from the following files: