VectorNode Class Reference

An E57 element containing ordered vector of child nodes. More...

Detailed Description

An E57 element containing ordered vector of child nodes.

A VectorNode is a container of ordered child nodes. The child nodes are automatically assigned an elementName, which is a string version of the positional index of the child starting at "0". Child nodes may only be appended onto the end of a VectorNode.

A VectorNode that is created with a restriction that its children must have the same type is called a "homogeneous VectorNode". A VectorNode without such a restriction is called a "heterogeneous VectorNode".

See Node class discussion for discussion of the common functions that StructureNode supports.

Class Invariant

A class invariant is a list of statements about an object that are always true before and after any operation on the object. An invariant is useful for testing correct operation of an implementation. Statements in an invariant can involve only externally visible state, or can refer to internal implementation-specific state that is not visible to the API user. The following C++ code checks externally visible state for consistency and throws an exception if the invariant is violated:

See also
Node

The documentation for this class was generated from the following file: