17 TypeHandle XFileDataNodeReference::_type_handle;
22 XFileDataNodeReference::
25 object->get_template()),
33 _children =
object->_children;
34 _objects =
object->_objects;
35 _children_by_name =
object->_children_by_name;
67 <<
"{ " << _object->get_name() <<
" }\n";
74 int XFileDataNodeReference::
75 get_num_elements()
const {
76 return _object->size();
84 return &((*_object)[n]);
92 get_element(
const std::string &name) {
93 return &((*_object)[name]);
This is a node which contains all of the data elements defined by a template.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual bool is_reference() const
Returns true if this node represents an indirect reference to an object defined previously in the fil...
This is an abstract base class for an XFileNode which is also an XFileDataObject.
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool is_complex_object() const
Returns true if this kind of data object is a complex object that can hold nested data elements,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The abstract base class for a number of different types of data elements that may be stored in the X ...
virtual void write_text(std::ostream &out, int indent_level) const
Writes a suitable representation of this node to an .x file in text mode.