Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

InterrogateManifest Class Reference

An internal representation of a manifest constant. More...

#include <interrogateManifest.h>

Inheritance diagram for InterrogateManifest:

InterrogateComponent List of all members.

Public Member Functions

 InterrogateManifest (InterrogateModuleDef *def=NULL)
 InterrogateManifest (const InterrogateManifest &copy)
void operator= (const InterrogateManifest &copy)
const string & get_definition () const
bool has_type () const
TypeIndex get_type () const
bool has_getter () const
FunctionIndex get_getter () const
bool has_int_value () const
int get_int_value () const
void output (ostream &out) const
 Formats the InterrogateManifest data for output to a data file.

void input (istream &in)
 Reads the data file as previously formatted by output().

void remap_indices (const IndexRemapper &remap)
 Remaps all internal index numbers according to the indicated map.

bool has_library_name () const
 Returns true if we have a known library name, false if we do not.

const char * get_library_name () const
 Returns the library name, if it is known, or NULL if it is not.

bool has_module_name () const
 Returns true if we have a known module name, false if we do not.

const char * get_module_name () const
 Returns the module name, if it is known, or NULL if it is not.

bool has_name () const
const string & get_name () const

Private Types

enum  Flags { F_has_type = 0x0001, F_has_getter = 0x0002, F_has_int_value = 0x0004 }

Private Attributes

int _flags
string _definition
int _int_value
TypeIndex _type
FunctionIndex _getter

Friends

class InterrogateBuilder

Detailed Description

An internal representation of a manifest constant.

Definition at line 38 of file interrogateManifest.h.


Member Enumeration Documentation

enum InterrogateManifest::Flags [private]
 

Enumeration values:
F_has_type 
F_has_getter 
F_has_int_value 

Definition at line 58 of file interrogateManifest.h.


Constructor & Destructor Documentation

InterrogateManifest::InterrogateManifest InterrogateModuleDef def = NULL  )  [inline]
 

Definition at line 31 of file interrogateManifest.I.

References _getter, and _type.

InterrogateManifest::InterrogateManifest const InterrogateManifest &  copy  )  [inline]
 

Definition at line 48 of file interrogateManifest.I.

References _definition, _flags, _getter, _int_value, _type, INLINE, and InterrogateComponent::operator=().


Member Function Documentation

const string & InterrogateManifest::get_definition  )  const [inline]
 

Definition at line 78 of file interrogateManifest.I.

References _flags, and F_has_type.

Referenced by interrogate_manifest_name().

FunctionIndex InterrogateManifest::get_getter  )  const [inline]
 

Definition at line 126 of file interrogateManifest.I.

References _int_value, and INLINE.

Referenced by interrogate_manifest_has_getter().

int InterrogateManifest::get_int_value  )  const [inline]
 

Definition at line 150 of file interrogateManifest.I.

Referenced by interrogate_manifest_has_int_value().

const char * InterrogateComponent::get_library_name  )  const [inline, inherited]
 

Returns the library name, if it is known, or NULL if it is not.

This is the name of the library that this particular component was built into. Typically this will be a one-to-one correspondance with an invocation of the interrogate command. Typical examples are "libutil" and "liblinmath".

Definition at line 98 of file interrogateComponent.I.

References InterrogateComponent::_def, INLINE, InterrogateModuleDef::module_name, and NULL.

Referenced by InterrogateComponent::operator=().

const char * InterrogateComponent::get_module_name  )  const [inline, inherited]
 

Returns the module name, if it is known, or NULL if it is not.

This is the name of the module that this particular component is associated with. This is a higher grouping than library. Typical examples are "panda" and "pandaegg".

Definition at line 138 of file interrogateComponent.I.

Referenced by interrogate_function_has_module_name(), and interrogate_type_has_module_name().

const string & InterrogateComponent::get_name  )  const [inline, inherited]
 

