uiAction_s Struct Reference

Atomic element to store UI scripts The parser use this atom to translate script action into many trees of actions. One function is one tree, and when we call this function, the tree is executed. More...

#include <ui_actions.h>

Collaboration diagram for uiAction_s:
Collaboration graph
[legend]

Data Fields

short type
 Define the type of the element, it can be a command, an operator, or a value.
short subType
 Some operators/commands/values can use it to store info about the content.
union {
   struct {
      struct uiAction_s *   left
      struct uiAction_s *   right
   }   nonTerminal
 Stores a none terminal action (a command or an operator).
   struct {
      uiTerminalActionData_t   d1
      uiTerminalActionData_t   d2
   }   terminal
 Stores a terminal action (a value, which must be a leaf in the tree).
d
 Stores data about the action.
struct uiAction_snext
 Next element in the action list.

Detailed Description

Atomic element to store UI scripts The parser use this atom to translate script action into many trees of actions. One function is one tree, and when we call this function, the tree is executed.

An atom can be a command, an operator, or a value:

Merge terminal and nonTerminal, this way is finally stupid. Left can be terminal and right can be non terminal, then the structure make non sens and can create hidden bugs.

Definition at line 143 of file ui_actions.h.


Field Documentation

union { ... } uiAction_s::d

Definition at line 174 of file ui_actions.h.

Definition at line 175 of file ui_actions.h.

Definition at line 164 of file ui_actions.h.

struct { ... } uiAction_s::nonTerminal

Definition at line 165 of file ui_actions.h.

Some operators/commands/values can use it to store info about the content.

Definition at line 153 of file ui_actions.h.

struct { ... } uiAction_s::terminal

The documentation for this struct was generated from the following file:

Generated by  doxygen 1.6.2