25 class menu_common_amorph :
public amorph<menu_common_base> {};
34 const astring &text,
const astring &description)
36 _text(new astring(text)),
37 _description(new astring(description))
45 _description(new astring)
56 if (
this == &to_copy)
return *
this;
57 *_triggers = *to_copy._triggers;
58 *_text = *to_copy._text;
59 *_description = *to_copy._description;
77 : _title(new astring(title)),
79 _items(new menu_common_amorph),
80 _menus(new menu_common_amorph)
114 if (!to_invoke)
return;
115 *_items += to_invoke;
121 return dynamic_cast<menu_item *
>(_items->borrow(index));
127 _items->zap(index, index);
134 _items->borrow(index)->enable(
enable);
149 return dynamic_cast<menu_base *
>(_menus->borrow(index));
155 _menus->zap(index, index);
162 _menus->borrow(index)->enable(
enable);
#define formal(parameter)
This macro just eats what it's passed; it marks unused formal parameters.
#define NULL_POINTER
The value representing a pointer to nothing.
#define bounds_return(value, low, high, to_return)
Verifies that "value" is between "low" and "high", inclusive.
void WHACK(contents *&ptr)
deletion with clearing of the pointer.
string_array(1, math_list))) const char *addr_list[]