15 #include "xFileArrayDef.h" 16 #include "xFileDataDef.h" 17 #include "xFileDataObject.h" 34 XFileNode::PrevData::const_iterator pi;
35 pi = prev_data.find(_dynamic_size);
36 nassertr_always(pi != prev_data.end(), 0);
38 return (*pi).second->i();
48 output(ostream &out)
const {
50 out <<
"[" << _fixed_size <<
"]";
52 out <<
"[" << _dynamic_size->get_name() <<
"]";
78 int other_child_index =
80 if (other_child_index != child_index) {
This is our own Panda specialization on the default STL map.
XFileDataDef * get_dynamic_size() const
Returns the data element that names the dynamic size of the array, if is_fixed_size() returned false...
Defines one level of array bounds for an associated XFileDataDef element.
A definition of a single data element appearing within a template record.
int find_child_index(const string &name) const
Returns the index number of the child with the indicated name, if any, or -1 if none.
int get_size(const XFileNode::PrevData &prev_data) const
Returns the size of the array dimension.
bool is_fixed_size() const
Returns true if this array definition specifies a const-size array, false if it is a dynamic-size arr...
int get_fixed_size() const
Returns the const size of the array, if is_fixed_size() returned true.
bool matches(const XFileArrayDef &other, const XFileDataDef *parent, const XFileDataDef *other_parent) const
Returns true if the node, particularly a template node, is structurally equivalent to the other node ...
The abstract base class for a number of different types of data elements that may be stored in the X ...