historical/toontown-classic.git/panda/include/winStatsMonitor.I
2024-01-16 11:20:27 -06:00

37 lines
907 B
Text

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file winStatsMonitor.I
* @author drose
* @date 2004-01-09
*/
/**
*
*/
WinStatsMonitor::MenuDef::
MenuDef(int thread_index, int collector_index, bool show_level) :
_thread_index(thread_index),
_collector_index(collector_index),
_show_level(show_level)
{
}
/**
*
*/
bool WinStatsMonitor::MenuDef::
operator < (const MenuDef &other) const {
if (_thread_index != other._thread_index) {
return _thread_index < other._thread_index;
}
if (_collector_index != other._collector_index) {
return _collector_index < other._collector_index;
}
return (int)_show_level < (int)other._show_level;
}