#include <TextWriter.hpp>
Definition at line 39 of file TextWriter.hpp.
◆ TextWriter()
pwiz::proteome::TextWriter::TextWriter |
( |
std::ostream & |
os, |
|
|
int |
depth = 0 |
|
) |
| |
|
inline |
◆ child()
Definition at line 47 of file TextWriter.hpp.
TextWriter(std::ostream &os, int depth=0)
References os_.
◆ operator()() [1/6]
TextWriter & pwiz::proteome::TextWriter::operator() |
( |
const std::string & |
text | ) |
|
|
inline |
◆ operator()() [2/6]
template<typename object_type >
TextWriter & pwiz::proteome::TextWriter::operator() |
( |
const std::string & |
label, |
|
|
const std::vector< object_type > & |
v |
|
) |
| |
|
inline |
Definition at line 56 of file TextWriter.hpp.
57 {
58 (*this)(label);
59 for_each(v.begin(), v.end(),
child());
60 return *this;
61 }
◆ operator()() [3/6]
◆ operator()() [4/6]
◆ operator()() [5/6]
TextWriter & pwiz::proteome::TextWriter::operator() |
( |
const ProteinList & |
proteinList, |
|
|
bool |
metadata_only = false |
|
) |
| |
|
inline |
Definition at line 87 of file TextWriter.hpp.
88 {
89 std::string text("proteinList (" + boost::lexical_cast<std::string>(proteinList.size()) + " proteins)");
90 if (!metadata_only)
91 text += ":";
92
93 (*this)(text);
94
95 if (!metadata_only)
96 for (size_t index = 0; index < proteinList.size(); ++index)
98 (*proteinList.protein(index, true));
99 return *this;
100 }
References pwiz::proteome::ProteinList::protein(), and pwiz::proteome::ProteinList::size().
◆ operator()() [6/6]
template<typename object_type >
TextWriter & pwiz::proteome::TextWriter::operator() |
( |
const boost::shared_ptr< object_type > & |
p | ) |
|
|
inline |
Definition at line 104 of file TextWriter.hpp.
105 {
106 return p.get() ? (*this)(*p) : *this;
107 }
◆ os_
std::ostream& pwiz::proteome::TextWriter::os_ |
|
private |
◆ depth_
int pwiz::proteome::TextWriter::depth_ |
|
private |
◆ indent_
std::string pwiz::proteome::TextWriter::indent_ |
|
private |
The documentation for this class was generated from the following file:
- /data/libpwiz-dev3648559106/libpwiz-3.0.18342/pwiz/data/proteome/TextWriter.hpp