#include <FragmentIO.hh>
| core::fragment::FragmentIO::FragmentIO |
( |
| ) |
|
|
inline |
| core::fragment::FragmentIO::FragmentIO |
( |
Size |
top, |
|
|
Size |
ncopies = 1, |
|
|
bool |
bAnnotate = true |
|
) |
| |
|
inline |
| void core::fragment::FragmentIO::clean_frag_cache |
( |
| ) |
|
| FragFactory & core::fragment::FragmentIO::get_frag_factory |
( |
void |
| ) |
|
| FragSetOP core::fragment::FragmentIO::read_data |
( |
std::string const & |
filename | ) |
|
read a FragSet... note that this function caches the fragment set. i.e., if you read the same set from multiple positions in the code you get the same set. if you read a new file ... we'll check the cache for stale references and delete them...
References bAnnotate_, clean_frag_cache(), frag_cache_, frags, getline(), utility::io::izstream::good(), ncopies_, tag, top_, core::fragment::tr, and utility_exit_with_message.
Referenced by read_data(), and core::fragment::read_std_frags_from_cmd().
| void core::fragment::FragmentIO::read_data |
( |
std::string const & |
filename, |
|
|
FrameList & |
frames |
|
) |
| |
| void core::fragment::FragmentIO::read_data |
( |
std::istream & |
data, |
|
|
FrameList & |
all_frames |
|
) |
| |
| void core::fragment::FragmentIO::read_frag_data |
( |
std::istream & |
data, |
|
|
std::string & |
next_line, |
|
|
FrameList & |
next_frames |
|
) |
| |
|
private |
References bAnnotate_, frag_factory_, core::fragment::FragFactory::frag_type(), frame(), getline(), length, ncopies_, pdb_pos, tag, top_, and core::fragment::tr.
Referenced by read_data().
| void core::fragment::FragmentIO::read_next_frames |
( |
std::istream & |
data, |
|
|
std::string & |
next_line, |
|
|
FrameList & |
next_frames |
|
) |
| |
|
private |
| void core::fragment::FragmentIO::set_ncopies |
( |
Size |
setting | ) |
|
|
inline |
Updates the number of copies of each fragment to keep (default 1)
References ncopies_.
| void core::fragment::FragmentIO::set_read_annotation |
( |
bool |
setting = true | ) |
|
|
inline |
Toggles between reading annotated (true) and non-annotated (false)
References bAnnotate_.
| void core::fragment::FragmentIO::set_top_frag_num |
( |
Size |
setting | ) |
|
|
inline |
Updates the number of distinct fragments to keep.
References top_.
| void core::fragment::FragmentIO::write_data |
( |
std::string const & |
file, |
|
|
FragSet const & |
frags |
|
) |
| |
| bool core::fragment::FragmentIO::bAnnotate_ |
|
private |
| Size core::fragment::FragmentIO::ncopies_ |
|
private |
| Size core::fragment::FragmentIO::top_ |
|
private |
The documentation for this class was generated from the following files: