/** * @file division.h * @brief Division mnemonic: pop two elements and push their quotient. * @note Class is named "division" to avoid conflict with div_t from . * The visitor method is still called visit_div() for brevity. */ #ifndef DIVISION_H #define DIVISION_H #include "mne.h" /** * @brief Forward declaration of non-derivable class Division. * */ typedef struct _division_t division_t; /** * @brief Division vtable is identical to base Mne vtable (no new methods). * */ typedef mne_vtable_t division_vtable_t; /** * @brief Constructs a Division mnemonic. * * @return A newly allocated Division mnemonic. */ division_t* division_build_default(void); /** * @brief Destroys a Division mnemonic (via polymorphic destructor). * * @param self The Division mnemonic (can be NULL). * @note This is a convenience wrapper; normally destructed via mne_destroy(). */ void division_destroy(division_t *self); #endif /* DIVISION_H */