CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csIntArray Class Reference

Growing array of ints. More...

#include <intarray.h>

Inheritance diagram for csIntArray:

csGrowingArray< int > List of all members.

Public Methods

int Find (int val) const
 Find a contained number and return its index. More...

void PushFill (int val, int n)
 Push the given value n times on the array. More...

void PushIdentityMapping (int n, int offset=0)
 Push n numbers, ranging 'offset' to 'offset+n-1' in increasing order. More...


Static Public Methods

csIntArray * CreateUniformMapping (int val, int n)
 Create an array that is filled n times with the given value. More...

csIntArray * CreateIdentityMapping (int n, int offset=0)
 Create an array that is filled with the values 'offset' to 'offset+n-1'. More...


Detailed Description

Growing array of ints.

Definition at line 27 of file intarray.h.


Member Function Documentation

csIntArray* csIntArray::CreateIdentityMapping int    n,
int    offset = 0
[static]
 

Create an array that is filled with the values 'offset' to 'offset+n-1'.

csIntArray* csIntArray::CreateUniformMapping int    val,
int    n
[static]
 

Create an array that is filled n times with the given value.

int csIntArray::Find int    val const
 

Find a contained number and return its index.

void csIntArray::PushFill int    val,
int    n
 

Push the given value n times on the array.

void csIntArray::PushIdentityMapping int    n,
int    offset = 0
 

Push n numbers, ranging 'offset' to 'offset+n-1' in increasing order.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14