Static Public Member Functions | List of all members
boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index > Struct Template Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/geant4/v4_10_4_p02ba/source/geant4.10.04.p02/environments/g4py/source/boost/detail/indexing_suite_detail.hpp"

Static Public Member Functions

static void register_container_element ()
 
static object base_get_item_ (back_reference< Container & > const &container, PyObject *i)
 
static void base_replace_indexes (Container &container, Index from, Index to, Index n)
 
template<class NoSlice >
static void base_erase_index (Container &container, Index i, NoSlice no_slice)
 
static void base_erase_indexes (Container &container, Index from, Index to)
 
static void register_container_element ()
 
static object base_get_item_ (back_reference< Container & > const &container, PyObject *i)
 
static void base_replace_indexes (Container &container, Index from, Index to, Index n)
 
template<class NoSlice >
static void base_erase_index (Container &container, Index i, NoSlice no_slice)
 
static void base_erase_indexes (Container &container, Index from, Index to)
 

Detailed Description

template<class Container, class DerivedPolicies, class ContainerElement, class Index>
struct boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >

Definition at line 517 of file indexing_suite_detail.hpp.

Member Function Documentation

template<class Container , class DerivedPolicies , class ContainerElement , class Index >
template<class NoSlice >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_erase_index ( Container &  container,
Index  i,
NoSlice  no_slice 
)
inlinestatic

Definition at line 556 of file indexing_suite_detail.hpp.

558  {
559  ContainerElement::get_links().erase(container, i, no_slice);
560  }
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
template<class NoSlice >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_erase_index ( Container &  container,
Index  i,
NoSlice  no_slice 
)
inlinestatic

Definition at line 556 of file indexing_suite_detail.hpp.

558  {
559  ContainerElement::get_links().erase(container, i, no_slice);
560  }
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_erase_indexes ( Container &  container,
Index  from,
Index  to 
)
inlinestatic

Definition at line 563 of file indexing_suite_detail.hpp.

References runNovaSAM::Index.

565  {
566  ContainerElement::get_links().erase(container, from, to);
567  }
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_erase_indexes ( Container &  container,
Index  from,
Index  to 
)
inlinestatic

Definition at line 563 of file indexing_suite_detail.hpp.

References runNovaSAM::Index.

565  {
566  ContainerElement::get_links().erase(container, from, to);
567  }
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static object boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_get_item_ ( back_reference< Container & > const &  container,
PyObject *  i 
)
inlinestatic

Definition at line 526 of file indexing_suite_detail.hpp.

References make_syst_table_plots::h, MECModelEnuComparisons::i, compare_h5_caf::idx, and runNovaSAM::Index.

527  {
528  // Proxy
529  Index idx = DerivedPolicies::convert_index(container.get(), i);
530 
531  if (PyObject* shared =
532  ContainerElement::get_links().find(container.get(), idx))
533  {
534  handle<> h(python::borrowed(shared));
535  return object(h);
536  }
537  else
538  {
539  object prox(ContainerElement(container.source(), idx));
540  ContainerElement::
541  get_links().add(prox.ptr(), container.get());
542  return prox;
543  }
544  }
Definition: novas.h:112
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static object boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_get_item_ ( back_reference< Container & > const &  container,
PyObject *  i 
)
inlinestatic

Definition at line 526 of file indexing_suite_detail.hpp.

References make_syst_table_plots::h, MECModelEnuComparisons::i, compare_h5_caf::idx, and runNovaSAM::Index.

527  {
528  // Proxy
529  Index idx = DerivedPolicies::convert_index(container.get(), i);
530 
531  if (PyObject* shared =
532  ContainerElement::get_links().find(container.get(), idx))
533  {
534  handle<> h(python::borrowed(shared));
535  return object(h);
536  }
537  else
538  {
539  object prox(ContainerElement(container.source(), idx));
540  ContainerElement::
541  get_links().add(prox.ptr(), container.get());
542  return prox;
543  }
544  }
Definition: novas.h:112
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_replace_indexes ( Container &  container,
Index  from,
Index  to,
Index  n 
)
inlinestatic

Definition at line 547 of file indexing_suite_detail.hpp.

550  {
551  ContainerElement::get_links().replace(container, from, to, n);
552  }
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::base_replace_indexes ( Container &  container,
Index  from,
Index  to,
Index  n 
)
inlinestatic

Definition at line 547 of file indexing_suite_detail.hpp.

550  {
551  ContainerElement::get_links().replace(container, from, to, n);
552  }
::xsd::cxx::tree::type container
Definition: Database.h:112
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::register_container_element ( )
inlinestatic

Definition at line 520 of file indexing_suite_detail.hpp.

521  {
522  register_ptr_to_python<ContainerElement>();
523  }
template<class Container , class DerivedPolicies , class ContainerElement , class Index >
static void boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >::register_container_element ( )
inlinestatic

Definition at line 520 of file indexing_suite_detail.hpp.

521  {
522  register_ptr_to_python<ContainerElement>();
523  }

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