Rosetta 3.4
Public Types | Public Member Functions
protocols::wum::SilentStructStore Class Reference

#include <SilentStructStore.hh>

Inheritance diagram for protocols::wum::SilentStructStore:
Inheritance graph
[legend]
Collaboration diagram for protocols::wum::SilentStructStore:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< core::io::silent::SilentStructOP >
::iterator 
iterator
typedef std::vector
< core::io::silent::SilentStructOP >
::const_iterator 
const_iterator

Public Member Functions

 SilentStructStore ()
iterator begin ()
 Returns an iterator to the start of the members of this container.
const_iterator begin () const
 Returns an iterator to the start of the members of this container.
iterator end ()
 Returns an iterator to the end of the members of this container.
const_iterator end () const
 Returns an iterator to the end of the members of this container.
void sort_by (std::string field="score")
void clear ()
 Remove all structures.
void add (const core::pose::Pose &pose)
 add a pose
void add (core::io::silent::SilentStructOP new_struct)
 Add a core::io::silent::SilentStruct.
void add (const core::io::silent::SilentStruct &new_struct)
 Add a core::io::silent::SilentStruct.
void add (core::io::silent::SilentFileData const &sfd)
 Add structures froma silent file data object.
void add (SilentStructStore &mergestore)
 Add the contents of another SilentStructStore.
void read_from_cmd_line ()
 THis uses the pose stream to read in everything from -l, -s and -in:file:silent into this store.
void read_from_string (const std::string &input)
 read from string
void read_from_stream (std::istream &input)
 read from silent file
void read_from_file (const std::string &filename)
 read from string
void get_pose (core::Size index, core::pose::Pose &pose) const
 Obtain a new pose from a given index. must provide a template pose though!
core::Size size ()
 How many structures.
core::io::silent::SilentStructCOP get_struct (core::Size index) const
 Get a structure with a certain index.
core::io::silent::SilentStructOPget_struct (core::Size index)
 Get a structure with a certain index.
core::io::silent::SilentStructCOP get_struct_random () const
 Get a random structure.
void serialize (std::ostream &out) const
 Print silent file.
void serialize (std::string &out) const
 Print silent file.
void serialize_to_file (const std::string &file) const
 Print silent file.
void print (std::ostream &out) const
 Print silent file.
std::vector
< core::io::silent::SilentStructOP > & 
store ()
void limit (core::Size limit_size)
virtual core::Size mem_footprint () const
 Return memory usage.
core::Size size () const
 return numner of structures
void erase (iterator it)
 return numner of structures
void all_add_energy (std::string scorename, core::Real value, core::Real weight=1.0)
 Manipulators:
void all_sort_silent_scores ()
 Manipulators:

Member Typedef Documentation


Constructor & Destructor Documentation

protocols::wum::SilentStructStore::SilentStructStore ( ) [inline]

Member Function Documentation

void protocols::wum::SilentStructStore::add ( const core::pose::Pose pose)

add a pose

void protocols::wum::SilentStructStore::add ( core::io::silent::SilentStructOP  new_struct)
void protocols::wum::SilentStructStore::add ( const core::io::silent::SilentStruct new_struct)
void protocols::wum::SilentStructStore::add ( core::io::silent::SilentFileData const &  sfd)

Add structures froma silent file data object.

References core::io::silent::SilentFileData::begin(), and core::io::silent::SilentFileData::end().

void protocols::wum::SilentStructStore::add ( SilentStructStore mergestore)

Add the contents of another SilentStructStore.

void protocols::wum::SilentStructStore::all_add_energy ( std::string  scorename,
core::Real  value,
core::Real  weight = 1.0 
)
void protocols::wum::SilentStructStore::all_sort_silent_scores ( )
const_iterator protocols::wum::SilentStructStore::begin ( ) const [inline]

Returns an iterator to the start of the members of this container.

iterator protocols::wum::SilentStructStore::begin ( ) [inline]
void protocols::wum::SilentStructStore::clear ( )
const_iterator protocols::wum::SilentStructStore::end ( ) const [inline]

Returns an iterator to the end of the members of this container.

iterator protocols::wum::SilentStructStore::end ( ) [inline]
void protocols::wum::SilentStructStore::erase ( iterator  it) [inline]

return numner of structures

void protocols::wum::SilentStructStore::get_pose ( core::Size  index,
core::pose::Pose pose 
) const

Obtain a new pose from a given index. must provide a template pose though!

Referenced by protocols::loophash::WorkUnit_LoopHash::run().

core::io::silent::SilentStructCOP protocols::wum::SilentStructStore::get_struct ( core::Size  index) const [inline]
core::io::silent::SilentStructOP& protocols::wum::SilentStructStore::get_struct ( core::Size  index) [inline]

Get a structure with a certain index.

SilentStructCOP protocols::wum::SilentStructStore::get_struct_random ( ) const

Get a random structure.

References core::kinematics::RG().

void protocols::wum::SilentStructStore::limit ( core::Size  limit_size) [inline]
core::Size protocols::wum::SilentStructStore::mem_footprint ( ) const [virtual]

Return memory usage.

void protocols::wum::SilentStructStore::print ( std::ostream &  out) const

Print silent file.

void protocols::wum::SilentStructStore::read_from_cmd_line ( )
void protocols::wum::SilentStructStore::read_from_file ( const std::string &  filename)

read from string

void protocols::wum::SilentStructStore::read_from_stream ( std::istream &  input)
void protocols::wum::SilentStructStore::read_from_string ( const std::string &  input)
void protocols::wum::SilentStructStore::serialize ( std::string &  out) const

Print silent file.

void protocols::wum::SilentStructStore::serialize ( std::ostream &  out) const
void protocols::wum::SilentStructStore::serialize_to_file ( const std::string &  file) const

Print silent file.

core::Size protocols::wum::SilentStructStore::size ( ) [inline]
core::Size protocols::wum::SilentStructStore::size ( ) const [inline]

return numner of structures

void protocols::wum::SilentStructStore::sort_by ( std::string  field = "score")
std::vector< core::io::silent::SilentStructOP >& protocols::wum::SilentStructStore::store ( ) [inline]

Referenced by limit().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines