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=nullptr)
 
 InterrogateElement (const InterrogateElement &copy)
 
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 &copy)
 
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 &copy)
 
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 &copy)
 
void output (std::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 28 of file interrogateElement.h.

Member Function Documentation

◆ input()

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

◆ 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 68 of file interrogateElement.I.

Referenced by InterrogateDatabase::add_element().

◆ output()

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

◆ 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 64 of file interrogateElement.cxx.

References IndexRemapper::map_from().


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