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_
 

Member Typedef Documentation

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

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.

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

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

Copy constructor.

References sampler_.

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

Destructor.

Member Function Documentation

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

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

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.

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.

References region_.

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

Assignment operator.

References movable_, region_, and sampler_.

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

Lower boundary of this chunk.

References region_.

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

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

Upper boundary of this chunk.

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.

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

Referenced by choose().

Member Data Documentation

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

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

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

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

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

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


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