1 /* Inline Functions for options.{h,cc}.
3 Copyright (C) 1989-1998, 2000 Free Software Foundation, Inc.
4 written by Douglas C. Schmidt (schmidt@ics.uci.edu)
6 This file is part of GNU GPERF.
8 GNU GPERF is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 1, or (at your option)
13 GNU GPERF is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU GPERF; see the file COPYING. If not, write to the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
25 /* TRUE if option enable, else FALSE. */
27 Options::operator[] (Option_Type option)
29 T (Trace t ("Options::operator[]");)
30 return option_word & option;
33 /* Enables option OPT. */
35 Options::operator = (enum Option_Type opt)
37 T (Trace t ("Options::operator=");)
41 /* Disables option OPT. */
43 Options::operator != (enum Option_Type opt)
45 T (Trace t ("Options::operator!=");)
49 /* Initializes the key Iterator. */
53 T (Trace t ("Options::reset");)
57 /* Returns current key_position and advance index. */
61 T (Trace t ("Options::get");)
62 return key_positions[key_pos++];
65 /* Sets the size of the table size. */
67 Options::set_asso_max (int r)
69 T (Trace t ("Options::set_asso_max");)
73 /* Returns the size of the table size. */
75 Options::get_asso_max (void)
77 T (Trace t ("Options::get_asso_max");)
81 /* Returns total distinct key positions. */
83 Options::get_max_keysig_size (void)
85 T (Trace t ("Options::get_max_keysig_size");)
86 return total_keysig_size;
89 /* Sets total distinct key positions. */
91 Options::set_keysig_size (int size)
93 T (Trace t ("Options::set_keysig_size");)
94 total_keysig_size = size;
97 /* Returns the jump value. */
99 Options::get_jump (void)
101 T (Trace t ("Options::get_jump");)
105 /* Returns the generated function name. */
107 Options::get_function_name (void)
109 T (Trace t ("Options::get_function_name");)
110 return function_name;
113 /* Returns the keyword key name. */
115 Options::get_key_name (void)
117 T (Trace t ("Options::get_key_name");)
121 /* Returns the struct initializer suffix. */
123 Options::get_initializer_suffix (void)
125 T (Trace t ("Options::get_initializer_suffix");)
126 return initializer_suffix;
129 /* Returns the hash function name. */
131 Options::get_hash_name (void)
133 T (Trace t ("Options::get_hash_name");)
137 /* Returns the hash table array name. */
139 Options::get_wordlist_name (void)
141 T (Trace t ("Options::get_wordlist_name");)
142 return wordlist_name;
145 /* Returns the generated class name. */
147 Options::get_class_name (void)
149 T (Trace t ("Options::get_class_name");)
153 /* Returns the initial associated character value. */
155 Options::initial_value (void)
157 T (Trace t ("Options::initial_value");)
158 return initial_asso_value;
161 /* Returns the iterations value. */
163 Options::get_iterations (void)
165 T (Trace t ("Options::get_iterations");)
169 /* Returns the string used to delimit keywords from other attributes. */
171 Options::get_delimiter ()
173 T (Trace t ("Options::get_delimiter");)
177 /* Gets the total number of switch statements to generate. */
179 Options::get_total_switches ()
181 T (Trace t ("Options::get_total_switches");)
182 return total_switches;