casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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>

Inheritance diagram for casacore::python::stl_variable_capacity_policy:
casacore::python::default_policy

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 172 of file PycBasicData.h.

Member Function Documentation

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

Definition at line 175 of file PycBasicData.h.

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 181 of file PycBasicData.h.

References AlwaysAssert.


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