Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Attributes | List of all members
core::scoring::constraints::ConstraintIO Class Reference

#include <ConstraintIO.hh>

Collaboration diagram for core::scoring::constraints::ConstraintIO:
Collaboration graph
[legend]

Static Public Member Functions

static ConstraintIOget_instance ()
 
static ConstraintSetOP read_constraints (std::string const &filename, ConstraintSetOP cst_set, pose::Pose const &pose)
 
static ConstraintSetOP read_constraints (std::istream &data, ConstraintSetOP cst_set, pose::Pose const &pose)
 
static void write_constraints (std::ostream &, ConstraintSet const &cst_set, core::pose::Pose const &)
 
static void write_constraints (std::string const &filename, ConstraintSet const &cst_set, core::pose::Pose const &)
 
static FuncFactoryget_func_factory (void)
 
static ConstraintFactoryget_cst_factory (void)
 
static ConstraintOP parse_atom_pair_constraint (std::istream &data, core::pose::Pose pose)
 
static ConstraintSetOP read_constraints_new (std::string const &fname, ConstraintSetOP cset, pose::Pose const &pose)
 
static ConstraintSetOP read_constraints_new (std::istream &data, ConstraintSetOP cset, pose::Pose const &pose)
 
static ConstraintOP read_individual_constraint_new (std::istream &data, core::pose::Pose const &pose, FuncFactory const &func_factory)
 read one individual constraint defined. More...
 
static ConstraintOP read_individual_constraint_new (std::istream &data, core::pose::Pose const &pose, FuncFactory const &func_factory, std::string type)
 read one individual constraint defined. More...
 
static ConstraintOP parse_coordinate_constraint (std::istream &data, core::pose::Pose pose)
 
static void parse_residue (pose::Pose const &pose, std::string const residue_string, Size &residue_num)
 

Static Protected Member Functions

static void read_cst_bindingsites (std::istream &data, std::string &next_section, ConstraintSet &, pose::Pose const &)
 
static void read_cst_atom_pairs (std::istream &data, std::string &next_section, ConstraintSet &, pose::Pose const &)
 
static void read_cst_coordinates (std::istream &data, std::string &next_section, ConstraintSet &, pose::Pose const &)
 
static void read_cst_angles (std::istream &data, std::string &next_section, ConstraintSet &, pose::Pose const &)
 

Private Member Functions

 ConstraintIO ()
 

Static Private Attributes

static ConstraintIOinstance_ = 0
 
static FuncFactory func_factory_
 

Constructor & Destructor Documentation

core::scoring::constraints::ConstraintIO::ConstraintIO ( )
inlineprivate

Referenced by get_instance().

Member Function Documentation

ConstraintFactory & core::scoring::constraints::ConstraintIO::get_cst_factory ( void  )
static
FuncFactory & core::scoring::constraints::ConstraintIO::get_func_factory ( void  )
static
ConstraintIO * core::scoring::constraints::ConstraintIO::get_instance ( )
static
ConstraintOP core::scoring::constraints::ConstraintIO::parse_atom_pair_constraint ( std::istream &  data,
core::pose::Pose  pose 
)
static
ConstraintOP core::scoring::constraints::ConstraintIO::parse_coordinate_constraint ( std::istream &  data,
core::pose::Pose  pose 
)
static
void core::scoring::constraints::ConstraintIO::parse_residue ( pose::Pose const &  pose,
std::string const  residue_string,
Size residue_num 
)
static
ConstraintSetOP core::scoring::constraints::ConstraintIO::read_constraints ( std::string const &  fname,
ConstraintSetOP  cset,
pose::Pose const &  pose 
)
static

All the heavy lifting is done by read_constraints( istream &, ConstraintSetOP, Pose const & ), or by read_constraints_new( istream &, ConstraintSetOP, Pose const & ), but the logic for deciding which of two execution paths to follow that lives inside read_constraints( isteam &, ... ) will not work if given an izstream constructed from a zipped file. SO instead, we check the file format of the input constraint file here and then rewind to the beginning of the file using the izstream seek_beg() function.

References core::scoring::constraints::get_section_name(), read_constraints_new(), protocols::sparta::section(), and core::scoring::constraints::tr().

