GlueGen: com.jogamp.gluegen.cgram.types.FunctionType.ParameterConsumer Interface Reference

GlueGen v2.6.0-rc-20250721 GlueGen, Native Binding Generator for Java™ (public API).

Public Member Functions | List of all members
com.jogamp.gluegen.cgram.types.FunctionType.ParameterConsumer Interface Reference

`forEachParameter(ParameterConsumer)` Consumer More...

Collaboration diagram for com.jogamp.gluegen.cgram.types.FunctionType.ParameterConsumer:

## Public Member Functions

boolean | accept (int idx, int consumedCount, Type cType, String name)
| Accept the arguments of the traversed collection element and return true if consumed. More...

## Detailed Description

`forEachParameter(ParameterConsumer)` Consumer

Definition at line 189 of file FunctionType.java.

## Member Function Documentation

## ◆ accept()

boolean com.jogamp.gluegen.cgram.types.FunctionType.ParameterConsumer.accept | ( | int | idx,
|  | int | consumedCount,
|  | Type | cType,
|  | String | name
| ) |  |

Accept the arguments of the traversed collection element and return true if consumed.

Consumed elements will increased passed `consumedCount` state.

Parameters

  idx | index of current element, ranges [0 .. size-1]
  consumedCount | number of consumed elements, useful for e.g. `boolean needsSeparator = 0 < consumedCount`
  cType | C Type of argument
  name | argument name

Returns
  true to signal consumed and have traversing loop increment `consumedCount`, otherwise false

Here is the caller graph for this function:

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

- src/java/com/jogamp/gluegen/cgram/types/FunctionType.java