CONNECTIVITY_DATA::GetNodeCount() implementation
This commit is contained in:
parent
74ef3ecb1d
commit
450ad5eab9
|
@ -436,8 +436,19 @@ unsigned int CONNECTIVITY_DATA::GetLinksCount() const
|
|||
|
||||
unsigned int CONNECTIVITY_DATA::GetNodeCount( int aNet ) const
|
||||
{
|
||||
return 0;
|
||||
assert( false );
|
||||
int sum = 0;
|
||||
|
||||
if( aNet < 0 )
|
||||
{
|
||||
for( const auto& net : m_nets )
|
||||
sum += net->GetNodeCount();
|
||||
}
|
||||
else if( aNet < m_nets.size() )
|
||||
{
|
||||
sum = m_nets[aNet]->GetNodeCount();
|
||||
}
|
||||
|
||||
return sum;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue