Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::python::enum_< T > Struct Template Reference

#include <enum.hpp>

Inheritance diagram for boost::python::enum_< T >:
Collaboration diagram for boost::python::enum_< T >:

Public Types

typedef objects::enum_base base
 

Public Member Functions

 enum_ (char const *name, char const *doc=0)
 
enum_< T > & value (char const *name, T)
 
enum_< T > & export_values ()
 
PyObject * ptr () const
 
bool is_none () const
 
object operator() () const
 
object operator() (detail::args_proxy const &args) const
 
object operator() (detail::args_proxy const &args, detail::kwds_proxy const &kwds) const
 
detail::args_proxy operator* () const
 
 operator bool_type () const
 
bool operator! () const
 
const_object_attribute attr (char const *) const
 
object_attribute attr (char const *)
 
const_object_objattribute attr (object const &) const
 
object_objattribute attr (object const &)
 
object contains (T const &key) const
 
const_object_item operator[] (object_cref) const
 
object_item operator[] (object_cref)
 
const_object_item operator[] (T const &key) const
 
object_item operator[] (T const &key)
 
const_object_slice slice (object_cref, object_cref) const
 
object_slice slice (object_cref, object_cref)
 
const_object_slice slice (slice_nil, object_cref) const
 
object_slice slice (slice_nil, object_cref)
 
const_object_slice slice (object_cref, slice_nil) const
 
object_slice slice (object_cref, slice_nil)
 
const_object_slice slice (slice_nil, slice_nil) const
 
object_slice slice (slice_nil, slice_nil)
 
const_object_slice slice (T const &start, V const &end) const
 
object_slice slice (T const &start, V const &end)
 

Protected Types

typedef object const & object_cref
 

Protected Member Functions

void add_value (char const *name, long value)
 
objectconst & derived_visitor () const
 

Static Protected Member Functions

static PyObject * to_python (PyTypeObject *type, long x)
 

Member Typedef Documentation

template<class T>
typedef objects::enum_base boost::python::enum_< T >::base
typedef object const& boost::python::api::object_operators< object >::object_cref
protectedinherited

Constructor & Destructor Documentation

template<class T >
boost::python::enum_< T >::enum_ ( char const *  name,
char const *  doc = 0 
)
inline

Member Function Documentation

void boost::python::objects::enum_base::add_value ( char const *  name,
long  value 
)
protectedinherited
const_object_attribute boost::python::api::object_operators< object >::attr ( char const *  ) const
inherited
object_attribute boost::python::api::object_operators< object >::attr ( char const *  )
inherited
const_object_objattribute boost::python::api::object_operators< object >::attr ( object const &  ) const
inherited
object_objattribute boost::python::api::object_operators< object >::attr ( object const &  )
inherited
object boost::python::api::object_operators< object >::contains ( T const &  key) const
inherited
object const& boost::python::def_visitor< object >::derived_visitor ( ) const
inlineprotectedinherited
template<class T >
enum_< T > & boost::python::enum_< T >::export_values ( )
inline
bool boost::python::api::object_base::is_none ( ) const
inlineinherited
boost::python::api::object_operators< object >::operator bool_type ( ) const
inherited
bool boost::python::api::object_operators< object >::operator! ( ) const
inherited
object boost::python::api::object_operators< object >::operator() ( ) const
inherited
object boost::python::api::object_operators< object >::operator() ( detail::args_proxy const &  args) const
inherited
object boost::python::api::object_operators< object >::operator() ( detail::args_proxy const &  args,
detail::kwds_proxy const &  kwds 
) const
inherited
const_object_item boost::python::api::object_operators< object >::operator[] ( object_cref  ) const
inherited
object_item boost::python::api::object_operators< object >::operator[] ( object_cref  )
inherited
const_object_item boost::python::api::object_operators< object >::operator[] ( T const &  key) const
inherited
object_item boost::python::api::object_operators< object >::operator[] ( T const &  key)
inherited
const_object_slice boost::python::api::object_operators< object >::slice ( object_cref  ,
object_cref   
) const
inherited
object_slice boost::python::api::object_operators< object >::slice ( object_cref  ,
object_cref   
)
inherited
const_object_slice boost::python::api::object_operators< object >::slice ( slice_nil  ,
object_cref   
) const
inherited
object_slice boost::python::api::object_operators< object >::slice ( slice_nil  ,
object_cref   
)
inherited
const_object_slice boost::python::api::object_operators< object >::slice ( object_cref  ,
slice_nil   
) const
inherited
object_slice boost::python::api::object_operators< object >::slice ( object_cref  ,
slice_nil   
)
inherited
const_object_slice boost::python::api::object_operators< object >::slice ( slice_nil  ,
slice_nil   
) const
inherited
object_slice boost::python::api::object_operators< object >::slice ( slice_nil  ,
slice_nil   
)
inherited
const_object_slice boost::python::api::object_operators< object >::slice ( T const &  start,
V const &  end 
) const
inherited
object_slice boost::python::api::object_operators< object >::slice ( T const &  start,
V const &  end 
)
inherited
static PyObject* boost::python::objects::enum_base::to_python ( PyTypeObject *  type,
long  x 
)
staticprotectedinherited
template<class T >
enum_< T > & boost::python::enum_< T >::value ( char const *  name,
T  x 
)
inline

References boost::add_value().


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