Referenced by protocols::abinitio::Template::_read_constraints(), protocols::topology_broker::ConstraintClaimer::add_constraints(), protocols::abinitio::AbrelaxApplication::add_constraints(), core::scoring::constraints::add_constraints_from_cmdline_to_pose(), core::scoring::constraints::add_fa_constraints_from_cmdline_to_pose(), protocols::simple_moves::ConstraintSetMover::apply(), protocols::abinitio::AbrelaxApplication::fold(), protocols::forge::constraints::ConstraintFileRCG::generate_remodel_constraints(), protocols::loophash::MPI_LoopHashRefine::load_structures_from_cmdline_into_library(), protocols::constraints_additional::ConstraintEvaluator::prepare_pose(), protocols::topology_broker::CoordConstraintClaimer::read_constraints_from_file(), protocols::relax::WorkUnit_BatchRelax::run(), protocols::medal::setup_atom_pair_constraints(), protocols::swa::StepWisePoseSetup::setup_constraints(), and protocols::ddg::ddGMover::setup_constraints().

ConstraintSetOP core::scoring::constraints::ConstraintIO::read_constraints ( std::istream &  data,
ConstraintSetOP  cst_set,
pose::Pose const &  pose 
)
static
ConstraintSetOP core::scoring::constraints::ConstraintIO::read_constraints_new ( std::string const &  fname,
ConstraintSetOP  cset,
pose::Pose const &  pose 
)
static
ConstraintSetOP core::scoring::constraints::ConstraintIO::read_constraints_new ( std::istream &  data,
ConstraintSetOP  cset,
pose::Pose const &  pose 
)
static
void core::scoring::constraints::ConstraintIO::read_cst_angles ( std::istream &  data,
std::string &  next_section,
ConstraintSet cst_set,
pose::Pose const &  pose 
)
staticprotected
void core::scoring::constraints::ConstraintIO::read_cst_atom_pairs ( std::istream &  data,
std::string &  next_section,
ConstraintSet cst_set,
pose::Pose const &  pose 
)
staticprotected
void core::scoring::constraints::ConstraintIO::read_cst_bindingsites ( std::istream &  data,
std::string &  next_section,
ConstraintSet cst_set,
pose::Pose const &  pose 
)
staticprotected
void core::scoring::constraints::ConstraintIO::read_cst_coordinates ( std::istream &  data,
std::string &  next_section,
ConstraintSet cst_set,
pose::Pose const &  pose 
)
staticprotected
ConstraintOP core::scoring::constraints::ConstraintIO::read_individual_constraint_new ( std::istream &  data,
core::pose::Pose const &  pose,
FuncFactory const &  func_factory 
)
static

read one individual constraint defined.

read in each individual constraint. The constraints could be single-line ones such as AtomPair, Angle and Diehedral, or multi-line ones such as Multiconstraint and Ambiguous. Return owing pointer of the constraint if read in successfully, otherwise return NULL. Identify the type of constraint and call each constraint's read_def function to finish reading. Skip lines beginning with '#' or '
' May be called recursively in the case of Multiconstraint and AmbiguousConstraint.

Note
the istream data should point to the beginning of a line when this function is called.

References core::pack::dunbrack::c, and core::scoring::constraints::tr().

Referenced by read_constraints_new(), core::scoring::constraints::AmbiguousConstraint::read_def(), core::scoring::constraints::KofNConstraint::read_def(), and core::scoring::constraints::MultiConstraint::read_def().

ConstraintOP core::scoring::constraints::ConstraintIO::read_individual_constraint_new ( std::istream &  data,
core::pose::Pose const &  pose,
FuncFactory const &  func_factory,
std::string  type 
)
static
void core::scoring::constraints::ConstraintIO::write_constraints ( std::ostream &  out,
ConstraintSet const &  cst_set,
core::pose::Pose const &  pose 
)
static
void core::scoring::constraints::ConstraintIO::write_constraints ( std::string const &  filename,
ConstraintSet const &  cst_set,
core::pose::Pose const &  pose 
)
static

References write_constraints().

Member Data Documentation

FuncFactory core::scoring::constraints::ConstraintIO::func_factory_
staticprivate
ConstraintIO * core::scoring::constraints::ConstraintIO::instance_ = 0
staticprivate

Referenced by get_instance().


The documentation for this class was generated from the following files: