Panda3D
Public Member Functions | Friends | List of all members
InterrogateElement Class Reference

An internal representation of a data element, like a data member or a global variable. More...

#include "interrogateElement.h"

Inheritance diagram for InterrogateElement:
InterrogateComponent

Public Member Functions

 InterrogateElement (InterrogateModuleDef *def=NULL)
 
 InterrogateElement (const InterrogateElement &copy)
 
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 &copy)
 
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...
 
- Public Member Functions inherited from InterrogateComponent
 InterrogateComponent (InterrogateModuleDef *def=NULL)
 
 InterrogateComponent (const InterrogateComponent &copy)
 
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 &copy)
 
void output (ostream &out) const
 Formats the component for output to a data file. More...
 

Friends

class InterrogateBuilder
 

Detailed Description

An internal representation of a data element, like a data member or a global variable.

Definition at line 29 of file interrogateElement.h.

Member Function Documentation

◆ input()

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(), InterrogateComponent::input(), and remap_indices().

Referenced by is_global(), and output().

◆ is_global()

bool InterrogateElement::is_global ( ) const
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.

References input(), and output().

Referenced by InterrogateDatabase::add_element().

◆ output()

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 input(), and InterrogateComponent::output().

Referenced by is_global().

◆ remap_indices()

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().

Referenced by input(), and InterrogateDatabase::read().


The documentation for this class was generated from the following files: