interval.h File Reference

Contains the definition of the Interval. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Interval
 Structure that contains a signed integer interval. More...
 

Typedefs

typedef struct Interval Interval
 Structure that contains a signed integer interval. More...
 

Functions

void addToInterval (Interval *inter, int x)
 Change the interval (if needed) to contain a new value. More...
 
int isIntervalIncludeInAnother (Interval int1, Interval int2)
 Is int1 include in int2? More...
 

Detailed Description

Contains the definition of the Interval.

Author
Bastien Philip (ebatsin)
Gaël Foppolo (gaelfoppolo)

Typedef Documentation

typedef struct Interval Interval

Structure that contains a signed integer interval.

An Interval represents the interval between a lower and an upper bound

Function Documentation

void addToInterval ( Interval inter,
int  x 
)

Change the interval (if needed) to contain a new value.

Parameters
interThe interval to change
xThe integer to add in the interval
Author
Bastien Philip (ebatsin)
Gaël Foppolo (gaelfoppolo)

Here is the caller graph for this function:

int isIntervalIncludeInAnother ( Interval  int1,
Interval  int2 
)

Is int1 include in int2?

Parameters
int1First interval
int2Second interval
Returns
1 if int1 is include in int2, 0 otherwise

Here is the caller graph for this function: