mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
24 lines
652 B
C++
24 lines
652 B
C++
//------------------------------------------------------------------------------
|
|
/*
|
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
|
*/
|
|
//==============================================================================
|
|
|
|
InstanceType* InstanceType::sHeadInstance = NULL;
|
|
bool InstanceType::sMultiThreaded = false;
|
|
|
|
std::vector<InstanceType::InstanceCount> InstanceType::getInstanceCounts (int min)
|
|
{
|
|
std::vector<InstanceCount> ret;
|
|
|
|
for (InstanceType* i = sHeadInstance; i != NULL; i = i->mNextInstance)
|
|
{
|
|
int c = i->getCount ();
|
|
|
|
if (c >= min)
|
|
ret.push_back (InstanceCount (i->getName (), c));
|
|
}
|
|
|
|
return ret;
|
|
}
|