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

#include <KCluster.hh>

Inheritance diagram for protocols::toolbox::KClusterElement:
Inheritance graph
[legend]
Collaboration diagram for protocols::toolbox::KClusterElement:
Collaboration graph
[legend]

Public Types

typedef utility::vector1< SizeClusterNdxList
 
typedef utility::vector1< SizeClusterTypList
 
typedef utility::vector1< RealClusterDisList
 

Public Member Functions

virtual ~KClusterElement ()
 Automatically generated virtual destructor for class deriving directly from ReferenceCount. More...
 
 KClusterElement ()
 
 KClusterElement (Size nd)
 
void assign_type_data (Size, Size, Real)
 assign a data into a cluster More...
 
void add_new_data (Size ndx_data)
 add a new struture ndx to the data_ndx_ More...
 
void add_new_cluster (Size ndx_data)
 add a new cluster center's data_ndx More...
 
void set_cluster (Size ndx_cluster, Size ndx_data)
 set a cluster center's data_ndx More...
 
Size get_type (Size ndx_data) const
 return data's type(local cluster index) More...
 
Real get_distance (Size ndx_data) const
 return distance between data and center More...
 
Size get_center_ndx (Size ndx_cluster) const
 return cluster center's data_ndx More...
 
const utility::vector1< Size > & get_ndx_list () const
 return the data ndx list of this cluster More...
 
const utility::vector1< Size > & get_ndx_list (Size c) const
 return the ndx list of sub-cluster More...
 
KClusterElementOP get_subcluster (Size nc) const
 return the subcluster More...
 
Size ncluster ()
 
Size get_cur_ncluster () const
 return current cluster number More...
 
Size get_ndata () const
 return current data number More...
 
Size get_data_ndx (Size ndx_data) const
 return current data number More...
 
Real get_max_distance () const
 
Size get_max_dist_ndx () const
 
void clear_data ()
 clean the data list More...
 
void clear ()
 clean the subcluster's list, open edit mode More...
 
void check ()
 check the list, close edit mode More...
 

Private Attributes

ClusterNdxList data_ndx_
 
ClusterTypList type_list_
 
ClusterDisList dist_list_
 
ClusterNdxList center_ndx_
 
utility::vector1
< KClusterElementOP
subclusters_
 
Size n_data_
 
Real max_distance_
 
Size max_dist_ndx_
 
bool edit_mode
 

Detailed Description

Definition at line 43 of file KCluster.hh.

Member Typedef Documentation

Definition at line 50 of file KCluster.hh.

Definition at line 48 of file KCluster.hh.

Definition at line 49 of file KCluster.hh.

Constructor & Destructor Documentation

protocols::toolbox::KClusterElement::~KClusterElement ( )
virtual

Automatically generated virtual destructor for class deriving directly from ReferenceCount.

Auto-generated virtual destructor

Definition at line 62 of file KCluster.cc.

protocols::toolbox::KClusterElement::KClusterElement ( )
inline

Definition at line 52 of file KCluster.hh.

protocols::toolbox::KClusterElement::KClusterElement ( Size  nd)
inline

Definition at line 57 of file KCluster.hh.

Member Function Documentation

void protocols::toolbox::KClusterElement::add_new_cluster ( Size  ndx_data)
inline

add a new cluster center's data_ndx

Definition at line 81 of file KCluster.hh.

void protocols::toolbox::KClusterElement::add_new_data ( Size  ndx_data)
inline

add a new struture ndx to the data_ndx_

Definition at line 72 of file KCluster.hh.

void protocols::toolbox::KClusterElement::assign_type_data ( Size  ndx_data,
Size  ndx_cluster,
Real  d 
)

assign a data into a cluster

Definition at line 157 of file KCluster.cc.

void protocols::toolbox::KClusterElement::check ( )
inline

check the list, close edit mode

Definition at line 182 of file KCluster.hh.

void protocols::toolbox::KClusterElement::clear ( )
inline

clean the subcluster's list, open edit mode

Definition at line 169 of file KCluster.hh.

void protocols::toolbox::KClusterElement::clear_data ( )
inline

clean the data list

Definition at line 162 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::get_center_ndx ( Size  ndx_cluster) const
inline

return cluster center's data_ndx

Definition at line 106 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::get_cur_ncluster ( ) const
inline

return current cluster number

Definition at line 134 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::get_data_ndx ( Size  ndx_data) const
inline

return current data number

Definition at line 146 of file KCluster.hh.

Real protocols::toolbox::KClusterElement::get_distance ( Size  ndx_data) const
inline

return distance between data and center

Definition at line 100 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::get_max_dist_ndx ( ) const
inline

Definition at line 156 of file KCluster.hh.

Real protocols::toolbox::KClusterElement::get_max_distance ( ) const
inline

Definition at line 151 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::get_ndata ( ) const
inline

return current data number

Definition at line 140 of file KCluster.hh.

const utility::vector1<Size>& protocols::toolbox::KClusterElement::get_ndx_list ( ) const
inline

return the data ndx list of this cluster

Definition at line 112 of file KCluster.hh.

const utility::vector1<Size>& protocols::toolbox::KClusterElement::get_ndx_list ( Size  c) const
inline

return the ndx list of sub-cluster

Definition at line 118 of file KCluster.hh.

References core::pack::dunbrack::c.

KClusterElementOP protocols::toolbox::KClusterElement::get_subcluster ( Size  nc) const
inline

return the subcluster

Definition at line 124 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::get_type ( Size  ndx_data) const
inline

return data's type(local cluster index)

Definition at line 94 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::ncluster ( )
inline

Definition at line 129 of file KCluster.hh.

void protocols::toolbox::KClusterElement::set_cluster ( Size  ndx_cluster,
Size  ndx_data 
)
inline

set a cluster center's data_ndx

Definition at line 88 of file KCluster.hh.

Member Data Documentation

ClusterNdxList protocols::toolbox::KClusterElement::center_ndx_
private

Definition at line 193 of file KCluster.hh.

ClusterNdxList protocols::toolbox::KClusterElement::data_ndx_
private

Definition at line 189 of file KCluster.hh.

ClusterDisList protocols::toolbox::KClusterElement::dist_list_
private

Definition at line 191 of file KCluster.hh.

bool protocols::toolbox::KClusterElement::edit_mode
private

Definition at line 200 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::max_dist_ndx_
private

Definition at line 198 of file KCluster.hh.

Real protocols::toolbox::KClusterElement::max_distance_
private

Definition at line 197 of file KCluster.hh.

Size protocols::toolbox::KClusterElement::n_data_
private

Definition at line 196 of file KCluster.hh.

utility::vector1< KClusterElementOP > protocols::toolbox::KClusterElement::subclusters_
private

Definition at line 194 of file KCluster.hh.

ClusterTypList protocols::toolbox::KClusterElement::type_list_
private

Definition at line 190 of file KCluster.hh.


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