----------------------------------------------------------------------------- Add a group into the node's map -----------------------------------------------------------------------------
| 2926 | // Add a group into the node's map |
| 2927 | //----------------------------------------------------------------------------- |
| 2928 | void Node::AddGroup |
| 2929 | ( |
| 2930 | Group* _group |
| 2931 | ) |
| 2932 | { |
| 2933 | map<uint8,Group*>::iterator it = m_groups.find( _group->GetIdx() ); |
| 2934 | if( it != m_groups.end() ) |
| 2935 | { |
| 2936 | // There is already a group with this id. We will replace it. |
| 2937 | delete it->second; |
| 2938 | m_groups.erase( it ); |
| 2939 | } |
| 2940 | |
| 2941 | m_groups[_group->GetIdx()] = _group; |
| 2942 | } |
| 2943 | |
| 2944 | //----------------------------------------------------------------------------- |
| 2945 | // <Node::WriteGroups> |