コード例 #1
0
ファイル: frame.cpp プロジェクト: alessandrostone/metashell
 bool operator==(const frame& a_, const frame& b_)
 {
   return a_.type() == b_.type() && a_.is_full() == b_.is_full() &&
          (!a_.is_full() ||
           (a_.kind() == b_.kind() &&
            a_.point_of_instantiation() == b_.point_of_instantiation())) &&
          a_.is_profiled() == b_.is_profiled() &&
          (!a_.is_profiled() ||
           (a_.time_taken() == b_.time_taken() &&
            a_.time_taken_ratio() == b_.time_taken_ratio()));
 }
コード例 #2
0
ファイル: frame.cpp プロジェクト: syntheticpp/metashell
bool metashell::data::operator==(const frame& a_, const frame& b_)
{
  return
    a_.name() == b_.name()
    && a_.is_full() == b_.is_full()
    && (!a_.is_full() ||
        (a_.kind() == b_.kind()
        // TODO commented out, because I don't want to include this information
        // into the UTs.
        /*&& a_.point_of_instantiation() == b_.point_of_instantiation()*/))
    && a_.is_profiled() == b_.is_profiled()
    && (!a_.is_profiled() ||
        (a_.time_taken() == b_.time_taken()
         && a_.time_taken_ratio() == b_.time_taken_ratio()));
}