## ide-diagnostics ide-diagnostics |

## Functions

IdeDiagnostics * | ide_diagnostics_ref ()
void | ide_diagnostics_unref ()
gsize | ide_diagnostics_get_size ()
IdeDiagnostic * | ide_diagnostics_index ()
void | ide_diagnostics_merge ()
IdeDiagnostics * | ide_diagnostics_new ()

## Description

## Functions

### ide_diagnostics_ref ()

    IdeDiagnostics *
    ide_diagnostics_ref (IdeDiagnostics *self);

### ide_diagnostics_unref ()

    void
    ide_diagnostics_unref (IdeDiagnostics *self);

### ide_diagnostics_get_size ()

    gsize
    ide_diagnostics_get_size (IdeDiagnostics *self);

Retrieves the number of diagnostics that can be accessed via `ide_diagnostics_index()`.

#### Returns

The number of diagnostics in `self` .

### ide_diagnostics_index ()

    IdeDiagnostic *
    ide_diagnostics_index (IdeDiagnostics *self,
                           gsize index);

Retrieves the diagnostic at `index` .

#### Returns

An IdeDiagnostic.

[transfer none]

### ide_diagnostics_merge ()

    void
    ide_diagnostics_merge (IdeDiagnostics *self,
                           IdeDiagnostics *other);

Copies the contents of `other` into `self` .

This is performed by taking a reference to the immutable IdeDiagnostic instances.

### ide_diagnostics_new ()

    IdeDiagnostics *
    ide_diagnostics_new (GPtrArray *ar);

Creates a new IdeDiagnostics container structure for `ar` . Ownership of `ar` is transfered to the resulting structure.

#### Parameters

ar | an array of IdeDiagnostic. | [transfer full][element-type Ide.Diagnostic][allow-none]

#### Returns

A newly allocated IdeDiagnostics.

[transfer full]

## Types and Values