Rocket::Core::Python::NameIndexInterface< HostType, LengthAccessor, IndexAccessor, NameAccessor > Class Template Reference

#include <NameIndexInterface.h>


Public Member Functions

template<typename ClassType>
void visit (ClassType &_class) const
 Initialise the interface.

Static Public Member Functions

static python::object GetItem (HostType &host, python::object key)
 Python __getitem__ override.
static int Len (HostType &host)
 Python __len__ override.

Detailed Description

template<typename HostType, typename LengthAccessor, typename IndexAccessor, typename NameAccessor = NameAccessorInvalid< HostType >>
class Rocket::Core::Python::NameIndexInterface< HostType, LengthAccessor, IndexAccessor, NameAccessor >

Template class for generating a lightweight proxy object for providing array-style lookups on a C++ object.

Author:
Peter Curry

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