Changeset 68ea8d2
- Timestamp:
- Jul 16, 2024, 10:35:09 PM (9 months ago)
- Branches:
- master
- Children:
- 97f9619
- Parents:
- 09dd830
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified libcfa/src/enum.cfa ¶
r09dd830 r68ea8d2 37 37 } 38 38 39 forall( istype & | istream( istype ), E | CfaEnum( E ) )39 forall( istype & | istream( istype ), E | CfaEnum( E )| Serial(E) ) 40 40 istype & ?|?( istype & is, E & e ) { 41 41 // fprintf( stderr, "here0\n" ); -
TabularUnified libcfa/src/enum.hfa ¶
r09dd830 r68ea8d2 34 34 // }; 35 35 36 forall( E | Serial( E )) trait CfaEnum {36 forall( E ) trait CfaEnum { 37 37 const char * label( E e ); 38 38 unsigned int posn( E e ); … … 45 45 // I/O 46 46 47 forall( istype & | istream( istype ), E | CfaEnum( E ) )47 forall( istype & | istream( istype ), E | CfaEnum( E ) | Serial(E) ) 48 48 istype & ?|?( istype &, E & ); 49 49 … … 54 54 55 55 static inline 56 forall( E | CfaEnum( E) ) {56 forall( E | Serial(E) | CfaEnum(E) ) { 57 57 int ?==?( E l, E r ) { return posn( l ) == posn( r ); } // relational operators 58 58 int ?!=?( E l, E r ) { return posn( l ) != posn( r ); }
Note: See TracChangeset
for help on using the changeset viewer.