#include <stdio.h>
#include "types.h"
#include "string_t.h"
#include "floorplan.h"
#include "layer_list.h"
Go to the source code of this file.
|
struct | Die_t |
| Structure used to store data about the dies that compose the 2D/3D stack. More...
|
|
◆ Die_t
Definition of the type Die_t
Definition at line 108 of file die.h.
◆ die_calloc()
Die_t * die_calloc |
( |
void |
| ) |
|
Allocates memory for a structure of type Die_t
The content of the new structure is set to default values calling die_init
- Returns
- the pointer to the new structure
-
NULL
if the memory allocation fails
Definition at line 92 of file die.c.
◆ die_clone()
Allocates memory for a new copy of the structure die
- Parameters
-
die | the address of the structure to clone |
- Returns
- a pointer to a new structure
-
NULL
if the memory allocation fails
-
NULL
if the parameter die is NULL
Definition at line 105 of file die.c.
◆ die_copy()
Copies the structure src into dst , as an assignement
The function destroys the content of dst and then makes the copy
- Parameters
-
dst | the address of the left term sructure (destination) |
src | the address of the right term structure (source) |
Definition at line 62 of file die.c.
◆ die_destroy()
void die_destroy |
( |
Die_t * |
die | ) |
|
Destroys the content of the fields of the structure die
The function releases any dynamic memory used by the structure and resets its state calling die_init .
- Parameters
-
die | the address of the structure to destroy |
Definition at line 81 of file die.c.
◆ die_free()
void die_free |
( |
Die_t * |
die | ) |
|
Frees the memory space pointed by die
The function destroys the structure die and then frees its memory. The pointer die must have been returned by a previous call to die_calloc or die_clone .
If die is NULL
, no operation is performed.
- Parameters
-
Definition at line 122 of file die.c.
◆ die_init()
void die_init |
( |
Die_t * |
die | ) |
|
Inits the fields of the die structure with default values
- Parameters
-
die | the address of the structure to initalize |
Definition at line 45 of file die.c.
◆ die_print()
Prints the die declaration as it looks in the stack file
- Parameters
-
die | the address of the structure to print |
stream | the output stream (must be already open) |
prefix | a string to be printed as prefix at the beginning of each line |
Definition at line 142 of file die.c.
◆ die_same_id()
Tests if two dies have the same Id
- Parameters
-
die | the first die |
other | the second die |
- Returns
TRUE
if die and other have the same Id
-
FALSE
otherwise
Definition at line 135 of file die.c.