Dev:Built-in types - Built-in data types developer's guide
Synopsis
#include "gridlabd.h" bool var[, ...]; char8 var[, ...]; char32 var[, ...]; char256 var[, ...]; char1024 var[, ...]; complex var[, ...]; complex_array var[, ...]; Template:NEW30 double var[, ...]; double_array var[, ...]; Template:NEW30 enduse var[, ...]; enumeration var[, ...]; float var[, ...]; int8 var[, ...]; int16 var[, ...]; int32 var[, ...]; int64 var[, ...]; loadshape var[, ...]; object var[, ...]; set var[, ...]; timestamp var[, ...]; transform var[, ...]; randomvar var[, ...]; Template:NEW30
Remarks
Prior to Hassayampa (Version 3.0) there was no difference between the C and C++ implementations. Where noted, C++ specific information pertains only to versions as of Hassayampa (Version 3.0).
bool
- C
- This is a typedef to long C type.
- C++
- This is the basic bool C++ type.
char8
This is a typedef to char[9].
- C++ Template:NEW30
- This is a template based on charbuf<9>.
char32
This is a typedef to char[33].
- C++ Template:NEW30
- This is a template based on charbuf<33>.
char256
This is a typedef to char[257].
- C++ Template:NEW30
- This is a template based on charbuf<257>.
char1024
This is a typedef to char[1025].
- C++ Template:NEW30
- This is a template based on charbuf<1025>.
complex
- C
- This is a typedef to the struct s_complex.
- C++
- This is the class Dev:complex.
complex_array Template:NEW30
- C
- This is a typedef to the struct s_doublearray.
- C++
- This is the class double_array.
double
This is the C/C++ basic double C type.
double_array
- C
- This is a typedef to the struct s_doublearray.
- C++
- This is the class double_array.
enduse
This is the s_enduse structure.
enumeration
This is a typedef to the long C type.
float
This is the basic float C type.
int8
This is a typedef to the signed char C type.
int16
This is a typedef to the signed short C type.
int32
This is a typedef to the signed long C type.
int64
This is a typedef to the signed longlong C type.
loadshape
This is the s_loadshape structure.
object
This is the s_objectlist structure.
set
This is a typedef to the int64 C type.
timestamp
This is a typedef to the int64 C type.
transform
This is the s_transform structure.
randomvar
This is the s_randomvar structure.