Rosetta  2021.16
 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]

Public Types

typedef utility::vector1
< core::Size
ClusterNdxList
 
typedef utility::vector1
< core::Size
ClusterTypList
 
typedef utility::vector1
< core::Real
ClusterDisList
 

Public Member Functions

 ~KClusterElement () override
 Automatically generated virtual destructor for class deriving directly from VirtualBase. More...
 
 KClusterElement ()
 
 KClusterElement (core::Size nd)
 
void assign_type_data (core::Size, core::Size, core::Real)
 assign a data into a cluster More...
 
void add_new_data (core::Size ndx_data)
 add a new struture ndx to the data_ndx_ More...
 
void add_new_cluster (core::Size ndx_data)
 add a new cluster center's data_ndx More...
 
void set_cluster (core::Size ndx_cluster, core::Size ndx_data)
 set a cluster center's data_ndx More...
 
core::Size get_type (core::Size ndx_data) const
 return data's type(local cluster index) More...
 
core::Real get_distance (core::Size ndx_data) const
 return distance between data and center More...
 
core::Size get_center_ndx (core::Size ndx_cluster) const
 return cluster center's data_ndx More...
 
const utility::vector1
< core::Size > & 
get_ndx_list () const
 return the data ndx list of this cluster More...
 
const utility::vector1
< core::Size > & 
get_ndx_list (core::Size c) const
 return the ndx list of sub-cluster More...
 
KClusterElementOP get_subcluster (core::Size nc) const
 return the subcluster More...
 
core::Size ncluster ()
 
core::Size get_cur_ncluster () const
 return current cluster number More...
 
core::Size get_ndata () const
 return current data number More...
 
core::Size get_data_ndx (core::Size ndx_data) const
 return current data number More...
 
core::Real get_max_distance () const
 
core::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_
 
core::Real max_distance_
 
core::Size max_dist_ndx_
 
bool edit_mode
 

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::toolbox::KClusterElement::~KClusterElement ( )
overridedefault

Automatically generated virtual destructor for class deriving directly from VirtualBase.

Auto-generated virtual destructor

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

Referenced by add_new_cluster().

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

References data_ndx_.

Member Function Documentation

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

add a new cluster center's data_ndx

References center_ndx_, KClusterElement(), and subclusters_.

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

add a new struture ndx to the data_ndx_

References data_ndx_, dist_list_, and type_list_.

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

assign a data into a cluster

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

check the list, close edit mode

References edit_mode.

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

clean the subcluster's list, open edit mode

References edit_mode, max_dist_ndx_, max_distance_, and subclusters_.

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

clean the data list

References data_ndx_, dist_list_, and type_list_.

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

return cluster center's data_ndx

References center_ndx_.

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

return current cluster number

References subclusters_.

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

return current data number

References data_ndx_.

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

return distance between data and center

References dist_list_.

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

References max_dist_ndx_.

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

References max_distance_.

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

return current data number

References data_ndx_.

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

return the data ndx list of this cluster

References data_ndx_.

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

return the ndx list of sub-cluster

References core::pack::dunbrack::c, and subclusters_.

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

return the subcluster

References subclusters_.

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

return data's type(local cluster index)

References type_list_.

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

References center_ndx_.

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

set a cluster center's data_ndx

References center_ndx_.

Member Data Documentation

ClusterNdxList protocols::toolbox::KClusterElement::center_ndx_
private
ClusterNdxList protocols::toolbox::KClusterElement::data_ndx_
private
ClusterDisList protocols::toolbox::KClusterElement::dist_list_
private
bool protocols::toolbox::KClusterElement::edit_mode
private

Referenced by check(), and clear().

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

Referenced by clear(), and get_max_dist_ndx().

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

Referenced by clear(), and get_max_distance().

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

Referenced by add_new_data(), clear_data(), and get_type().


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