MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / Contains

Method Contains

cpp/src/Group.cpp:236–250  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Whether a group contains a particular node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

234// Whether a group contains a particular node
235//-----------------------------------------------------------------------------
236bool 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>

Callers 1

AutoAssociateMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected