## GcrSimpleCollection

GcrSimpleCollection — A simple implementation of GcrCollection

## Synopsis

    struct              GcrSimpleCollection;
    struct              GcrSimpleCollectionClass;
    void                gcr_simple_collection_add           (GcrSimpleCollection *self,
                                                             GObject *object);
    gboolean            gcr_simple_collection_contains      (GcrSimpleCollection *self,
                                                             GObject *object);
    GcrCollection *     gcr_simple_collection_new           (void);
    void                gcr_simple_collection_remove        (GcrSimpleCollection *self,
                                                             GObject *object);

## Description

A simple implementation of GcrCollection, which you can add and remove objects from. Use `gcr_simple_collection_add()` to do this `gcr_simple_collection_remove()`.

## Details

### struct GcrSimpleCollection

    struct GcrSimpleCollection {
    	GObject parent;
    };

A simple implementation of GcrCollection.

GObject `parent`; | The parent object

### struct GcrSimpleCollectionClass

    struct GcrSimpleCollectionClass {
    	GObjectClass parent_class;
    };

The class for GcrSimpleCollection.

GObjectClass `parent_class`; | The parent class

### gcr_simple_collection_add ()

    void                gcr_simple_collection_add           (GcrSimpleCollection *self,
                                                             GObject *object);

Add an object to this collection

`self` : | The collection
`object` : | The object to add

### gcr_simple_collection_contains ()

    gboolean            gcr_simple_collection_contains      (GcrSimpleCollection *self,
                                                             GObject *object);

Check if the collection contains a certain object.

`self` : | The collection
`object` : | The object to check
Returns : | `TRUE` if the collection contains the object.

### gcr_simple_collection_new ()

    GcrCollection *     gcr_simple_collection_new           (void);

Create a new GcrSimpleCollection.

Returns : | A newly allocated collection, which should be freed with `g_object_unref()`.

### gcr_simple_collection_remove ()

    void                gcr_simple_collection_remove        (GcrSimpleCollection *self,
                                                             GObject *object);

Remove an object from the collection.

`self` : | The collection
`object` : | The object to remove from the collection