Int class

Homepage
Wrappers

Introduction

The Int class "wraps" an int value to allow storing it where a class object is required.

Structure

  1. "Class values"
  2. Int value

Functions

New and Destroy

Int_new(value = 0):
Creates a new Int object.

Int_destroy(IntObject):
Destroys the Int object and frees its memory.

Getters and Setters

Int_getValue(IntObject):
Returns the value stored in the Int object.

Int_setValue(IntObject, value = 0):
Sets the value stored in the Int object.


Homepage  |  Wrappers