Xmipp  v3.23.11-Nereus
Public Member Functions | Protected Attributes | List of all members
alglib::_kdtree_owner Class Reference

#include <alglibmisc.h>

Inheritance diagram for alglib::_kdtree_owner:
Inheritance graph
[legend]
Collaboration diagram for alglib::_kdtree_owner:
Collaboration graph
[legend]

Public Member Functions

 _kdtree_owner ()
 
 _kdtree_owner (const _kdtree_owner &rhs)
 
_kdtree_owneroperator= (const _kdtree_owner &rhs)
 
virtual ~_kdtree_owner ()
 
alglib_impl::kdtreec_ptr ()
 
alglib_impl::kdtreec_ptr () const
 

Protected Attributes

alglib_impl::kdtreep_struct
 

Detailed Description

Definition at line 109 of file alglibmisc.h.

Constructor & Destructor Documentation

◆ _kdtree_owner() [1/2]

alglib::_kdtree_owner::_kdtree_owner ( )

Definition at line 383 of file alglibmisc.cpp.

384 {
386  if( p_struct==NULL )
387  throw ap_error("ALGLIB: malloc error");
389  throw ap_error("ALGLIB: malloc error");
390 }
#define ae_false
Definition: ap.h:196
void * ae_malloc(size_t size, ae_state *state)
Definition: ap.cpp:222
alglib_impl::kdtree * p_struct
Definition: alglibmisc.h:119
ae_bool _kdtree_init(void *_p, ae_state *_state, ae_bool make_automatic)

◆ _kdtree_owner() [2/2]

alglib::_kdtree_owner::_kdtree_owner ( const _kdtree_owner rhs)

Definition at line 392 of file alglibmisc.cpp.

393 {
395  if( p_struct==NULL )
396  throw ap_error("ALGLIB: malloc error");
397  if( !alglib_impl::_kdtree_init_copy(p_struct, const_cast<alglib_impl::kdtree*>(rhs.p_struct), NULL, ae_false) )
398  throw ap_error("ALGLIB: malloc error");
399 }
#define ae_false
Definition: ap.h:196
void * ae_malloc(size_t size, ae_state *state)
Definition: ap.cpp:222
alglib_impl::kdtree * p_struct
Definition: alglibmisc.h:119
ae_bool _kdtree_init_copy(void *_dst, void *_src, ae_state *_state, ae_bool make_automatic)

◆ ~_kdtree_owner()

alglib::_kdtree_owner::~_kdtree_owner ( )
virtual

Definition at line 411 of file alglibmisc.cpp.

412 {
414  ae_free(p_struct);
415 }
alglib_impl::kdtree * p_struct
Definition: alglibmisc.h:119
void _kdtree_clear(void *_p)
void ae_free(void *p)
Definition: ap.cpp:237

Member Function Documentation

◆ c_ptr() [1/2]

alglib_impl::kdtree * alglib::_kdtree_owner::c_ptr ( )

Definition at line 417 of file alglibmisc.cpp.

418 {
419  return p_struct;
420 }
alglib_impl::kdtree * p_struct
Definition: alglibmisc.h:119

◆ c_ptr() [2/2]

alglib_impl::kdtree * alglib::_kdtree_owner::c_ptr ( ) const

Definition at line 422 of file alglibmisc.cpp.

423 {
424  return const_cast<alglib_impl::kdtree*>(p_struct);
425 }
alglib_impl::kdtree * p_struct
Definition: alglibmisc.h:119

◆ operator=()

_kdtree_owner & alglib::_kdtree_owner::operator= ( const _kdtree_owner rhs)

Definition at line 401 of file alglibmisc.cpp.

402 {
403  if( this==&rhs )
404  return *this;
406  if( !alglib_impl::_kdtree_init_copy(p_struct, const_cast<alglib_impl::kdtree*>(rhs.p_struct), NULL, ae_false) )
407  throw ap_error("ALGLIB: malloc error");
408  return *this;
409 }
#define ae_false
Definition: ap.h:196
alglib_impl::kdtree * p_struct
Definition: alglibmisc.h:119
ae_bool _kdtree_init_copy(void *_dst, void *_src, ae_state *_state, ae_bool make_automatic)
void _kdtree_clear(void *_p)

Member Data Documentation

◆ p_struct

alglib_impl::kdtree* alglib::_kdtree_owner::p_struct
protected

Definition at line 119 of file alglibmisc.h.


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