xc
Public Types | Public Member Functions | Protected Member Functions | List of all members
XC::DqPtrsKDTree< T, KDTree > Class Template Reference

Container with a KDTree. More...

#include <DqPtrsKDTree.h>

Inheritance diagram for XC::DqPtrsKDTree< T, KDTree >:
XC::DqPtrs< T >

Public Types

typedef DqPtrs< T >::const_iterator const_iterator
 
typedef DqPtrs< T >::iterator iterator
 
typedef DqPtrs< T >::reference reference
 
typedef DqPtrs< T >::const_reference const_reference
 
typedef DqPtrs< T >::size_type size_type
 
- Public Types inherited from XC::DqPtrs< T >
typedef std::deque< T * > lst_ptr
 
typedef lst_ptr::const_iterator const_iterator
 
typedef lst_ptr::iterator iterator
 
typedef lst_ptr::reference reference
 
typedef lst_ptr::const_reference const_reference
 
typedef lst_ptr::size_type size_type
 
typedef boost::indirect_iterator< iterator > indIterator
 

Public Member Functions

 DqPtrsKDTree (CommandEntity *owr=nullptr)
 Constructor.
 
 DqPtrsKDTree (const DqPtrsKDTree &)
 Copy constructor.
 
 DqPtrsKDTree (const std::deque< T *> &)
 Copy constructor.
 
 DqPtrsKDTree (const std::set< const T *> &)
 Copy constructor.
 
DqPtrsKDTreeoperator= (const DqPtrsKDTree &)
 Assignment operator.
 
DqPtrsKDTreeoperator+= (const DqPtrsKDTree &)
 += operator.
 
void extend (const DqPtrsKDTree &)
 Extend this container with the elements of the container being passed as parameter. More...
 
bool push_back (T *)
 Inserts an object at the end of the container.
 
bool push_front (T *)
 Inserts an object at the begining of the container.
 
void clearAll (void)
 Clears out the list of pointers and erases the properties of the object (if any).
 
T * getNearest (const Pos3d &p)
 Returns the object closest to the point being passed as parameter.
 
const T * getNearest (const Pos3d &p) const
 Returns the object closest to the point being passed as parameter.
 
- Public Member Functions inherited from XC::DqPtrs< T >
 DqPtrs (CommandEntity *owr=nullptr)
 Constructor.
 
 DqPtrs (const DqPtrs &)
 Copy constructor.
 
 DqPtrs (const std::deque< T *> &ts)
 Copy from deque container.
 
 DqPtrs (const std::set< const T *> &ts)
 Copy from set container.
 
DqPtrsoperator= (const DqPtrs &)
 Assignment operator.
 
DqPtrsoperator+= (const DqPtrs &)
 += (union) operator.
 
void extend (const DqPtrs &)
 Extend this container with the pointers from the container being passed as parameter. More...
 
bool push_back (T *)
 
bool push_front (T *)
 
bool empty (void) const
 
iterator begin (void)
 
const_iterator begin (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
indIterator indBegin (void)
 
indIterator indEnd (void)
 
const T & get (const size_t &i) const
 Access specified node with bounds checking.
 
void clear (void)
 Clears out the list of pointers.
 
void clearAll (void)
 Clears out the list of pointers and erases the properties of the object (if any).
 
size_type size (void) const
 
bool in (const T *) const
 Returns true if the pointer is in the container.
 
const IDgetTags (void) const
 Returns the tags of the objects.
 
template<class InputIterator >
void insert (iterator pos, InputIterator f, InputIterator l)
 
int sendTags (int posSz, int posDbTag, DbTagData &dt, CommParameters &cp)
 Sends the dbTags of the sets trough the channel being passed as parameter.
 
const IDreceiveTags (int posSz, int pDbTg, DbTagData &dt, const CommParameters &cp)
 Sends the dbTags of the sets through the channel being passed as parameter.
 

Protected Member Functions

void create_tree (void)
 Creates the KD tree.
 

Detailed Description

template<class T, class KDTree>
class XC::DqPtrsKDTree< T, KDTree >

Container with a KDTree.

Member Function Documentation

§ extend()

template<class T , class KDTree >
void XC::DqPtrsKDTree< T, KDTree >::extend ( const DqPtrsKDTree< T, KDTree > &  other)

Extend this container with the elements of the container being passed as parameter.


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