Changeset b0069a3 for doc/theses/jiada_liang_MMath/trait.tex
- Timestamp:
- Aug 7, 2024, 7:07:30 PM (42 hours ago)
- Branches:
- master
- Children:
- a8f44c8
- Parents:
- 92a0ee8 (diff), 9d3a4cc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/jiada_liang_MMath/trait.tex
r92a0ee8 rb0069a3 24 24 25 25 26 \section{Traits \ lstinline{CfaEnum} and \lstinline{TypedEnum}}26 \section{Traits \texorpdfstring{\lstinline{CfaEnum}{CfaEnum}} and \texorpdfstring{\lstinline{TypedEnum}}{TypedEnum}} 27 27 28 28 Traits @CfaEnum@ and @TypedEnum@ define the enumeration attributes: @label@, @posn@, @value@, and @Countof@. … … 84 84 85 85 Other types may work with traits @CfaEnum@ and @TypedEnum@, by supplying appropriate @label@, @posn@, and @value@ functions. 86 For example, \VRef[Figure]{f: GeneralizedEnumerationFormatter} extends a (possibly predefined) C enumeration to work with all the \CFA extensions.86 For example, \VRef[Figure]{f:ExtendCEnumeration} extends a (possibly predefined) C enumeration to work with all the \CFA extensions. 87 87 88 88 \begin{figure} … … 100 100 sout | format_enum( Cherry ); $\C{// "Cherry(c)"}$ 101 101 \end{cfa} 102 \caption{ Generalized Enumeration Formatter}103 \label{f: GeneralizedEnumerationFormatter}102 \caption{Extend C Enumeration to \CFA Enumeration} 103 \label{f:ExtendCEnumeration} 104 104 \end{figure} 105 105
Note: See TracChangeset
for help on using the changeset viewer.