CONNECTIVITY_DATA::GetNodeCount() implementation

This commit is contained in:
Maciej Suminski 2017-06-23 14:41:51 +02:00
parent 74ef3ecb1d
commit 450ad5eab9
1 changed files with 13 additions and 2 deletions

View File

@ -436,8 +436,19 @@ unsigned int CONNECTIVITY_DATA::GetLinksCount() const
unsigned int CONNECTIVITY_DATA::GetNodeCount( int aNet ) const unsigned int CONNECTIVITY_DATA::GetNodeCount( int aNet ) const
{ {
return 0; int sum = 0;
assert( false );
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;
} }