Documentation
¶
Overview ¶
Package cpp contains the C++ code generator.
Index ¶
- func CallbackName(cha string) string
- func ChannelMsgType(cha string) string
- func ChannelValueType(cha string) string
- func ConvertFrom(cha string) string
- func ConvertTo(cha string) string
- func EnumField(variant any) string
- func Funcs() template.FuncMap
- func OutcomeEnum(outcome testlang.Outcome) string
- func StateEntry(id testlang.NodeID) string
- func StateEnum(id testlang.NodeID) string
- func StdType(rsType rstype.RsType) string
- func TestEnum(name string) string
- func Value(val value.Value) string
- type Context
- type Cpp
- type Generator
- type OnSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackName ¶
CallbackName gets the name of the callback for the channel with name cha.
func ChannelMsgType ¶
ChannelMsgType gets the name of the defined message type for the channel with name cha. This is usually a pointer to the value type.
func ChannelValueType ¶
ChannelValueType gets the name of the defined message type for the channel with name cha. This is usually a pointer to the value type.
func ConvertFrom ¶
ConvertFrom gets the from-conversion function name for channel with name cha.
func OutcomeEnum ¶
OutcomeEnum gets a reference to the enum member for outcome.
func StateEntry ¶
StateEntry gets the name of the entry method for the state with the given id.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is a C++ code generator.
Click to show internal directories.
Click to hide internal directories.