enclave/src/data/data.cc
// try to load group information from file, if exists
try to load group information from file, if exists
try to load group information from file if exists
inline bool MetaTryLoadGroup(const std::string& fname,
                             std::vector<unsigned>* group) {
  std::unique_ptr<dmlc::Stream> fi(dmlc::Stream::Create(fname.c_str(), "r", true));
  if (fi == nullptr) return false;
  dmlc::istream is(fi.get());
  group->clear();
  group->push_back(0);
  unsigned nline = 0;
  while (is >> nline) {
    group->push_back(group->back() + nline);
  }
  return true;
}
inline bool MetaTryLoadGroup ( const std :: string & fname , std :: vector < unsigned > * group ) { std :: unique_ptr < dmlc :: Stream > fi ( dmlc :: Stream :: Create ( fname . c_str ( ) , " " , true ) ) ; if ( fi == nullptr ) return false ; dmlc :: istream is ( fi . get ( ) ) ; group -> clear ( ) ; group -> push_back ( 0 ) ; unsigned nline = 0 ; while ( is >> nline ) { group -> push_back ( group -> back ( ) + nline ) ; } return true ; }
try to load group information from file, if exists
try to load group information from file if exists