Rosetta
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

◆ ~KDPoint()

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

Automatically generated virtual destructor for class deriving directly from VirtualBase.

Auto-generated virtual destructor

◆ KDPoint() [1/6]

numeric::kdtree::KDPoint::KDPoint ( )
default

◆ KDPoint() [2/6]

numeric::kdtree::KDPoint::KDPoint ( utility::vector1< numeric::Real location)

◆ KDPoint() [3/6]

numeric::kdtree::KDPoint::KDPoint ( utility::vector1< numeric::Real location,
utility::VirtualBaseOP  data 
)

◆ KDPoint() [4/6]

numeric::kdtree::KDPoint::KDPoint ( utility::vector1< numeric::Real location,
numeric::Real  distance 
)

◆ KDPoint() [5/6]

numeric::kdtree::KDPoint::KDPoint ( utility::vector1< numeric::Real location,
utility::VirtualBaseOP  data,
numeric::Real  distance 
)

◆ KDPoint() [6/6]

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

copy constructor

Member Function Documentation

◆ const_location()

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

◆ data()

utility::VirtualBaseOP numeric::kdtree::KDPoint::data ( ) const

Returns the data associated with this class.

References data_.

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

◆ distance() [1/2]

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().

◆ distance() [2/2]

void numeric::kdtree::KDPoint::distance ( numeric::Real  dist)

Sets the distance to an arbitrary point.

References dist(), and distance_.

◆ location() [1/2]

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==().

◆ location() [2/2]

void numeric::kdtree::KDPoint::location ( utility::vector1< numeric::Real dat)

sets the location of this point in k-space.

References hist2d::dat, and location_.

◆ operator=()

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

Assignment operator for KDPoint class.

References data(), data_, distance(), distance_, location(), and location_.

◆ operator==()

bool numeric::kdtree::KDPoint::operator== ( KDPoint const &  other) const

Equality operator. Compares location() and distance(), ignores data().

References distance(), and location().

◆ read_data()

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

◆ show()

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__().

◆ size()

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().

◆ 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(), end, location_, size(), and ObjexxFCL::string_of().

Referenced by show().

Member Data Documentation

◆ data_

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

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

◆ distance_

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

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

◆ location_

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

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