| 113 | } |
| 114 | |
| 115 | sgnode* scene::get_node(const string& id) |
| 116 | { |
| 117 | node_table::iterator i, iend; |
| 118 | for (i = nodes.begin(), iend = nodes.end(); i != iend; ++i) |
| 119 | { |
| 120 | if ((*i)->get_id() == id) |
| 121 | { |
| 122 | return *i; |
| 123 | } |
| 124 | } |
| 125 | return NULL; |
| 126 | } |
| 127 | |
| 128 | const sgnode* scene::get_node(const string& id) const |
| 129 | { |
no test coverage detected