#include <stdio.h>
Go to the source code of this file.
|
enum | Vec_AttrType_t {
VEC_ATTR_NONE = 0,
VEC_ATTR_COPY,
VEC_ATTR_LOCAL_AIG,
VEC_ATTR_LOCAL_SOP,
VEC_ATTR_LOCAL_BDD,
VEC_ATTR_GLOBAL_AIG,
VEC_ATTR_GLOBAL_SOP,
VEC_ATTR_GLOBAL_BDD,
VEC_ATTR_LEVEL,
VEC_ATTR_LEVEL_REV,
VEC_ATTR_RETIME_LAG,
VEC_ATTR_FRAIG,
VEC_ATTR_MVVAR,
VEC_ATTR_DATA1,
VEC_ATTR_DATA2,
VEC_ATTR_TOTAL_NUM
} |
| INCLUDES ///. More...
|
|
|
static Vec_Att_t * | Vec_AttAlloc (int nSize, void *pMan, void(*pFuncFreeMan)(void *), void *(*pFuncStartObj)(void *), void(*pFuncFreeObj)(void *, void *)) |
| MACRO DEFINITIONS ///. More...
|
|
static void * | Vec_AttFree (Vec_Att_t *p, int fFreeMan) |
|
static void | Vec_AttClear (Vec_Att_t *p) |
|
static void | Vec_AttFreeEntry (Vec_Att_t *p, int i) |
|
static void | Vec_AttGrow (Vec_Att_t *p, int nCapMin) |
|
static void | Vec_AttWriteEntry (Vec_Att_t *p, int i, void *pEntry) |
|
static void * | Vec_AttEntry (Vec_Att_t *p, int i) |
|
static void * | Vec_AttMan (Vec_Att_t *p) |
|
static void ** | Vec_AttArray (Vec_Att_t *p) |
|
BASIC TYPES ///.
Definition at line 62 of file vecAtt.h.
INCLUDES ///.
CFile****************************************************************
FileName [vecAtt.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Resizable arrays.]
Synopsis [Array of user-specified attiributes.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
- Id:
- vecAtt.h,v 1.00 2005/06/20 00:00:00 alanmi Exp
]PARAMETERS ///
Enumerator |
---|
VEC_ATTR_NONE |
|
VEC_ATTR_COPY |
|
VEC_ATTR_LOCAL_AIG |
|
VEC_ATTR_LOCAL_SOP |
|
VEC_ATTR_LOCAL_BDD |
|
VEC_ATTR_GLOBAL_AIG |
|
VEC_ATTR_GLOBAL_SOP |
|
VEC_ATTR_GLOBAL_BDD |
|
VEC_ATTR_LEVEL |
|
VEC_ATTR_LEVEL_REV |
|
VEC_ATTR_RETIME_LAG |
|
VEC_ATTR_FRAIG |
|
VEC_ATTR_MVVAR |
|
VEC_ATTR_DATA1 |
|
VEC_ATTR_DATA2 |
|
VEC_ATTR_TOTAL_NUM |
|
Definition at line 39 of file vecAtt.h.
Vec_AttrType_t
INCLUDES ///.
static Vec_Att_t* Vec_AttAlloc |
( |
int |
nSize, |
|
|
void * |
pMan, |
|
|
void(*)(void *) |
pFuncFreeMan, |
|
|
void *(*)(void *) |
pFuncStartObj, |
|
|
void(*)(void *, void *) |
pFuncFreeObj |
|
) |
| |
|
inlinestatic |
MACRO DEFINITIONS ///.
FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Allocates a vector with the given capacity.]
Description []
SideEffects []
SeeAlso []
Definition at line 96 of file vecAtt.h.
109 p->
nCap = nSize? nSize : 16;
#define ABC_ALLOC(type, num)
void(* pFuncFreeMan)(void *)
void(* pFuncFreeObj)(void *, void *)
void *(* pFuncStartObj)(void *)
Function*************************************************************
Synopsis [Returns the array of attributes.]
Description []
SideEffects []
SeeAlso []
Definition at line 284 of file vecAtt.h.
Function*************************************************************
Synopsis [Clears the vector.]
Description []
SideEffects []
SeeAlso []
Definition at line 159 of file vecAtt.h.
166 for ( i = 0; i < p->
nCap; i++ )
void(* pFuncFreeObj)(void *, void *)
static void* Vec_AttEntry |
( |
Vec_Att_t * |
p, |
|
|
int |
i |
|
) |
| |
|
inlinestatic |
Function*************************************************************
Synopsis [Returns the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 247 of file vecAtt.h.
static void Vec_AttGrow(Vec_Att_t *p, int nCapMin)
void *(* pFuncStartObj)(void *)
static void* Vec_AttFree |
( |
Vec_Att_t * |
p, |
|
|
int |
fFreeMan |
|
) |
| |
|
inlinestatic |
Function*************************************************************
Synopsis [Frees the vector.]
Description []
SideEffects []
SeeAlso []
Definition at line 126 of file vecAtt.h.
135 for ( i = 0; i < p->
nCap; i++ )
140 pMan = fFreeMan? NULL : p->
pMan;
141 if ( p->
pMan && fFreeMan )
void(* pFuncFreeMan)(void *)
void(* pFuncFreeObj)(void *, void *)
static void Vec_AttFreeEntry |
( |
Vec_Att_t * |
p, |
|
|
int |
i |
|
) |
| |
|
inlinestatic |
Function*************************************************************
Synopsis [Deletes one entry from the attribute manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 184 of file vecAtt.h.
void(* pFuncFreeObj)(void *, void *)
static void Vec_AttGrow |
( |
Vec_Att_t * |
p, |
|
|
int |
nCapMin |
|
) |
| |
|
inlinestatic |
Function*************************************************************
Synopsis [Resizes the vector to the given capacity.]
Description []
SideEffects []
SeeAlso []
Definition at line 207 of file vecAtt.h.
209 if ( p->
nCap >= nCapMin )
#define ABC_REALLOC(type, obj, num)
Function*************************************************************
Synopsis [Returns the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 268 of file vecAtt.h.
static void Vec_AttWriteEntry |
( |
Vec_Att_t * |
p, |
|
|
int |
i, |
|
|
void * |
pEntry |
|
) |
| |
|
inlinestatic |
Function*************************************************************
Synopsis [Writes the entry into its place.]
Description [Only works if the manager is not defined.]
SideEffects []
SeeAlso []
Definition at line 227 of file vecAtt.h.
static void Vec_AttGrow(Vec_Att_t *p, int nCapMin)
void *(* pFuncStartObj)(void *)