148 friend std::vector< SelLine >::iterator
find(std::vector< SelLine >& text,
149 const std::string& img_name);
174 std::vector< SelLine > text_line;
180 std::vector< SelLine >::iterator current_line;
183 std::vector< SelLine >::iterator
find(
const std::string& img_name);
221 text_line.reserve(n);
222 current_line = text_line.begin();
322 void split_in_N(
int N, std::vector< SelFile >& parts);
327 void mpi_select_part(
int rank,
int size,
int& num_img_tot);
333 void mpi_select_part2(
int rank,
int size,
int& num_img_tot,
int mpi_job_size);
337 void chooseSubset(
int firstImage,
int lastImage,
SelFile &SFsubset);
366 current_line = text_line.begin();
395 return text_line[
i].text;
456 bool jump_lines(
int count);
475 current_line =
find(img_name);
487 return current_line == text_line.end();
505 return current_line->Is_data() &&
513 return current_line->Is_data() &&
521 return current_line->Is_comment();
528 return *current_line;
551 return find(img_name) != text_line.end();
594 void ImgSize(
int& Ydim,
int& Xdim);
606 int MaxFileNameLength();
617 const std::string get_current_file();
623 return *current_line;
635 const std::string get_file_number(
int i);
652 void remove(
const std::string& img_name);
664 void remove_current();
691 void set_current_filename(
const FileName& fn_new);
716 void insert(
const SelLine& _selline);
728 void insert_comment(
const std::string& comment);
748 void clean_comments();
786 SelFile randomSubset(
int subsetN,
bool withReplacement=
true);
friend std::ostream & operator<<(std::ostream &o, const SelLine &line)
void write(std::ostream &os, const datablock &db)
void search(const std::string &img_name)
const SelLine & current()
int exists(const std::string &img_name)
std::vector< T > operator+(const std::vector< T > &v, const T &a)
friend SelFile compare(SelFile &SF1, SelFile &SF2, const int mode)
const std::string & get_text()
void get_current(SelLine &_SL)
void append(const FileName &name)
SelFile(const FileName &name)
basic_istream< char, std::char_traits< char > > istream
SelLine get_current_line()
friend std::vector< SelLine >::iterator find(std::vector< SelLine > &text, const std::string &img_name)
void set_type(Line_Type type)
void assign(const SelLine &line)
const std::string & operator()(int i)
file read(std::istream &is)
friend std::istream & operator>>(std::istream &i, SelLine &lin)
friend bool operator<(const SelLine &l1, const SelLine &l2)