casacore
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
casacore::python::stl_variable_capacity_policy Struct Reference

Operations on containers that have variable capacity for conversion from Python container to C++ one. More...

#include <PycBasicData.h>

Static Public Member Functions

template<typename ContainerType >
static void reserve (ContainerType &a, std::size_t sz)
 
template<typename ContainerType , typename ValueType >
static void set_value (ContainerType &a, std::size_t i, ValueType const &v)
 
- Static Public Member Functions inherited from casacore::python::default_policy
static bool check_convertibility_per_element ()
 
template<typename ContainerType >
static bool check_size (boost::type< ContainerType >, std::size_t)
 
template<typename ContainerType >
static void assert_size (boost::type< ContainerType >, std::size_t)
 
template<typename ContainerType >
static void reserve (ContainerType &, std::size_t)
 

Detailed Description

Operations on containers that have variable capacity for conversion from Python container to C++ one.

Copied from scitbx/include/scitbx/boost_python/container_conversions.h that is described in the Boost.Python FAQ.

Author
Ralf W. Grosse-Kunstleve rwgk@.nosp@m.yaho.nosp@m.o.com of Lawrence Berkeley National Laboratory

Definition at line 170 of file PycBasicData.h.

Member Function Documentation

◆ reserve()

template<typename ContainerType >
static void casacore::python::stl_variable_capacity_policy::reserve ( ContainerType &  a,
std::size_t  sz 
)
inlinestatic

Definition at line 173 of file PycBasicData.h.

◆ set_value()

template<typename ContainerType , typename ValueType >
static void casacore::python::stl_variable_capacity_policy::set_value ( ContainerType &  a,
std::size_t  i,
ValueType const &  v 
)
inlinestatic

Definition at line 179 of file PycBasicData.h.

References AlwaysAssert.


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