Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

variable_capacity_policy Struct Reference

#include <pyconversions.h>

Inheritance diagram for variable_capacity_policy:

Inheritance graph
[legend]
Collaboration diagram for variable_capacity_policy:

Collaboration graph
[legend]
List of all members.

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@yahoo.com> of Lawrence Berkeley National Laboratory

Definition at line 131 of file pyconversions.h.

Static Public Member Functions

template<typename ContainerType>
static void assert_size (boost::type< ContainerType >, std::size_t sz)
static bool check_convertibility_per_element ()
template<typename ContainerType>
static bool check_size (boost::type< ContainerType >, std::size_t sz)
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)


Member Function Documentation

template<typename ContainerType>
static void default_policy::assert_size boost::type< ContainerType >  ,
std::size_t  sz
[inline, static, inherited]
 

Definition at line 113 of file pyconversions.h.

static bool default_policy::check_convertibility_per_element  )  [inline, static, inherited]
 

Definition at line 104 of file pyconversions.h.

template<typename ContainerType>
static bool default_policy::check_size boost::type< ContainerType >  ,
std::size_t  sz
[inline, static, inherited]
 

Definition at line 107 of file pyconversions.h.

template<typename ContainerType>
static void variable_capacity_policy::reserve ContainerType &  a,
std::size_t  sz
[inline, static]
 

Reimplemented from default_policy.

Definition at line 134 of file pyconversions.h.

template<typename ContainerType, typename ValueType>
static void variable_capacity_policy::set_value ContainerType &  a,
std::size_t  i,
ValueType const &  v
[inline, static]
 

Definition at line 140 of file pyconversions.h.


The documentation for this struct was generated from the following file:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3