Rosetta
|
#include <KDPoint.hh>
Public Member Functions | |
~KDPoint () override | |
Automatically generated virtual destructor for class deriving directly from VirtualBase. More... | |
KDPoint () | |
KDPoint (utility::vector1< numeric::Real > location) | |
KDPoint (utility::vector1< numeric::Real > location, utility::VirtualBaseOP data) | |
KDPoint (utility::vector1< numeric::Real > location, numeric::Real distance) | |
KDPoint (utility::vector1< numeric::Real > location, utility::VirtualBaseOP data, numeric::Real distance) | |
KDPoint (KDPoint const &src) | |
copy constructor More... | |
utility::vector1< numeric::Real > const & | const_location () const |
Returns a const reference to the location of this point in k-space. More... | |
numeric::Size | size () const |
Returns the number of dimensions for the space in which this point lives. More... | |
utility::vector1< numeric::Real > | location () const |
Returns to the location of this point in k-space. More... | |
utility::VirtualBaseOP | data () const |
Returns the data associated with this class. More... | |
numeric::Real | distance () const |
getter for distance() from this point to an arbitrary point in kd-space. More... | |
void | distance (numeric::Real dist) |
Sets the distance to an arbitrary point. More... | |
void | location (utility::vector1< numeric::Real > dat) |
sets the location of this point in k-space. More... | |
KDPoint & | operator= (KDPoint const &src) |
Assignment operator for KDPoint class. More... | |
bool | operator== (KDPoint const &other) const |
Equality operator. Compares location() and distance(), ignores data(). More... | |
void | show (std::ostream &out) const |
Prints the definition of this object to the given ostream. More... | |
std::string | to_string () const |
Returns a stringified version of this object. More... | |
void | read_data (std::istream &in) |
Reads the definition for this object from the given istream. More... | |
![]() | |
VirtualBase ()=default | |
Default constructor. More... | |
virtual | ~VirtualBase ()=default |
The virtual destructor is one of the main reasons for the VirtualBase class. More... | |
VirtualBase (VirtualBase const &)=default | |
VirtualBase (VirtualBase &&)=default | |
VirtualBase & | operator= (VirtualBase const &)=default |
VirtualBase & | operator= (VirtualBase &&)=default |
Private Attributes | |
utility::vector1< numeric::Real > | location_ |
utility::VirtualBaseOP | data_ |
numeric::Real | distance_ |
|
overridedefault |
Automatically generated virtual destructor for class deriving directly from VirtualBase.
Auto-generated virtual destructor
|
default |
numeric::kdtree::KDPoint::KDPoint | ( | utility::vector1< numeric::Real > | location | ) |
numeric::kdtree::KDPoint::KDPoint | ( | utility::vector1< numeric::Real > | location, |
utility::VirtualBaseOP | data | ||
) |
numeric::kdtree::KDPoint::KDPoint | ( | utility::vector1< numeric::Real > | location, |
numeric::Real | distance | ||
) |
numeric::kdtree::KDPoint::KDPoint | ( | utility::vector1< numeric::Real > | location, |
utility::VirtualBaseOP | data, | ||
numeric::Real | distance | ||
) |
numeric::kdtree::KDPoint::KDPoint | ( | KDPoint const & | src | ) |
copy constructor
utility::vector1< numeric::Real > const & numeric::kdtree::KDPoint::const_location | ( | ) | const |
Returns a const reference to the location of this point in k-space.
References location_.
utility::VirtualBaseOP numeric::kdtree::KDPoint::data | ( | ) | const |
Returns the data associated with this class.
References data_.
Referenced by operator=(), and to_string().
numeric::Real numeric::kdtree::KDPoint::distance | ( | ) | const |
getter for distance() from this point to an arbitrary point in kd-space.
References distance_.
Referenced by operator=(), operator==(), and show().
void numeric::kdtree::KDPoint::distance | ( | numeric::Real | dist | ) |
utility::vector1< numeric::Real > numeric::kdtree::KDPoint::location | ( | ) | const |
Returns to the location of this point in k-space.
References location_.
Referenced by operator=(), and operator==().
void numeric::kdtree::KDPoint::location | ( | utility::vector1< numeric::Real > | dat | ) |
sets the location of this point in k-space.
References hist2d::dat, and location_.
Assignment operator for KDPoint class.
References data(), data_, distance(), distance_, location(), and location_.
bool numeric::kdtree::KDPoint::operator== | ( | KDPoint const & | other | ) | const |
Equality operator. Compares location() and distance(), ignores data().
References distance(), and location().
void numeric::kdtree::KDPoint::read_data | ( | std::istream & | in | ) |
Reads the definition for this object from the given istream.
References hist2d::dat, data_, create_a3b_hbs::ii, and location_.
void numeric::kdtree::KDPoint::show | ( | std::ostream & | out | ) | const |
Prints the definition of this object to the given ostream.
References distance(), and to_string().
Referenced by pyrosetta.distributed.viewer.core.Viewer::__call__().
numeric::Size numeric::kdtree::KDPoint::size | ( | ) | const |
Returns the number of dimensions for the space in which this point lives.
References location_.
Referenced by to_string().
std::string numeric::kdtree::KDPoint::to_string | ( | ) | const |
|
private |
Referenced by data(), operator=(), and read_data().
|
private |
Referenced by distance(), and operator=().
|
private |
Referenced by const_location(), location(), operator=(), read_data(), size(), and to_string().