An internal representation of a data element, like a data member or a global variable. More...
#include "interrogateElement.h"
Public Member Functions | |
InterrogateElement (InterrogateModuleDef *def=nullptr) | |
InterrogateElement (const InterrogateElement ©) | |
FunctionIndex | get_clear_function () const |
const std::string & | get_comment () const |
FunctionIndex | get_del_function () const |
FunctionIndex | get_getkey_function () const |
FunctionIndex | get_getter () const |
FunctionIndex | get_has_function () const |
FunctionIndex | get_insert_function () const |
FunctionIndex | get_length_function () const |
const std::string & | get_scoped_name () const |
FunctionIndex | get_setter () const |
TypeIndex | get_type () const |
bool | has_clear_function () const |
bool | has_comment () const |
bool | has_del_function () const |
bool | has_getkey_function () const |
bool | has_getter () const |
bool | has_has_function () const |
bool | has_insert_function () const |
bool | has_scoped_name () const |
bool | has_setter () const |
void | input (std::istream &in) |
Reads the data file as previously formatted by output(). More... | |
bool | is_global () const |
Returns true if the element is marked as 'global'. More... | |
bool | is_mapping () const |
bool | is_sequence () const |
void | operator= (const InterrogateElement ©) |
void | output (std::ostream &out) const |
Formats the InterrogateElement data for output to a data file. More... | |
void | remap_indices (const IndexRemapper &remap) |
Remaps all internal index numbers according to the indicated map. More... | |
Public Member Functions inherited from InterrogateComponent | |
InterrogateComponent (InterrogateModuleDef *def=nullptr) | |
InterrogateComponent (const InterrogateComponent ©) | |
const std::string & | get_alt_name (int n) const |
const char * | get_library_name () const |
Returns the library name, if it is known, or NULL if it is not. More... | |
const char * | get_module_name () const |
Returns the module name, if it is known, or NULL if it is not. More... | |
const std::string & | get_name () const |
int | get_num_alt_names () const |
bool | has_library_name () const |
Returns true if we have a known library name, false if we do not. More... | |
bool | has_module_name () const |
Returns true if we have a known module name, false if we do not. More... | |
bool | has_name () const |
void | input (std::istream &in) |
Reads the data file as previously formatted by output(). More... | |
void | operator= (const InterrogateComponent ©) |
void | output (std::ostream &out) const |
Formats the component for output to a data file. More... | |
Friends | |
class | InterrogateBuilder |
An internal representation of a data element, like a data member or a global variable.
Definition at line 28 of file interrogateElement.h.
void InterrogateElement::input | ( | std::istream & | in | ) |
Reads the data file as previously formatted by output().
Definition at line 43 of file interrogateElement.cxx.
References InterrogateDatabase::get_file_minor_version(), idf_input_string(), and InterrogateComponent::input().
|
inline |
Returns true if the element is marked as 'global'.
This means only that it should appear in the global element list.
Definition at line 68 of file interrogateElement.I.
Referenced by InterrogateDatabase::add_element().
void InterrogateElement::output | ( | std::ostream & | out | ) | const |
Formats the InterrogateElement data for output to a data file.
Definition at line 23 of file interrogateElement.cxx.
References idf_output_string(), and InterrogateComponent::output().
void InterrogateElement::remap_indices | ( | const IndexRemapper & | remap | ) |
Remaps all internal index numbers according to the indicated map.
This called from InterrogateDatabase::remap_indices().
Definition at line 64 of file interrogateElement.cxx.
References IndexRemapper::map_from().