Definition at line 165 of file interrogateComponent.I.

Referenced by interrogate_function_python_wrapper(), interrogate_get_function(), interrogate_get_manifest_by_name(), interrogate_get_type_by_true_name(), and interrogate_manifest_get_int_value().

TypeIndex InterrogateManifest::get_type  )  const [inline]
 

Definition at line 102 of file interrogateManifest.I.

References _getter, FunctionIndex, and INLINE.

Referenced by interrogate_manifest_has_type().

bool InterrogateManifest::has_getter  )  const [inline]
 

Definition at line 114 of file interrogateManifest.I.

References _flags, F_has_int_value, and INLINE.

Referenced by interrogate_manifest_get_type().

bool InterrogateManifest::has_int_value  )  const [inline]
 

Definition at line 138 of file interrogateManifest.I.

References INLINE, and input().

Referenced by interrogate_manifest_getter().

bool InterrogateComponent::has_library_name  )  const [inline, inherited]
 

Returns true if we have a known library name, false if we do not.

See get_library_name().

Definition at line 74 of file interrogateComponent.I.

References InterrogateComponent::_def, INLINE, InterrogateModuleDef::library_name, and NULL.

bool InterrogateComponent::has_module_name  )  const [inline, inherited]
 

Returns true if we have a known module name, false if we do not.

See get_module_name().

Definition at line 116 of file interrogateComponent.I.

References InterrogateComponent::_name, and INLINE.

Referenced by interrogate_function_class(), and interrogate_type_comment().

bool InterrogateComponent::has_name  )  const [inline, inherited]
 

Definition at line 153 of file interrogateComponent.I.

bool InterrogateManifest::has_type  )  const [inline]
 

Definition at line 90 of file interrogateManifest.I.

References _flags, F_has_getter, and INLINE.

Referenced by interrogate_manifest_definition().

void InterrogateManifest::input istream &  in  ) 
 

Reads the data file as previously formatted by output().

Reimplemented from InterrogateComponent.

Definition at line 57 of file interrogateManifest.cxx.

References _getter, _type, and IndexRemapper::map_from().

Referenced by has_int_value().

void InterrogateManifest::operator= const InterrogateManifest &  copy  )  [inline]
 

Definition at line 60 of file interrogateManifest.I.

References _definition, and INLINE.

void InterrogateManifest::output ostream &  out  )  const
 

Formats the InterrogateManifest data for output to a data file.

Reimplemented from InterrogateComponent.

Definition at line 37 of file interrogateManifest.cxx.

void InterrogateManifest::remap_indices const IndexRemapper remap  ) 
 

Remaps all internal index numbers according to the indicated map.

This called from InterrogateDatabase::remap_indices().

Definition at line 76 of file interrogateManifest.cxx.


Friends And Related Function Documentation

friend class InterrogateBuilder [friend]
 

Reimplemented from InterrogateComponent.

Definition at line 70 of file interrogateManifest.h.


Member Data Documentation

string InterrogateManifest::_definition [private]
 

Definition at line 65 of file interrogateManifest.h.

Referenced by InterrogateManifest(), and operator=().

int InterrogateManifest::_flags [private]
 

Definition at line 64 of file interrogateManifest.h.

Referenced by get_definition(), has_getter(), has_type(), and InterrogateManifest().

FunctionIndex InterrogateManifest::_getter [private]
 

Definition at line 68 of file interrogateManifest.h.

Referenced by get_type(), input(), and InterrogateManifest().

int InterrogateManifest::_int_value [private]
 

Definition at line 66 of file interrogateManifest.h.

Referenced by get_getter(), and InterrogateManifest().

TypeIndex InterrogateManifest::_type [private]
 

Definition at line 67 of file interrogateManifest.h.

Referenced by input(), and InterrogateManifest().


The documentation for this class was generated from the following files:
Generated on Thu May 1 22:13:38 2003 for DTool by doxygen1.3