![]() |
|
PhoenixGraph
01.0.0
Set of tools to simplify graph manipulation
|
Describes only the PNTreeClass tree, without the size. More...
#include <PNTreeLight.h>
Public Member Functions | |
| bool | addElement (T *posData, U *data) |
| Add an element in the PNTreeLightNode. | |
| const U * | getCloserData (T *posData) const |
| Get the closer data from the given position. | |
| const U * | getCloserDataDist (T &distFromCloserData, T *posData) const |
| Get the closer data from the given position. | |
| const U * | getLastData (T *posData) const |
| Get the data of the last node in the N tree. | |
| PNTreeLight & | operator= (const PNTreeLight< T, U, N > &other) |
| Definition of equal operator of PNTreeLight. | |
| PNTreeLight () | |
| Default constructeur of PNTreeLight. | |
| PNTreeLight (T pos[N], T size[N], T sizeLimit=1e-5) | |
| Default constructeur of PNTreeLight. | |
| bool | saveGnuplotData (const std::string &fileName) |
| Saves the PNTreeLight into a txt file for gnuplot. | |
| bool | saveGnuplotData (std::ofstream &fs, T height) |
| Saves the PNTreeLight into a txt file for gnuplot. | |
| void | setLimitSize (T limitSize) |
| Set the limit size of the PNTreeLight cells. | |
| void | setPosition (T pos[N]) |
| Set the position of the PNTreeLight. | |
| void | setSize (T size[N]) |
| Set the size of the PNTreeLight. | |
| virtual | ~PNTreeLight () |
| Destructeur of PNTreeLight. | |
Protected Member Functions | |
| void | copyPNTreeLight (const PNTreeLight< T, U, N > &other) |
| Copy function of PNTreeLight. | |
Private Member Functions | |
| void | initialisationPNTreeLight (T pos[N], T size[N], T sizeLimit) |
| Initialisation function of the class PNTreeLight. | |
| PNTreeLight (const PNTreeLight< T, U, N > &other) | |
| Copy constructor of PNTreeLight. | |
Private Attributes | |
| PNTreeLightNode< T, U, N > | p_node |
| Table of the children of the current node. | |
| T | p_pos [N] |
| Position of the hyper cube. | |
| T | p_size [N] |
| Size of the hyper cube. | |
| T | p_sizeLimit |
| Size limit of the cells. | |
Describes only the PNTreeClass tree, without the size.
Definition at line 14 of file PNTreeLight.h.
| PNTreeLight< T, U, N >::PNTreeLight | ( | ) |
Default constructeur of PNTreeLight.
Definition at line 16 of file PNTreeLight_impl.h.
References p_sizeLimit.
Referenced by copyPNTreeLight(), operator=(), and PNTreeLight().
Here is the caller graph for this function:| PNTreeLight< T, U, N >::PNTreeLight | ( | T | pos[N], |
| T | size[N], | ||
| T | sizeLimit = 1e-5 ) |
Default constructeur of PNTreeLight.
| pos | : position of the PNTreeLight |
| size | : size of the PNTreeLight |
| sizeLimit | : size limit of the cells |
Definition at line 26 of file PNTreeLight_impl.h.
References initialisationPNTreeLight().
Here is the call graph for this function:
|
virtual |
Destructeur of PNTreeLight.
Definition at line 40 of file PNTreeLight_impl.h.
References p_node.
|
private |
Copy constructor of PNTreeLight.
| other | : class to copy |
Definition at line 34 of file PNTreeLight_impl.h.
References copyPNTreeLight(), and PNTreeLight().
Here is the call graph for this function:| bool PNTreeLight< T, U, N >::addElement | ( | T * | posData, |
| U * | data ) |
Add an element in the PNTreeLightNode.
| posData | : position of the data |
| data | : pointer to the data we want to sort |
Definition at line 93 of file PNTreeLight_impl.h.
References p_node, p_pos, p_size, and p_sizeLimit.
|
protected |
Copy function of PNTreeLight.
| other | : class to copy |
Definition at line 157 of file PNTreeLight_impl.h.
References PNTreeLight().
Referenced by operator=(), and PNTreeLight().
Here is the call graph for this function:
Here is the caller graph for this function:| const U * PNTreeLight< T, U, N >::getCloserData | ( | T * | posData | ) | const |
Get the closer data from the given position.
| posData | : position we want the closer data |
Definition at line 111 of file PNTreeLight_impl.h.
References p_node, p_pos, p_size, and PPower< V, N >::Value.
| const U * PNTreeLight< T, U, N >::getCloserDataDist | ( | T & | distFromCloserData, |
| T * | posData ) const |
Get the closer data from the given position.
| [out] | distFromCloserData | : distance from the closer data |
| posData | : position we want the closer data |
Definition at line 130 of file PNTreeLight_impl.h.
References p_node, p_pos, p_size, and PPower< V, N >::Value.
| const U * PNTreeLight< T, U, N >::getLastData | ( | T * | posData | ) | const |
|
private |
Initialisation function of the class PNTreeLight.
| pos | : position of the PNTreeLight |
| size | : size of the PNTreeLight |
| sizeLimit | : limit of the cell size |
Definition at line 167 of file PNTreeLight_impl.h.
References p_sizeLimit, setPosition(), and setSize().
Referenced by PNTreeLight().
Here is the call graph for this function:
Here is the caller graph for this function:| PNTreeLight< T, U, N > & PNTreeLight< T, U, N >::operator= | ( | const PNTreeLight< T, U, N > & | other | ) |
Definition of equal operator of PNTreeLight.
| other | : class to copy |
Definition at line 148 of file PNTreeLight_impl.h.
References copyPNTreeLight(), and PNTreeLight().
Here is the call graph for this function:| bool PNTreeLight< T, U, N >::saveGnuplotData | ( | const std::string & | fileName | ) |
Saves the PNTreeLight into a txt file for gnuplot.
| fileName | : name of the text file we want to write |
Definition at line 49 of file PNTreeLight_impl.h.
| bool PNTreeLight< T, U, N >::saveGnuplotData | ( | std::ofstream & | fs, |
| T | height ) |
Saves the PNTreeLight into a txt file for gnuplot.
| fs | : text file we want to write |
| height | : height of the quad to draw |
Definition at line 59 of file PNTreeLight_impl.h.
| void PNTreeLight< T, U, N >::setLimitSize | ( | T | limitSize | ) |
Set the limit size of the PNTreeLight cells.
| limitSize | : limit size of the PNTreeLight cells |
Definition at line 83 of file PNTreeLight_impl.h.
References p_sizeLimit.
| void PNTreeLight< T, U, N >::setPosition | ( | T | pos[N] | ) |
Set the position of the PNTreeLight.
| pos | : position of the PNTreeLight |
Definition at line 67 of file PNTreeLight_impl.h.
References p_pos.
Referenced by initialisationPNTreeLight().
Here is the caller graph for this function:| void PNTreeLight< T, U, N >::setSize | ( | T | size[N] | ) |
Set the size of the PNTreeLight.
| size | : size of the PNTreeLight |
Definition at line 75 of file PNTreeLight_impl.h.
References p_size.
Referenced by initialisationPNTreeLight().
Here is the caller graph for this function:
|
private |
Table of the children of the current node.
Definition at line 47 of file PNTreeLight.h.
Referenced by addElement(), getCloserData(), getCloserDataDist(), getLastData(), saveGnuplotData(), saveGnuplotData(), and ~PNTreeLight().
|
private |
Position of the hyper cube.
Definition at line 41 of file PNTreeLight.h.
Referenced by addElement(), getCloserData(), getCloserDataDist(), getLastData(), saveGnuplotData(), saveGnuplotData(), and setPosition().
|
private |
Size of the hyper cube.
Definition at line 43 of file PNTreeLight.h.
Referenced by addElement(), getCloserData(), getCloserDataDist(), getLastData(), saveGnuplotData(), saveGnuplotData(), and setSize().
|
private |
Size limit of the cells.
Definition at line 45 of file PNTreeLight.h.
Referenced by addElement(), initialisationPNTreeLight(), PNTreeLight(), and setLimitSize().