Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
protocols::nonlocal::Chunk Class Reference

#include <Chunk.hh>

Inheritance diagram for protocols::nonlocal::Chunk:
Inheritance graph
[legend]
Collaboration diagram for protocols::nonlocal::Chunk:
Collaboration graph
[legend]

Public Member Functions

 Chunk (const RegionOP &region, const MoveMapOP &movable)
 Default constructor <region> describes the contiguous stretch of residues. <movable> describes the modifiable degrees of freedom in the system. More...
 
 Chunk (const Chunk &other)
 Copy constructor. More...
 
virtual ~Chunk ()
 Destructor. More...
 
Chunkoperator= (const Chunk &other)
 Assignment operator. More...
 
Size choose () const
 Chooses an allowable insertion position on [start, stop] according to the probability distribution. More...
 
Size start () const
 Lower boundary of this chunk. More...
 
Size stop () const
 Upper boundary of this chunk. More...
 
Size length () const
 Returns the length of this region. More...
 
bool is_movable () const
 Returns true if at least one position on [start(), stop()] is movable. More...
 
bool valid () const
 Returns true if there is at least one valid insertion position in the closed region [start(), stop()], false otherwise. More...
 

Private Types

typedef boost::math::normal Normal
 
typedef core::Size Size
 
typedef core::kinematics::MoveMapOP MoveMapOP
 

Private Attributes

RegionOP region_
 
MoveMapOP movable_
 
boost::scoped_ptr
< numeric::random::DistributionSampler
< Normal > > 
sampler_
 

Detailed Description

Definition at line 42 of file Chunk.hh.

Member Typedef Documentation

Definition at line 45 of file Chunk.hh.

typedef boost::math::normal protocols::nonlocal::Chunk::Normal
private

Definition at line 43 of file Chunk.hh.

Definition at line 44 of file Chunk.hh.

Constructor & Destructor Documentation

protocols::nonlocal::Chunk::Chunk ( const RegionOP region,
const MoveMapOP movable 
)

Default constructor <region> describes the contiguous stretch of residues. <movable> describes the modifiable degrees of freedom in the system.

Definition at line 59 of file Chunk.cc.

References SALT, sampler_, SD_MULTIPLIER, start(), and stop().

protocols::nonlocal::Chunk::Chunk ( const Chunk other)

Copy constructor.

Definition at line 74 of file Chunk.cc.

References sampler_.

protocols::nonlocal::Chunk::~Chunk ( )
virtual

Destructor.

Definition at line 39 of file Chunk.cc.

Member Function Documentation

Size protocols::nonlocal::Chunk::choose ( ) const

Chooses an allowable insertion position on [start, stop] according to the probability distribution.

Definition at line 94 of file Chunk.cc.

References movable_, sampler_, start(), stop(), and valid().

Referenced by protocols::nonlocal::SingleFragmentMover::apply().

bool protocols::nonlocal::Chunk::is_movable ( ) const

Returns true if at least one position on [start(), stop()] is movable.

Definition at line 123 of file Chunk.cc.

References movable_, start(), and stop().

Referenced by protocols::nonlocal::SingleFragmentMover::initialize_chunks(), and valid().

Size protocols::nonlocal::Chunk::length ( ) const

Returns the length of this region.

Definition at line 117 of file Chunk.cc.

References region_.

Chunk & protocols::nonlocal::Chunk::operator= ( const Chunk other)

Assignment operator.

Definition at line 80 of file Chunk.cc.

References movable_, region_, and sampler_.

Size protocols::nonlocal::Chunk::start ( ) const

Lower boundary of this chunk.

Definition at line 109 of file Chunk.cc.

References region_.

Referenced by choose(), Chunk(), is_movable(), and valid().

Size protocols::nonlocal::Chunk::stop ( ) const

Upper boundary of this chunk.

Definition at line 113 of file Chunk.cc.

References region_.

Referenced by choose(), Chunk(), is_movable(), and valid().

bool protocols::nonlocal::Chunk::valid ( ) const

Returns true if there is at least one valid insertion position in the closed region [start(), stop()], false otherwise.

Definition at line 132 of file Chunk.cc.

References is_movable(), start(), and stop().

Referenced by choose().

Member Data Documentation

MoveMapOP protocols::nonlocal::Chunk::movable_
private

Definition at line 88 of file Chunk.hh.

Referenced by choose(), is_movable(), and operator=().

RegionOP protocols::nonlocal::Chunk::region_
private

Definition at line 87 of file Chunk.hh.

Referenced by length(), operator=(), start(), and stop().

boost::scoped_ptr<numeric::random::DistributionSampler<Normal> > protocols::nonlocal::Chunk::sampler_
private

Definition at line 89 of file Chunk.hh.

Referenced by choose(), Chunk(), and operator=().


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