Rosetta 3.4
Public Types | Public Member Functions | Static Public Member Functions
core::pack::task::operation::TaskOperationFactory Class Reference

#include <TaskOperationFactory.hh>

Inheritance diagram for core::pack::task::operation::TaskOperationFactory:
Inheritance graph
[legend]
Collaboration diagram for core::pack::task::operation::TaskOperationFactory:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
utility::pointer::ReferenceCount 
parent
typedef utility::vector1
< TaskOperationOP
TaskOperationOPs
typedef std::map< std::string,
TaskOperationCreatorOP
TaskOperationCreatorMap
typedef utility::tag::Tag Tag
typedef utility::tag::TagPtr TagPtr

Public Member Functions

void factory_register (TaskOperationCreatorOP)
void add_creator (TaskOperationCreatorOP)
 add a prototype, using its default type name as the map key
bool has_type (std::string const &) const
void add_creator (ResLvlTaskOperationCreatorOP)
 pass through to child factories
void add_creator (ResFilterCreatorOP)
TaskOperationOP newTaskOperation (std::string const &, TagPtr=new Tag) const
 return new TaskOperation by key lookup in task_operation_creator_map_ (new TaskOperation parses Tag if provided)
void newTaskOperations (TaskOperationOPs &, TagPtr) const
 fills vector with new TaskOperations from nested "TASKOPERATIONS" TagPtr
void newTaskOperations (TaskOperationOPs &, std::string const &) const
 fills vector with new TaskOperations from xml-like tag file

Static Public Member Functions

static TaskOperationFactoryget_instance ()

Member Typedef Documentation


Member Function Documentation

void core::pack::task::operation::TaskOperationFactory::add_creator ( TaskOperationCreatorOP  creator)

add a prototype, using its default type name as the map key

adds a ResFilter prototype creator to the child ResFilterFactory

adds a ResLvlTaskOperation prototype creator to the child ResLvlTaskOperationFactory

add a TaskOperation prototype creator

Referenced by factory_register().

void core::pack::task::operation::TaskOperationFactory::add_creator ( ResLvlTaskOperationCreatorOP  )

pass through to child factories

void core::pack::task::operation::TaskOperationFactory::add_creator ( ResFilterCreatorOP  )
void core::pack::task::operation::TaskOperationFactory::factory_register ( TaskOperationCreatorOP  creator)

References add_creator().

TaskOperationFactory * core::pack::task::operation::TaskOperationFactory::get_instance ( ) [static]
bool core::pack::task::operation::TaskOperationFactory::has_type ( std::string const &  type) const
TaskOperationOP core::pack::task::operation::TaskOperationFactory::newTaskOperation ( std::string const &  type,
TagPtr  tag = new Tag 
) const

return new TaskOperation by key lookup in task_operation_creator_map_ (new TaskOperation parses Tag if provided)

Example Tag syntax for parser as of Summer 2009

<ReadResfile name="rrf" filename="myresfile/">

or

<OperateOnCertainResidues name="PROTEINnopack"> <PreventRepackingRLT> <ResidueHasProperty property="PROTEIN/"> </OperateOnCertainResidues>

References core::pack::task::operation::TR().

Referenced by newTaskOperations(), and protocols::match::TaskOperationMPM::TaskOperationMPM().

void core::pack::task::operation::TaskOperationFactory::newTaskOperations ( TaskOperationOPs tops,
TagPtr  tag 
) const

fills vector with new TaskOperations from nested "TASKOPERATIONS" TagPtr

recurse tag file to find TASKOPERATIONS definitions

References newTaskOperation(), and core::pack::task::operation::TR().

Referenced by newTaskOperations().

void core::pack::task::operation::TaskOperationFactory::newTaskOperations ( TaskOperationOPs tops,
std::string const &  tagfilename 
) const

fills vector with new TaskOperations from xml-like tag file

References newTaskOperations(), and core::pack::task::operation::TR().


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