17 INLINE InterrogateElement::
31 _make_property =
nullptr;
37 INLINE InterrogateElement::
45 INLINE
void InterrogateElement::
47 InterrogateComponent::operator = (copy);
49 _scoped_name = copy._scoped_name;
50 _comment = copy._comment;
52 _getter = copy._getter;
53 _setter = copy._setter;
54 _has_function = copy._has_function;
55 _clear_function = copy._clear_function;
56 _del_function = copy._del_function;
57 _insert_function = copy._insert_function;
58 _getkey_function = copy._getkey_function;
59 _length_function = copy._length_function;
60 _make_property = copy._make_property;
69 return (_flags & F_global) != 0;
75 INLINE
bool InterrogateElement::
76 has_scoped_name()
const {
77 return !_scoped_name.empty();
83 INLINE
const std::string &InterrogateElement::
84 get_scoped_name()
const {
91 INLINE
bool InterrogateElement::
93 return !_comment.empty();
99 INLINE
const std::string &InterrogateElement::
100 get_comment()
const {
107 INLINE TypeIndex InterrogateElement::
115 INLINE
bool InterrogateElement::
117 return (_flags & F_has_getter) != 0;
123 INLINE FunctionIndex InterrogateElement::
131 INLINE
bool InterrogateElement::
133 return (_flags & F_has_setter) != 0;
139 INLINE FunctionIndex InterrogateElement::
147 INLINE
bool InterrogateElement::
148 has_has_function()
const {
149 return (_flags & F_has_has_function) != 0;
155 INLINE FunctionIndex InterrogateElement::
156 get_has_function()
const {
157 return _has_function;
163 INLINE
bool InterrogateElement::
164 has_clear_function()
const {
165 return (_flags & F_has_clear_function) != 0;
171 INLINE FunctionIndex InterrogateElement::
172 get_clear_function()
const {
173 return _clear_function;
179 INLINE
bool InterrogateElement::
180 has_del_function()
const {
181 return (_flags & F_has_del_function) != 0;
187 INLINE FunctionIndex InterrogateElement::
188 get_del_function()
const {
189 return _del_function;
195 INLINE
bool InterrogateElement::
196 has_insert_function()
const {
197 return (_flags & F_has_insert_function) != 0;
203 INLINE FunctionIndex InterrogateElement::
204 get_insert_function()
const {
205 return _insert_function;
211 INLINE
bool InterrogateElement::
212 has_getkey_function()
const {
213 return (_flags & F_has_getkey_function) != 0;
219 INLINE FunctionIndex InterrogateElement::
220 get_getkey_function()
const {
221 return _getkey_function;
227 INLINE
bool InterrogateElement::
228 is_sequence()
const {
229 return (_flags & F_sequence) != 0;
235 INLINE FunctionIndex InterrogateElement::
236 get_length_function()
const {
237 return _length_function;
243 INLINE
bool InterrogateElement::
245 return (_flags & F_mapping) != 0;
249 INLINE std::ostream &
255 INLINE std::istream &
void input(std::istream &in)
Reads the data file as previously formatted by output().
bool is_global() const
Returns true if the element is marked as 'global'.
void output(std::ostream &out) const
Formats the InterrogateElement data for output to a data file.
The base class for things that are part of the interrogate database.
An internal representation of a data element, like a data member or a global variable.