diff options
author | Adrian Kummerlaender | 2014-10-01 20:30:08 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-01 20:30:08 +0200 |
commit | 0840f434541b57fbd6d3c9d7b2a8b127cc680912 (patch) | |
tree | 330df31c2083a48c33be95a2bc7d40f8b5d25470 /LICENSE | |
parent | 6498a968cd34e49e355cc0765ca2dafb842bc12b (diff) | |
download | SimpleParser-0840f434541b57fbd6d3c9d7b2a8b127cc680912.tar SimpleParser-0840f434541b57fbd6d3c9d7b2a8b127cc680912.tar.gz SimpleParser-0840f434541b57fbd6d3c9d7b2a8b127cc680912.tar.bz2 SimpleParser-0840f434541b57fbd6d3c9d7b2a8b127cc680912.tar.lz SimpleParser-0840f434541b57fbd6d3c9d7b2a8b127cc680912.tar.xz SimpleParser-0840f434541b57fbd6d3c9d7b2a8b127cc680912.tar.zst SimpleParser-0840f434541b57fbd6d3c9d7b2a8b127cc680912.zip |
Moved child pointers to OperatorNode class
* access was restricted by declaring them private and offering member methods such as "hasChildren"
* only OperatorNode instances have children, there is no reason for wasting space by keeping empty pointers around in all other instances
* this enabled the removal of all nullptr comparisons from tree construction
* changed "Tree::addNode" factory method template to return a pointer to the type of the constructed node instance instead of a plain node pointer
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions