Defines one level of array bounds for an associated XFileDataDef element.
More...
#include "xFileArrayDef.h"
List of all members.
Public Member Functions |
|
| XFileArrayDef (int fixed_size) |
|
| XFileArrayDef (XFileDataDef *dynamic_size) |
| 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_fixed_size () const |
| | Returns the const size of the array, if is_fixed_size() returned true.
|
| 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 array.
|
| 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 (which must be of the same type).
|
|
void | output (ostream &out) const |
Detailed Description
Defines one level of array bounds for an associated XFileDataDef element.
Definition at line 29 of file xFileArrayDef.h.
Member Function Documentation
| XFileDataDef * XFileArrayDef::get_dynamic_size |
( |
| ) |
const [inline] |
| int XFileArrayDef::get_fixed_size |
( |
| ) |
const [inline] |
| int XFileArrayDef::get_size |
( |
const XFileNode::PrevData & |
prev_data | ) |
const |
Returns the size of the array dimension.
If this is a fixed array, the size is trivial; if it is dynamic, the size is determined by looking up the dynamic_size element in the prev_data table (which lists all of the data values already defined at this scoping level).
Definition at line 30 of file xFileArrayDef.cxx.
References is_fixed_size().
| bool XFileArrayDef::is_fixed_size |
( |
| ) |
const [inline] |
The documentation for this class was generated from the following files: