14#ifndef XFILEARRAYDEF_H
15#define XFILEARRAYDEF_H
28 INLINE XFileArrayDef(
int fixed_size);
35 int get_size(
const XFileNode::PrevData &prev_data)
const;
37 void output(std::ostream &out)
const;
bool is_fixed_size() const
Returns true if this array definition specifies a const-size array, false if it is a dynamic-size arr...
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 ...
int get_fixed_size() const
Returns the const size of the array, if is_fixed_size() returned true.
XFileDataDef * get_dynamic_size() const
Returns the data element that names the dynamic size of the array, if is_fixed_size() returned false.
int get_size(const XFileNode::PrevData &prev_data) const
Returns the size of the array dimension.
A definition of a single data element appearing within a template record.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.