DAS  3.0
Das Analysis System
ClosestPair2DBaseabstract
+ Inheritance diagram for ClosestPair2DBase:

Public Member Functions

virtual void closest_pair (unsigned int &ID1, unsigned int &ID2, double &distance2) const =0
 
virtual void remove (unsigned int ID)=0
 
virtual unsigned int insert (const Coord2D &position)=0
 
virtual unsigned int replace (unsigned int ID1, unsigned int ID2, const Coord2D &position)
 
virtual void replace_many (const std::vector< unsigned int > &IDs_to_remove, const std::vector< Coord2D > &new_positions, std::vector< unsigned int > &new_IDs)
 
virtual unsigned int size ()=0
 
virtual ~ClosestPair2DBase ()
 

Constructor & Destructor Documentation

◆ ~ClosestPair2DBase()

virtual ~ClosestPair2DBase ( )
inlinevirtual
722 {};

Member Function Documentation

◆ closest_pair()

virtual void closest_pair ( unsigned int &  ID1,
unsigned int &  ID2,
double &  distance2 
) const
pure virtual

Implemented in ClosestPair2D.

◆ insert()

virtual unsigned int insert ( const Coord2D position)
pure virtual

Implemented in ClosestPair2D.

◆ remove()

virtual void remove ( unsigned int  ID)
pure virtual

Implemented in ClosestPair2D.

◆ replace()

virtual unsigned int replace ( unsigned int  ID1,
unsigned int  ID2,
const Coord2D position 
)
inlinevirtual

Reimplemented in ClosestPair2D.

706  {
707  remove(ID1);
708  remove(ID2);
709  unsigned new_ID = insert(position);
710  return(new_ID);
711  };

◆ replace_many()

virtual void replace_many ( const std::vector< unsigned int > &  IDs_to_remove,
const std::vector< Coord2D > &  new_positions,
std::vector< unsigned int > &  new_IDs 
)
inlinevirtual

Reimplemented in ClosestPair2D.

714  {
715  for(unsigned i = 0; i < IDs_to_remove.size(); i++) {
716  remove(IDs_to_remove[i]);}
717  new_IDs.resize(0);
718  for(unsigned i = 0; i < new_positions.size(); i++) {
719  new_IDs.push_back(insert(new_positions[i]));}
720  }

◆ size()

virtual unsigned int size ( )
pure virtual

Implemented in ClosestPair2D.


The documentation for this class was generated from the following file:
ClosestPair2DBase::remove
virtual void remove(unsigned int ID)=0
ClosestPair2DBase::insert
virtual unsigned int insert(const Coord2D &position)=0