Replace typedef'ed types with C++ PODs #2541
Labels
I: Internal API
Changes were introduced in basic internal workings of the simulator that developers need to know
S: Normal
Handle this with default priority
stale
Automatic marker for inactivity, please have another look here
T: Enhancement
New functionality, model or documentation
Projects
This issue is a follow-up to #2215.
After a thorough discussion during the Hackathon we came to the following conclusions:
weight
and partiallydelay
) are only used to index into containers. Therefore,size_t
is the suitable POD where currentlytypedef
sindex
,thread
,port
,rport
, ... are used.typedef
s today (int
,long
), we only use value -1 from the negative range, wasting value range. Use ofsize_t
would avoid this.Thread
,Delay
, ....typedef
ed types with PODs, using unsigned PODs throughout.std::pair<>
combining the value and a boolean flag indicating validity.std::numeric_limits<POD>::max()
as the invalid value.nest-simulator/nestkernel/nest_types.h
Lines 81 to 105 in e49be2a
The text was updated successfully, but these errors were encountered: