HOM/HOM_IterableList.h File Reference

#include "HOM_API.h"
#include "HOM_Defines.h"
#include "HOM_Errors.h"
#include "HOM_Module.h"
#include <string>
#include <vector>
#include <stdexcept>

Go to the source code of this file.

Defines

#define GETITEM_SWIG_EXTENSION
#define DEFINE_HOM_ITERABLE_LIST(template_parm, template_type, specialization, getitem_type)


Define Documentation

#define DEFINE_HOM_ITERABLE_LIST ( template_parm,
template_type,
specialization,
getitem_type   ) 

Value:

template <template_parm> \
class HOM_IterableList specialization \
{ \
public: \
    HOM_IterableList() \
    { HOM_CONSTRUCT_OBJECT(this) } \
    HOM_IterableList(const HOM_IterableList<template_type> &) \
    { HOM_CONSTRUCT_OBJECT(this) } \
    virtual ~HOM_IterableList() \
    { HOM_DESTRUCT_OBJECT(this) } \
\
    /* Note that we don't need to implement __iter__, since for loops will */ \
    /* work if they find __getitem__. */ \
    GETITEM_SWIG_EXTENSION \
    \
    virtual int __len__() throw(HOM_ObjectWasDeleted, HOM_Error) = 0; \
    virtual std::string __repr__() throw(HOM_ObjectWasDeleted, HOM_Error) = 0; \
\
    SWIGOUT(%ignore getItemWithValidIndex;) \
    virtual getitem_type getItemWithValidIndex(int key) \
        throw(HOM_ObjectWasDeleted, HOM_Error) = 0; \
};

Definition at line 72 of file HOM_IterableList.h.

#define GETITEM_SWIG_EXTENSION

Definition at line 69 of file HOM_IterableList.h.


Generated on Wed May 23 00:10:19 2012 for HDK by  doxygen 1.5.9