Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
numeric::kdtree::KDPoint Class Reference

#include <KDPoint.hh>

Inheritance diagram for numeric::kdtree::KDPoint:
Inheritance graph
[legend]

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::Reallocation () 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...
 
KDPointoperator= (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...
 
- Public Member Functions inherited from utility::VirtualBase
 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
 
VirtualBaseoperator= (VirtualBase const &)=default
 
VirtualBaseoperator= (VirtualBase &&)=default
 

Private Attributes

utility::vector1< numeric::Reallocation_
 
utility::VirtualBaseOP data_
 
numeric::Real distance_
 

Constructor & Destructor Documentation

numeric::kdtree::KDPoint::~KDPoint ( )
overridedefault

Automatically generated virtual destructor for class deriving directly from VirtualBase.

Auto-generated virtual destructor

numeric::kdtree::KDPoint::KDPoint ( )
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

Member Function Documentation

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)

Sets the distance to an arbitrary point.

References distance_.

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 location_.

KDPoint & numeric::kdtree::KDPoint::operator= ( KDPoint const &  src)

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 data_, test.T200_Scoring::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

Returns a stringified version of this object.

should look like: KDPOINT ndim val1 val2 val3 DATA <data definition>="">

References data(), utility::pointer::dynamic_pointer_cast(), basic::options::OptionKeys::cutoutdomain::end, location_, size(), and ObjexxFCL::string_of().

Referenced by show().

Member Data Documentation

utility::VirtualBaseOP numeric::kdtree::KDPoint::data_
private

Referenced by data(), operator=(), and read_data().

numeric::Real numeric::kdtree::KDPoint::distance_
private

Referenced by distance(), and operator=().

utility::vector1< numeric::Real > numeric::kdtree::KDPoint::location_
private

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