ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
dateandtime.cpp
1// #################################################################################################
2// ALib C++ Library
3//
4// Copyright 2013-2024 A-Worx GmbH, Germany
5// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
6// #################################################################################################
8
9#if !DOXYGEN
11#endif // !DOXYGEN
12
13#if ALIB_CAMP
14
15#if !DOXYGEN
17#endif // !DOXYGEN
18
19//! @cond NO_DOX
20
21#define ARG0 (*args)
22#define ARG1 (*(args+1))
23#define INT(box) (box).Unbox<integer >()
24#define FLT(box) (box).Unbox<double >()
25#define DT(box) (box).Unbox<DateTime >()
26#define DUR(box) (box).Unbox<DateTime::Duration>()
27#define FUNC( name,...) Box name( Scope& scope, \
28 ArgIterator args, \
29 ArgIterator end ) \
30 { (void) scope; (void) args; (void) end; __VA_ARGS__ }
31
32#if !ALIB_FEAT_BOXING_BIJECTIVE_INTEGRALS
33# define TOINT(arg) arg
34#else
35# define TOINT(arg) static_cast<integer>(arg)
36#endif
37
38namespace alib { namespace expressions { namespace plugins {
39
40
41namespace {
42
43// #################################################################################################
44// ### Reverse generation: convert program constants to expression strings
45// #################################################################################################
46DOX_MARKER([DOX_EXPR_FToLiteral_3])
47void FToLiteral_Duration( const Box& constantValue, AString& expressionString )
48{
49 // Unbox the time span and convert to nanoseconds
50 auto value= constantValue.Unbox<DateTime::Duration>().InNanoseconds();
51
52 // Find the best matching magnitude
53 NString result;
54 if( value == 0 )
55 result= "Milliseconds";
56 else
57 {
58 result= "Nanoseconds";
59
60 if( (value % 1000) == 0 )
61 {
62 value/= 1000;
63 result= "Microseconds";
64 if( (value % 1000) == 0 )
65 {
66 value/= 1000;
67 result= "Milliseconds";
68 if( (value % 1000) == 0 )
69 {
70 value/= 1000;
71 result= "Seconds";
72 if( (value % 60) == 0 )
73 {
74 value/= 60;
75 result= "Minutes";
76 if( (value % 60) == 0 )
77 {
78 value/= 60;
79 result= "Hours";
80 if( (value % 24) == 0 )
81 {
82 value/= 24;
83 result= "Days";
84 }
85 }
86 }
87 }
88 }
89 }
90 }
91
92 // wWite the function argument
93 expressionString << result << '(' << value << ')' ;
94}
95DOX_MARKER([DOX_EXPR_FToLiteral_3])
96
97void FToLiteral_DateTime( const Box& constantValue, AString& expressionString )
98{
99 CalendarDateTime ct( constantValue.Unbox<DateTime>(), lang::Timezone::UTC );
100
101 expressionString << "UTCDateTime( " << ct.Year << ','
102 << ct.Month << ','
103 << ct.Day << ','
104 << ct.Hour << ','
105 << ct.Minute << ','
106 << ct.Second << ','
107 << ct.Millisecond << ')' ;
108}
109
110
111// #################################################################################################
112// ### DateTime
113// #################################################################################################
114FUNC( dateTime , auto qtyArgs= end-args;
115 return CalendarDateTime( static_cast<int>( INT(ARG0) ) , // year
116 ( qtyArgs> 1 ) ? static_cast<int>( INT(*(args+1)) ) : 1, // month
117 ( qtyArgs> 2 ) ? static_cast<int>( INT(*(args+2)) ) : 1, // day
118 ( qtyArgs> 3 ) ? static_cast<int>( INT(*(args+3)) ) : 0, // hour
119 ( qtyArgs> 4 ) ? static_cast<int>( INT(*(args+4)) ) : 0, // minute
120 ( qtyArgs> 5 ) ? static_cast<int>( INT(*(args+5)) ) : 0, // second
121 ( qtyArgs> 6 ) ? static_cast<int>( INT(*(args+6)) ) : 0 // millisecond
122 )
124 )
125
126FUNC( utcDateTime , auto qtyArgs= end-args;
127 return CalendarDateTime( static_cast<int>( INT(ARG0) ) , // year
128 ( qtyArgs> 1 ) ? static_cast<int>( INT(*(args+1)) ) : 1, // month
129 ( qtyArgs> 2 ) ? static_cast<int>( INT(*(args+2)) ) : 1, // day
130 ( qtyArgs> 3 ) ? static_cast<int>( INT(*(args+3)) ) : 0, // hour
131 ( qtyArgs> 4 ) ? static_cast<int>( INT(*(args+4)) ) : 0, // minute
132 ( qtyArgs> 5 ) ? static_cast<int>( INT(*(args+5)) ) : 0, // second
133 ( qtyArgs> 6 ) ? static_cast<int>( INT(*(args+6)) ) : 0 // millisecond
134 )
136 )
137
139 ct.Hour= ct.Minute= ct.Second= ct.Millisecond= 0;
140 return ct.Get(lang::Timezone::Local); )
141FUNC( utcToday , CalendarDateTime ct(DateTime(), lang::Timezone::UTC);
142 ct.Hour= ct.Minute= ct.Second= ct.Millisecond= 0;
143 return ct.Get(lang::Timezone::UTC); )
144FUNC( now , return DateTime(); )
145FUNC( age , return DT(ARG0).Age(); )
146FUNC( isOlderThan , return DT(ARG0).IsOlderThan( DUR(ARG1) ); )
147FUNC( year , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::Local).Year ); )
148FUNC( month , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::Local).Month ); )
149FUNC( day , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::Local).Day ); )
150FUNC( dayOfWeek , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::Local).DayOfWeek ); )
151FUNC( hour , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::Local).Hour ); )
152FUNC( minute , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::Local).Minute ); )
153FUNC( millisecond , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::Local).Millisecond); )
154FUNC( utcYear , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::UTC ).Year ); )
155FUNC( utcMonth , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::UTC ).Month ); )
156FUNC( utcDay , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::UTC ).Day ); )
157FUNC( utcDayOfWeek , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::UTC ).DayOfWeek ); )
158FUNC( utcHour , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::UTC ).Hour ); )
159FUNC( utcMinute , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::UTC ).Minute ); )
160FUNC( utcMillisecond , return TOINT(CalendarDateTime(DT(ARG0), lang::Timezone::UTC ).Millisecond); )
161
162
163// #################################################################################################
164// ### Duration
165// #################################################################################################
166
167
168// constructor functions
169FUNC( nanosecondsInt , return DateTime::Duration::FromNanoseconds ( INT(ARG0) ); )
170
171FUNC( microsecondsInt , return DateTime::Duration::FromAbsoluteMicroseconds ( INT(ARG0) ); )
172FUNC( millisecondsInt , return DateTime::Duration::FromAbsoluteMilliseconds ( INT(ARG0) ); )
173FUNC( secondsInt , return DateTime::Duration::FromAbsoluteSeconds ( INT(ARG0) ); )
174FUNC( minutesInt , return DateTime::Duration::FromAbsoluteMinutes ( INT(ARG0) ); )
175FUNC( hoursInt , return DateTime::Duration::FromAbsoluteHours ( INT(ARG0) ); )
176FUNC( daysInt , return DateTime::Duration::FromAbsoluteDays ( INT(ARG0) ); )
177FUNC( weeksInt , return DateTime::Duration::FromAbsoluteDays ( INT(ARG0) * 7 ); )
178FUNC( monthsInt , return DateTime::Duration::FromAbsoluteDays ( INT(ARG0) * 30 ); )
179FUNC( yearsInt , return DateTime::Duration::FromAbsoluteDays ( INT(ARG0) * 365 ); )
180
181FUNC( microsecondsFlt , return DateTime::Duration::FromMicroseconds ( FLT(ARG0) ); )
182FUNC( millisecondsFlt , return DateTime::Duration::FromMilliseconds ( FLT(ARG0) ); )
183FUNC( secondsFlt , return DateTime::Duration::FromSeconds ( FLT(ARG0) ); )
184FUNC( minutesFlt , return DateTime::Duration::FromMinutes ( FLT(ARG0) ); )
185FUNC( hoursFlt , return DateTime::Duration::FromHours ( FLT(ARG0) ); )
186FUNC( daysFlt , return DateTime::Duration::FromDays ( FLT(ARG0) ); )
187FUNC( weeksFlt , return DateTime::Duration::FromDays ( FLT(ARG0) * 7.0 ); )
188FUNC( monthsFlt , return DateTime::Duration::FromDays ( FLT(ARG0) * 30.0 ); )
189FUNC( yearsFlt , return DateTime::Duration::FromDays ( FLT(ARG0) * 365.0 ); )
190
191
192// conversion
193FUNC( inDays , return DUR(ARG0).InDays (); )
194FUNC( inHours , return DUR(ARG0).InHours (); )
195FUNC( inMinutes , return DUR(ARG0).InMinutes (); )
196FUNC( inSeconds , return DUR(ARG0).InSeconds (); )
197FUNC( inMilliseconds , return DUR(ARG0).InMilliseconds(); )
198FUNC( inMicroseconds , return DUR(ARG0).InMicroseconds(); )
199FUNC( inNanoseconds , return DUR(ARG0).InNanoseconds (); )
200FUNC( inHertz , return DUR(ARG0).InHertz(2); )
201
202// binary operators time stamp
203FUNC( add_DTDUR , return DT(ARG0) + DUR(ARG1); )
204FUNC( add_DURDT , return DT(ARG1) + DUR(ARG0); )
205FUNC( sub_DTDUR , return DT(ARG0) - DUR(ARG1); )
206FUNC( sub_DTDT , return DT(ARG0) - DT(ARG1); )
207FUNC( eqDT , return DT(ARG0) == DT(ARG1); )
208FUNC( neqDT , return DT(ARG0) != DT(ARG1); )
209FUNC( gtDT , return DT(ARG0) > DT(ARG1); )
210FUNC( gteqDT , return DT(ARG0) >= DT(ARG1); )
211FUNC( smDT , return DT(ARG0) < DT(ARG1); )
212FUNC( smeqDT , return DT(ARG0) <= DT(ARG1); )
213
214
215// binary operators time span
216FUNC( add_DURDUR , return DUR(ARG0) + DUR(ARG1); )
217FUNC( sub_DURDUR , return DUR(ARG0) - DUR(ARG1); )
218FUNC( mul_DURF , return DUR(ARG0) * FLT(ARG1); )
219FUNC( mul_FDUR , return DUR(ARG1) * FLT(ARG0); )
220FUNC( mul_DURI , return DUR(ARG0) * static_cast<int64_t>( INT(ARG1) ); )
221FUNC( mul_IDUR , return DUR(ARG1) * static_cast<int64_t>( INT(ARG0) ); )
222FUNC( div_DURF , return DUR(ARG0) / FLT(ARG1); )
223FUNC( div_DURI , return DUR(ARG0) / static_cast<int64_t>( INT(ARG1) ); )
224
225FUNC( eqDUR , return DUR(ARG0) == DUR(ARG1); )
226FUNC( neqDUR , return DUR(ARG0) != DUR(ARG1); )
227FUNC( gtDUR , return DUR(ARG0) > DUR(ARG1); )
228FUNC( gteqDUR , return DUR(ARG0) >= DUR(ARG1); )
229FUNC( smDUR , return DUR(ARG0) < DUR(ARG1); )
230FUNC( smeqDUR , return DUR(ARG0) <= DUR(ARG1); )
231
232
233// #################################################################################################
234// ### Duration
235// #################################################################################################
236Calculus::OperatorTableEntry binaryOpTableDateTime[] =
237{
248
257
264};
265
266} // anonymous namespace
267
268
269// #################################################################################################
270// ### DateAndTime - Constructor. Creates the hash map
271// #################################################################################################
273{
274DOX_MARKER([DOX_EXPR_FToLiteral_2])
275// register ToLiteral interface for class DateTime::Duration with boxing
277DOX_MARKER([DOX_EXPR_FToLiteral_2])
279}
280
282: Calculus( "ALib DateAndTime", compiler, CompilePriorities::DateAndTime )
283{
284 // load identifier/function names from resources
285 constexpr int tableSize= 58;
286 Token functionNames[tableSize];
287 Token::LoadResourcedTokens( EXPRESSIONS, "CPD", functionNames
288 ALIB_DBG(,tableSize) );
290 Token* descriptor= functionNames;
291
292 // Constant identifiers
293 ConstantIdentifiers=
294 {
295 // January to december
296 { *descriptor++, TOINT(1) }, { *descriptor++, TOINT( 2) }, { *descriptor++, TOINT( 3) }, { *descriptor++, TOINT( 4) },
297 { *descriptor++, TOINT(5) }, { *descriptor++, TOINT( 6) }, { *descriptor++, TOINT( 7) }, { *descriptor++, TOINT( 8) },
298 { *descriptor++, TOINT(9) }, { *descriptor++, TOINT(10) }, { *descriptor++, TOINT(11) }, { *descriptor++, TOINT(12) },
299
300 // Sunday to saturday
301 { *descriptor++, TOINT(0) }, { *descriptor++, TOINT(1) }, { *descriptor++, TOINT(2) }, { *descriptor++, TOINT( 3) },
302 { *descriptor++, TOINT(4) }, { *descriptor++, TOINT(5) }, { *descriptor++, TOINT(6) },
303 };
304
305 // functions
306 Functions=
307 {
308DOX_MARKER([DOX_EXPR_FToLiteral_1])
309 { *descriptor++, CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(nanosecondsInt ), &Types::Duration , CTI },
310DOX_MARKER([DOX_EXPR_FToLiteral_1])
311 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(microsecondsInt ), &Types::Duration , CTI },
312 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(microsecondsFlt ), &Types::Duration , CTI },
313 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(millisecondsInt ), &Types::Duration , CTI },
314 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(millisecondsFlt ), &Types::Duration , CTI },
315 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(secondsInt ), &Types::Duration , CTI },
316 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(secondsFlt ), &Types::Duration , CTI },
317 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(minutesInt ), &Types::Duration , CTI },
318 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(minutesFlt ), &Types::Duration , CTI },
319 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(hoursInt ), &Types::Duration , CTI },
320 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(hoursFlt ), &Types::Duration , CTI },
321 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(daysInt ), &Types::Duration , CTI },
322 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(daysFlt ), &Types::Duration , CTI },
323 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(weeksInt ), &Types::Duration , CTI },
324 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(weeksFlt ), &Types::Duration , CTI },
325 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(monthsInt ), &Types::Duration , CTI },
326 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(monthsFlt ), &Types::Duration , CTI },
327 { *descriptor , CALCULUS_SIGNATURE(Signatures::I ), CALCULUS_CALLBACK(yearsInt ), &Types::Duration , CTI },
328 { *descriptor++, CALCULUS_SIGNATURE(Signatures::F ), CALCULUS_CALLBACK(yearsFlt ), &Types::Duration , CTI },
329
330 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inDays ), &Types::Float , CTI },
331 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inHours ), &Types::Float , CTI },
332 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inMinutes ), &Types::Float , CTI },
333 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inSeconds ), &Types::Float , CTI },
334 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inMilliseconds ), &Types::Float , CTI },
335 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inMicroseconds ), &Types::Float , CTI },
336 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inNanoseconds ), &Types::Float , CTI },
337 { *descriptor++, CALCULUS_SIGNATURE(Signatures::Dur ), CALCULUS_CALLBACK(inHertz ), &Types::Float , CTI },
338 { *descriptor++, CALCULUS_SIGNATURE(Signatures::IVar), CALCULUS_CALLBACK(dateTime ), &Types::DateTime , CTI },
339 { *descriptor++, CALCULUS_SIGNATURE(Signatures::IVar), CALCULUS_CALLBACK(utcDateTime ), &Types::DateTime , CTI },
340 { *descriptor++, CALCULUS_SIGNATURE(nullptr ), CALCULUS_CALLBACK(now ), &Types::DateTime , ETI },
341 { *descriptor++, CALCULUS_SIGNATURE(nullptr ), CALCULUS_CALLBACK(today ), &Types::DateTime , ETI },
342 { *descriptor++, CALCULUS_SIGNATURE(nullptr ), CALCULUS_CALLBACK(utcToday ), &Types::DateTime , ETI },
343 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(age ), &Types::Duration , ETI },
344 { *descriptor++, CALCULUS_SIGNATURE(Signatures::DDur), CALCULUS_CALLBACK(isOlderThan ), &Types::Boolean , ETI },
345 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(year ), &Types::Integer , CTI },
346 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(month ), &Types::Integer , CTI },
347 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(day ), &Types::Integer , CTI },
348 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(dayOfWeek ), &Types::Integer , CTI },
349 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(hour ), &Types::Integer , CTI },
350 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(minute ), &Types::Integer , CTI },
351 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(millisecond ), &Types::Integer , CTI },
352 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(utcYear ), &Types::Integer , CTI },
353 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(utcMonth ), &Types::Integer , CTI },
354 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(utcDay ), &Types::Integer , CTI },
355 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(utcDayOfWeek ), &Types::Integer , CTI },
356 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(utcHour ), &Types::Integer , CTI },
357 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(utcMinute ), &Types::Integer , CTI },
358 { *descriptor++, CALCULUS_SIGNATURE(Signatures::D ), CALCULUS_CALLBACK(utcMillisecond ), &Types::Integer , CTI },
359 };
360
361 // binary operators
362 AddOperators( binaryOpTableDateTime );
363
364 ALIB_ASSERT_ERROR( descriptor - functionNames == tableSize, "EXPR",
365 "Descriptor table size mismatch: Consumed {} descriptors, {} available.",
366 descriptor - functionNames, tableSize )
368}
369
370
371}}} // namespace [alib::expressions::detail]
372
373#undef BOL
374#undef INT
375#undef FLT
376#undef FUNC
377#undef FUNC
378#undef UN_MAP_ENTRY
379#undef BIN_MAP_ENTRY
380#undef BIN_ALIAS_ENTRY
381
382#endif // ALIB_CAMP
383
384//! @endcond
int Hour
The calendar hour (0..23).
Definition calendar.hpp:60
ALIB_API DateTime Get(lang::Timezone timezone=lang::Timezone::Local) const
Definition calendar.cpp:82
#define A_CHAR(STR)
#define ALIB_WARNINGS_RESTORE
Definition alib.hpp:849
#define CALCULUS_CALLBACK(func)
Definition calculus.hpp:29
#define CALCULUS_SIGNATURE(BoxPointerArray)
Definition calculus.hpp:36
#define ALIB_ASSERT_ERROR(cond,...)
Definition alib.hpp:1271
#define ALIB_WARNINGS_ALLOW_UNSAFE_BUFFER_USAGE
Definition alib.hpp:760
#define ALIB_DBG(...)
Definition alib.hpp:390
void BootstrapRegister(typename TFDecl::Signature function)
Definition boxing.hpp:112
@ DateAndTime
Collection of date and time functions based on alib::time.
@ Local
Denotes local time.
@ UTC
Denotes UTC (coordinated universal time).
Definition alib.cpp:69
expressions::plugins::Calculus Calculus
Type alias in namespace alib.
Definition calculus.hpp:851
strings::TString< nchar > NString
Type alias in namespace alib.
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace alib.
lang::system::CalendarDateTime CalendarDateTime
Type alias in namespace alib.
Definition calendar.hpp:743
time::DateTime DateTime
Type alias in namespace alib.
Definition datetime.hpp:228
strings::util::Token Token
Type alias in namespace alib.
Definition token.hpp:551
boxing::Box Box
Type alias in namespace alib.
expressions::Compiler Compiler
Type alias in namespace alib.
Definition compiler.hpp:553
static ALIB_API Box DateTime
Sample type-box for date and time values of type DateTime).
static ALIB_API Box Duration
Sample type-box for values of type DateTime::Duration).
static ALIB_API Box Integer
Sample type-box for integer types. (Precisely for type integer.)
static ALIB_API Box Boolean
Sample type-box for C++ type bool.
static ALIB_API Box Float
Sample type-box for C++ type double.
const std::tuple< String, Type, Type, CallbackDecl, Type, CTInvokable > OperatorTableEntry
Definition calculus.hpp:473
static constexpr CTInvokable CTI
Definition calculus.hpp:249
ALIB_API DateAndTime(Compiler &compiler)