Skip to content
Snippets Groups Projects
Commit 19ddf0bf authored by Jan Trávníček's avatar Jan Trávníček
Browse files

add getChild to VararyNode

parent 0d765650
No related branches found
No related tags found
No related merge requests found
...@@ -1058,6 +1058,30 @@ public: ...@@ -1058,6 +1058,30 @@ public:
child.parent = static_cast < Cast * > ( this ); child.parent = static_cast < Cast * > ( this );
} }
   
/**
* \brief
* Getter of the child at given index.
*
* \param index the index to retrieve
*
* \return reference to the child at given index
*/
Data & getChild ( int index ) {
return m_children [ index ];
}
/**
* \brief
* Getter of the child at given index.
*
* \param index the index to retrieve
*
* \return reference to the child at given index
*/
const Data & getChild ( int index ) const {
return m_children [ index ];
}
/** /**
* \brief * \brief
* Setter of the single child of the node. * Setter of the single child of the node.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment