Allow for checking if the TimingData is empty.

AKA, no segments in use.

Again, this is mainly for the editor.

As for why a lowercase empty? Blame vectors.
This commit is contained in:
Jason Felds
2011-07-26 14:10:51 -04:00
parent 4f7bddd8cc
commit 480cda836e
2 changed files with 14 additions and 0 deletions
+12
View File
@@ -17,6 +17,18 @@ TimingData::~TimingData()
{
}
bool TimingData::empty() const
{
for (unsigned i = 0; i < NUM_TimingSegmentType; i++)
{
for (unsigned j = 0; j < this->allTimingSegments[i].size(); j++)
{
return false;
}
}
return true;
}
TimingData TimingData::CopyRange(int startRow, int endRow)
{
TimingData tmp;