7 #ifndef FILE_OSTREAM_QUEUE_HPP_ 8 #define FILE_OSTREAM_QUEUE_HPP_ 10 #include "boost/multi_index_container.hpp" 11 #include "boost/multi_index/hashed_index.hpp" 12 #include "boost/multi_index/member.hpp" 13 #include "boost/multi_index/sequenced_index.hpp" 14 #include "boost/range.hpp" 15 #include "boost/shared_ptr.hpp" 33 static std::string make_path(
34 path_template
const& templ,
35 val_ref_vector
const& vals,
36 std::string
const& header
40 path_template
const& templ,
41 val_ref_vector
const& vals,
43 std::string
const& header
57 typedef boost::multi_index_container<
59 boost::multi_index::indexed_by<
60 boost::multi_index::sequenced<>,
61 boost::multi_index::hashed_unique<
62 boost::multi_index::member<
69 typedef map_t::nth_index<1>::type
index;
81 std::string
const& header =
"",
83 const std::size_t
sz = 100
97 std::size_t
size()
const {
return vm_.size();}
map_t::nth_index< 1 >::type index
Definition: file_ostream_queue.hpp:69
detail::Queable_ofstream_types::val_ref_vector val_ref_vector
Definition: file_ostream_queue.hpp:74
Definition: sanitize_string.cpp:15
val_vector sv_
Definition: file_ostream_queue.hpp:46
map_t::iterator seq_iterator
Definition: file_ostream_queue.hpp:68
detail::Queable_ofstream_types::value_type value_type
Definition: file_ostream_queue.hpp:75
std::string header_
Definition: file_ostream_queue.hpp:101
std::size_t size() const
Definition: file_ostream_queue.hpp:97
std::vector< std::string > path_template
Definition: queable_ofstream_types.hpp:25
index::const_iterator hash_citerator
Definition: file_ostream_queue.hpp:71
Definition: file_ostream_queue.hpp:31
detail::Queable_ofstream_types::val_vector val_vector
Definition: file_ostream_queue.hpp:27
detail::Queable_ofstream_types::val_ref_vector val_ref_vector
Definition: file_ostream_queue.hpp:28
format::Format fmt_
Definition: file_ostream_queue.hpp:103
File_ostream fos_
Definition: file_ostream_queue.hpp:47
std::size_t sz_
Definition: file_ostream_queue.hpp:104
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
File_ostream_queue(Range const &r, std::string const &header="", const format::Format fmt=format::unknown, const std::size_t sz=100)
Definition: file_ostream_queue.hpp:79
#define VDJ_PIPE_DECL
Definition: config.hpp:23
Definition: file_ostream_queue.hpp:25
std::vector< value_type > val_vector
Definition: queable_ofstream_types.hpp:20
Definition: file_ostream_queue.hpp:77
Queable_ofstream::val_vector val_vector
Definition: file_ostream_queue.cpp:52
stack of recently used output file streams
Definition: file_ostream_queue.hpp:53
value_variant value_type
Definition: queable_ofstream_types.hpp:19
detail::Queable_ofstream_types::value_type value_type
Definition: file_ostream_queue.hpp:26
std::pair< compression::Compression, format::Format > guess_compression_format(std::string const &path)
Definition: file.cpp:64
Definition: exception.hpp:23
detail::Queable_ofstream_types::path_template path_template
Definition: file_ostream_queue.hpp:55
boost::multi_index_container< Queable_ofstream, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::hashed_unique< boost::multi_index::member< Queable_ofstream, val_vector,&Queable_ofstream::sv_ > > > > map_t
Definition: file_ostream_queue.hpp:67
Definition: file_stream.hpp:24
std::vector< boost::reference_wrapper< value_type const > > val_ref_vector
Definition: queable_ofstream_types.hpp:23
index::iterator hash_iterator
Definition: file_ostream_queue.hpp:70
detail::Queable_ofstream_types::path_template path_template
Definition: file_ostream_queue.hpp:29
path_template pt_
Definition: file_ostream_queue.hpp:100
detail::Queable_ofstream_types::val_vector val_vector
Definition: file_ostream_queue.hpp:54
const std::size_t sz
Definition: vector_set_test.cpp:27
map_t vm_
Definition: file_ostream_queue.hpp:102
Definition: file_properties.hpp:20