chunkedseq
container library for large in-memory data sets
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
pasl::data::chunkedseq::extras Namespace Reference

Functions

template<class Container , class size_type >
void split_by_index (Container &c, size_type i, Container &other)
 
template<class Container , class iterator >
void split_by_iterator (Container &c, iterator position, Container &other)
 
template<class Container >
void split_approximate (Container &c, Container &other)
 
template<class Container , class iterator , class value_type >
iterator insert (Container &c, iterator position, const value_type &val)
 
template<class Container , class iterator >
iterator erase (Container &c, iterator first, iterator last)
 
template<class Body , class iterator >
void for_each_segment (iterator begin, iterator end, const Body &f)
 
template<class Body , class iterator >
void for_each (iterator beg, iterator end, const Body &f)
 
template<class Container , class Consumer , class size_type >
void stream_backn (const Container &c, const Consumer &cons, size_type nb)
 
template<class Container , class Consumer , class size_type >
void stream_frontn (const Container &c, const Consumer &cons, size_type nb)
 
template<class Container , class value_type , class size_type >
void backn (const Container &c, value_type *dst, size_type nb)
 
template<class Container , class value_type , class size_type >
void frontn (const Container &c, value_type *dst, size_type nb)
 
template<class Container , class const_pointer , class size_type >
void pushn_back (Container &c, const_pointer src, size_type nb)
 
template<class Container , class const_pointer , class size_type >
void pushn_front (Container &c, const_pointer src, size_type nb)
 
template<class Container , class value_type , class size_type >
void popn_back (Container &c, value_type *dst, size_type nb)
 
template<class Container , class value_type , class size_type >
void popn_front (Container &c, value_type *dst, size_type nb)
 
template<class Container >
std::ostream & generic_print_container (std::ostream &out, const Container &seq)
 

Function Documentation

template<class Container , class value_type , class size_type >
void pasl::data::chunkedseq::extras::backn ( const Container &  c,
value_type *  dst,
size_type  nb 
)

Definition at line 162 of file chunkedseqextras.hpp.

template<class Container , class iterator >
iterator pasl::data::chunkedseq::extras::erase ( Container &  c,
iterator  first,
iterator  last 
)

Definition at line 91 of file chunkedseqextras.hpp.

template<class Body , class iterator >
void pasl::data::chunkedseq::extras::for_each ( iterator  beg,
iterator  end,
const Body &  f 
)

Definition at line 129 of file chunkedseqextras.hpp.

template<class Body , class iterator >
void pasl::data::chunkedseq::extras::for_each_segment ( iterator  begin,
iterator  end,
const Body &  f 
)
Examples:
chunkedseq_6.cpp, and chunkedseq_7.cpp.

Definition at line 114 of file chunkedseqextras.hpp.

template<class Container , class value_type , class size_type >
void pasl::data::chunkedseq::extras::frontn ( const Container &  c,
value_type *  dst,
size_type  nb 
)

Definition at line 174 of file chunkedseqextras.hpp.

template<class Container >
std::ostream& pasl::data::chunkedseq::extras::generic_print_container ( std::ostream &  out,
const Container &  seq 
)

Definition at line 235 of file chunkedseqextras.hpp.

template<class Container , class iterator , class value_type >
iterator pasl::data::chunkedseq::extras::insert ( Container &  c,
iterator  position,
const value_type &  val 
)

Definition at line 77 of file chunkedseqextras.hpp.

template<class Container , class value_type , class size_type >
void pasl::data::chunkedseq::extras::popn_back ( Container &  c,
value_type *  dst,
size_type  nb 
)

Definition at line 206 of file chunkedseqextras.hpp.

template<class Container , class value_type , class size_type >
void pasl::data::chunkedseq::extras::popn_front ( Container &  c,
value_type *  dst,
size_type  nb 
)

Definition at line 219 of file chunkedseqextras.hpp.

template<class Container , class const_pointer , class size_type >
void pasl::data::chunkedseq::extras::pushn_back ( Container &  c,
const_pointer  src,
size_type  nb 
)

Definition at line 186 of file chunkedseqextras.hpp.

template<class Container , class const_pointer , class size_type >
void pasl::data::chunkedseq::extras::pushn_front ( Container &  c,
const_pointer  src,
size_type  nb 
)

Definition at line 196 of file chunkedseqextras.hpp.

template<class Container >
void pasl::data::chunkedseq::extras::split_approximate ( Container &  c,
Container &  other 
)

Definition at line 66 of file chunkedseqextras.hpp.

template<class Container , class size_type >
void pasl::data::chunkedseq::extras::split_by_index ( Container &  c,
size_type  i,
Container &  other 
)

Definition at line 27 of file chunkedseqextras.hpp.

template<class Container , class iterator >
void pasl::data::chunkedseq::extras::split_by_iterator ( Container &  c,
iterator  position,
Container &  other 
)

Definition at line 57 of file chunkedseqextras.hpp.

template<class Container , class Consumer , class size_type >
void pasl::data::chunkedseq::extras::stream_backn ( const Container &  c,
const Consumer &  cons,
size_type  nb 
)

Definition at line 141 of file chunkedseqextras.hpp.

template<class Container , class Consumer , class size_type >
void pasl::data::chunkedseq::extras::stream_frontn ( const Container &  c,
const Consumer &  cons,
size_type  nb 
)

Definition at line 152 of file chunkedseqextras.hpp.