Rocket::Core::Python::VectorInterface< Container > Class Template Reference

#include <VectorInterface.h>


Public Member Functions

 VectorInterface (const char *name)

Static Public Member Functions

static size_t Size (const Container &container)
static void SetItem (Container &container, int index, const typename Container::value_type &value)
static void DelItem (Container &container, int index)
static Container::value_type & GetItem (Container &container, int index)
static bool Contains (Container &container, const typename Container::value_type &value)

Detailed Description

template<typename Container>
class Rocket::Core::Python::VectorInterface< Container >

Provides a list style python interface to any STL container that can provide a vector style interface.

Simply contruct one of these objects to register the type with python.

VectorInterface< std::vector< std::string > >("StringList");

Author:
Lloyd Weehuizen

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