MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / ListByCount

Method ListByCount

src/simulation.cpp:1485–1510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485void Simulation::ListByCount( size_t nr, size_t nc, wxArrayString &list )
1486{
1487 VarTable &vt = Outputs();
1488 for ( VarTable::iterator it = vt.begin(); it != vt.end(); ++it )
1489 {
1490 size_t nrows, ncols;
1491 nrows = 1; ncols = 1;
1492 if ( it->second->Type() == VV_NUMBER )
1493 nrows = 1;
1494 else if ( it->second->Type() == VV_ARRAY )
1495 nrows = it->second->Length();
1496 else if (it->second->Type() == VV_MATRIX)
1497 {
1498 nrows = it->second->Rows();
1499 ncols = it->second->Columns();
1500 }
1501 else if (it->second->Type() == VV_TABLE)
1502 {
1503 nrows = it->second->Rows();
1504 ncols = it->second->Columns();
1505 }
1506
1507 if ( nr == nrows && nc == ncols )
1508 list.Add( it->first );
1509 }
1510}
1511
1512
1513wxArrayString Simulation::GetAllMessages()

Callers 1

PopulateSelectionListFunction · 0.80

Calls 5

TypeMethod · 0.80
RowsMethod · 0.80
ColumnsMethod · 0.80
LengthMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected