This is a nested reference to an instance of a template object, declared via the syntax:
More...
#include "xFileDataNodeReference.h"
List of all members.
Public Member Functions |
|
| XFileDataNodeReference (XFileDataNodeTemplate *object) |
|
virtual TypeHandle | force_init_type () |
| XFileDataNodeTemplate * | get_object () const |
| | Returns the actual data object being referenced.
|
| XFileTemplate * | get_template () const |
| | Returns the template used to define this data object.
|
|
virtual TypeHandle | get_type () const |
| virtual bool | is_complex_object () const |
| | Returns true if this kind of data object is a complex object that can hold nested data elements, false otherwise.
|
| virtual bool | is_reference () const |
| | Returns true if this node represents an indirect reference to an object defined previously in the file.
|
| virtual void | write_text (ostream &out, int indent_level) const |
| | Writes a suitable representation of this node to an .x file in text mode.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Protected Member Functions |
| virtual XFileDataObject * | get_element (int n) |
| | Returns the nth nested data element within the object.
|
| virtual XFileDataObject * | get_element (const string &name) |
| | Returns the nested data element within the object that has the indicated name.
|
| virtual int | get_num_elements () const |
| | Returns the number of nested data elements within the object.
|
Detailed Description
This is a nested reference to an instance of a template object, declared via the syntax:
{ InstanceName }
in the X File.
Definition at line 31 of file xFileDataNodeReference.h.
Member Function Documentation
| XFileDataObject * XFileDataNodeReference::get_element |
( |
int |
n | ) |
[protected, virtual] |
| XFileDataObject * XFileDataNodeReference::get_element |
( |
const string & |
name | ) |
[protected, virtual] |
| int XFileDataNodeReference::get_num_elements |
( |
| ) |
const [protected, virtual] |
Returns the number of nested data elements within the object.
This may be, e.g. the size of the array, if it is an array.
Reimplemented from XFileDataObject.
Definition at line 93 of file xFileDataNodeReference.cxx.
| XFileTemplate* XFileDataNodeReference::get_template |
( |
| ) |
const [inline] |
| bool XFileDataNodeReference::is_complex_object |
( |
| ) |
const [virtual] |
| bool XFileDataNodeReference::is_reference |
( |
| ) |
const [virtual] |
Returns true if this node represents an indirect reference to an object defined previously in the file.
References are generally transparent, so in most cases you never need to call this, unless you actually need to differentiate between references and instances; you can simply use the reference node as if it were itself the object it references.
If this returns true, the node must be of type XFileDataNodeReference.
Reimplemented from XFileNode.
Definition at line 57 of file xFileDataNodeReference.cxx.
| void XFileDataNodeReference::write_text |
( |
ostream & |
out, |
|
|
int |
indent_level |
|
) |
| const [virtual] |
The documentation for this class was generated from the following files: