----------------------------------------------------------------------------- Whether a group contains a particular node -----------------------------------------------------------------------------
| 234 | // Whether a group contains a particular node |
| 235 | //----------------------------------------------------------------------------- |
| 236 | bool Group::Contains |
| 237 | ( |
| 238 | uint8 const _nodeId, |
| 239 | uint8 const _instance |
| 240 | ) |
| 241 | { |
| 242 | for( map<InstanceAssociation,AssociationCommandVec,classcomp>::iterator it = m_associations.begin(); it != m_associations.end(); ++it ) |
| 243 | { |
| 244 | if ((it->first.m_nodeId == _nodeId) && (it->first.m_instance == _instance)) |
| 245 | { |
| 246 | return true; |
| 247 | } |
| 248 | } |
| 249 | return false; |
| 250 | } |
| 251 | |
| 252 | //----------------------------------------------------------------------------- |
| 253 | // <Group::AddAssociation> |
no test coverage detected