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=NULL) | |
InterrogateElement (const InterrogateElement ©) | |
const string & | get_comment () const |
FunctionIndex | get_getter () const |
const string & | get_scoped_name () const |
FunctionIndex | get_setter () const |
TypeIndex | get_type () const |
bool | has_comment () const |
bool | has_getter () const |
bool | has_scoped_name () const |
bool | has_setter () const |
void | input (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... | |
void | operator= (const InterrogateElement ©) |
void | output (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... | |
![]() | |
InterrogateComponent (InterrogateModuleDef *def=NULL) | |
InterrogateComponent (const InterrogateComponent ©) | |
const 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 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 (istream &in) |
Reads the data file as previously formatted by output(). More... | |
void | operator= (const InterrogateComponent ©) |
void | output (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 29 of file interrogateElement.h.
void InterrogateElement::input | ( | istream & | in | ) |
Reads the data file as previously formatted by output().
Definition at line 44 of file interrogateElement.cxx.
References InterrogateDatabase::get_file_minor_version(), 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 65 of file interrogateElement.I.
Referenced by InterrogateDatabase::add_element().
void InterrogateElement::output | ( | ostream & | out | ) | const |
Formats the InterrogateElement data for output to a data file.
Definition at line 27 of file interrogateElement.cxx.
References 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 62 of file interrogateElement.cxx.
References IndexRemapper::map_from().