Zen
A cross-platform functional programming language

owner< V > Class Template Reference

Intrinsic owner type. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

V & insert ()
 Insert a new value.
void remove (V &v)
 Remove a contained value.

Private Types

typedef QSet< V * > List
 The list type.

Private Attributes

List _list
 The list.

Detailed Description

template<typename V>
class z::owner< V >

Intrinsic owner type.

This is a list class which can create new elements when inserted and delete them when removed


Member Function Documentation

V& insert ( ) [inline]

Insert a new value.

Returns:
Reference to new value
void remove ( V &  v) [inline]

Remove a contained value.

Parameters:
vReference to value to be deleted

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines