本文整理汇总了C++中Profile::GetUptimeMin方法的典型用法代码示例。如果您正苦于以下问题:C++ Profile::GetUptimeMin方法的具体用法?C++ Profile::GetUptimeMin怎么用?C++ Profile::GetUptimeMin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Profile
的用法示例。
在下文中一共展示了Profile::GetUptimeMin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IsEqual
//checks to see if two profiles are equal
bool Profile::IsEqual(const Profile &profile)
{
if(this->m_avgPortCount != profile.m_avgPortCount)
{
return false;
}
if(this->m_count != profile.m_count)
{
return false;
}
if(abs(this->m_distribution - profile.m_distribution) > EQUALITY_THRESHOLD)
{
return false;
}
if(this->m_name.compare(profile.m_name) != 0)
{
return false;
}
if(this->m_osclass.compare(profile.m_osclass) != 0)
{
return false;
}
if(this->IsDropRateInherited() !=profile.IsDropRateInherited())
{
return false;
}
if(this->IsPersonalityInherited() != profile.IsPersonalityInherited())
{
return false;
}
if(this->IsUptimeInherited() !=profile.IsUptimeInherited())
{
return false;
}
if(this->GetParentProfile() !=profile.GetParentProfile())
{
return false;
}
if(this->GetPersonality().compare(profile.GetPersonality()) != 0 )
{
return false;
}
if(this->GetDropRate().compare(profile.GetDropRate()) != 0)
{
return false;
}
if(this->GetUptimeMax() != profile.GetUptimeMax())
{
return false;
}
if(this->GetUptimeMaxNonRecursive() != profile.GetUptimeMaxNonRecursive())
{
return false;
}
if(this->GetUptimeMin() != profile.GetUptimeMin())
{
return false;
}
if(this->GetUptimeMinNonRecursive() != profile.GetUptimeMinNonRecursive())
{
return false;
}
return true;
}