| 1 | # This file was automatically generated by SWIG (http://www.swig.org). | ||||||||||
| 2 | # Version 1.3.31 | ||||||||||
| 3 | # | ||||||||||
| 4 | # Don't modify this file, modify the SWIG interface instead. | ||||||||||
| 5 | |||||||||||
| 6 | package liberty; | ||||||||||
| 7 | require Exporter; | ||||||||||
| 8 | require DynaLoader; | ||||||||||
| 9 | @ISA = qw(Exporter DynaLoader); | ||||||||||
| 10 | package libertyc; | ||||||||||
| 11 | bootstrap liberty; | ||||||||||
| 12 | package liberty; | ||||||||||
| 13 | @EXPORT = qw(lib_PIGetErrorText | ||||||||||
| 14 | lib_PICreateGroup | ||||||||||
| 15 | lib_GroupCreateAttr | ||||||||||
| 16 | lib_AttrGetAttrType | ||||||||||
| 17 | lib_AttrGetName | ||||||||||
| 18 | lib_ComplexAttrAddInt32Value | ||||||||||
| 19 | lib_ComplexAttrAddStringValue | ||||||||||
| 20 | lib_ComplexAttrAddBooleanValue | ||||||||||
| 21 | lib_ComplexAttrAddFloat64Value | ||||||||||
| 22 | lib_ComplexAttrAddExprValue | ||||||||||
| 23 | lib_ComplexAttrGetValues | ||||||||||
| 24 | lib_IterNextComplex | ||||||||||
| 25 | lib_ComplexValGetValueType | ||||||||||
| 26 | lib_ComplexValGetInt32Value | ||||||||||
| 27 | lib_ComplexValGetFloat64Value | ||||||||||
| 28 | lib_ComplexValGetStringValue | ||||||||||
| 29 | lib_ComplexValGetBooleanValue | ||||||||||
| 30 | lib_ComplexValGetExprValue | ||||||||||
| 31 | lib_SimpleAttrGetValueType | ||||||||||
| 32 | lib_SimpleAttrGetInt32Value | ||||||||||
| 33 | lib_SimpleAttrGetFloat64Value | ||||||||||
| 34 | lib_SimpleAttrGetStringValue | ||||||||||
| 35 | lib_SimpleAttrGetBooleanValue | ||||||||||
| 36 | lib_SimpleAttrGetExprValue | ||||||||||
| 37 | lib_SimpleAttrSetInt32Value | ||||||||||
| 38 | lib_SimpleAttrSetBooleanValue | ||||||||||
| 39 | lib_SimpleAttrSetFloat64Value | ||||||||||
| 40 | lib_SimpleAttrSetStringValue | ||||||||||
| 41 | lib_SimpleAttrSetExprValue | ||||||||||
| 42 | lib_SimpleAttrGetIsVar | ||||||||||
| 43 | lib_SimpleAttrSetIsVar | ||||||||||
| 44 | lib_ExprDestroy | ||||||||||
| 45 | lib_CreateExpr | ||||||||||
| 46 | lib_CreateBooleanValExpr | ||||||||||
| 47 | lib_CreateDoubleValExpr | ||||||||||
| 48 | lib_CreateStringValExpr | ||||||||||
| 49 | lib_CreateIntValExpr | ||||||||||
| 50 | lib_CreateBinaryOpExpr | ||||||||||
| 51 | lib_CreateUnaryOpExpr | ||||||||||
| 52 | lib_ExprToString | ||||||||||
| 53 | lib_ExprGetType | ||||||||||
| 54 | lib_ValExprGetValueType | ||||||||||
| 55 | lib_IntValExprGetInt | ||||||||||
| 56 | lib_DoubleValExprGetDouble | ||||||||||
| 57 | lib_BooleanValExprGetBoolean | ||||||||||
| 58 | lib_StringValExprGetString | ||||||||||
| 59 | lib_OpExprGetLeftExpr | ||||||||||
| 60 | lib_OpExprGetRightExpr | ||||||||||
| 61 | lib_GroupCreateDefine | ||||||||||
| 62 | lib_DefineGetInfo | ||||||||||
| 63 | lib_DefineGetName | ||||||||||
| 64 | lib_DefineGetAllowedGroupName | ||||||||||
| 65 | lib_DefineGetValueType | ||||||||||
| 66 | lib_GroupCreateGroup | ||||||||||
| 67 | lib_GroupGetGroupType | ||||||||||
| 68 | lib_GroupGetComment | ||||||||||
| 69 | lib_GroupSetComment | ||||||||||
| 70 | lib_AttrGetComment | ||||||||||
| 71 | lib_AttrSetComment | ||||||||||
| 72 | lib_DefineGetComment | ||||||||||
| 73 | lib_DefineSetComment | ||||||||||
| 74 | lib_GroupAddName | ||||||||||
| 75 | lib_GroupDeleteName | ||||||||||
| 76 | lib_PIFindGroupByName | ||||||||||
| 77 | lib_GroupFindGroupByName | ||||||||||
| 78 | lib_GroupFindAttrByName | ||||||||||
| 79 | lib_GroupFindDefineByName | ||||||||||
| 80 | lib_PIFindDefineByName | ||||||||||
| 81 | lib_PIGetGroups | ||||||||||
| 82 | lib_GroupGetGroups | ||||||||||
| 83 | lib_GroupGetNames | ||||||||||
| 84 | lib_GroupGetAttrs | ||||||||||
| 85 | lib_GroupGetDefines | ||||||||||
| 86 | lib_IterNextGroup | ||||||||||
| 87 | lib_IterNextName | ||||||||||
| 88 | lib_IterNextAttr | ||||||||||
| 89 | lib_IterNextDefine | ||||||||||
| 90 | lib_IterQuit | ||||||||||
| 91 | lib_ObjectDelete | ||||||||||
| 92 | lib_PIGetErrorText | ||||||||||
| 93 | lib_PIGetNullId | ||||||||||
| 94 | lib_PIInit | ||||||||||
| 95 | lib_PIQuit | ||||||||||
| 96 | lib_ObjectGetObjectType | ||||||||||
| 97 | lib_ObjectGetOwner | ||||||||||
| 98 | lib_ObjectIsNull | ||||||||||
| 99 | lib_ObjectIsSame | ||||||||||
| 100 | lib_ObjectIsUsable | ||||||||||
| 101 | lib_ObjectSetFileName | ||||||||||
| 102 | lib_ObjectSetLineNo | ||||||||||
| 103 | lib_ObjectGetLineNo | ||||||||||
| 104 | lib_ObjectGetFileName | ||||||||||
| 105 | lib_ReadLibertyFile | ||||||||||
| 106 | lib_WriteLibertyFile | ||||||||||
| 107 | lib_CheckLibertyLibrary | ||||||||||
| 108 | lib_PIGetTraceMode | ||||||||||
| 109 | lib_PIUnSetTraceMode | ||||||||||
| 110 | lib_PISetTraceMode | ||||||||||
| 111 | lib_PISetDebugMode | ||||||||||
| 112 | lib_PIUnSetDebugMode | ||||||||||
| 113 | lib_PIGetDebugMode | ||||||||||
| 114 | lib_PISetNocheckMode | ||||||||||
| 115 | lib_PIUnSetNocheckMode | ||||||||||
| 116 | lib_PIGetNocheckMode | ||||||||||
| 117 | lib_GroupMoveAfter | ||||||||||
| 118 | lib_GroupMoveBefore | ||||||||||
| 119 | ); | ||||||||||
| 120 | |||||||||||
| 121 | # ---------- BASE METHODS ------------- | ||||||||||
| 122 | |||||||||||
| 123 | package liberty; | ||||||||||
| 124 | |||||||||||
| 125 | 0 | ▶ | sub TIEHASH { | ||||||||
|
Subroutine
TIEHASH: not called CC=1 SCAR=6.9
| |||||||||||
| 126 | 0 | my ($classname,$obj) = @_; | |||||||||
| 127 | 0 | return bless $obj, $classname; | |||||||||
| 128 | } | ||||||||||
| 129 | |||||||||||
| 130 | 0 | ▶ | sub CLEAR { } | ||||||||
|
Subroutine
CLEAR: not called CC=1 SCAR=0.0
| |||||||||||
| 131 | |||||||||||
| 132 | 0 | ▶ | sub FIRSTKEY { } | ||||||||
|
Subroutine
FIRSTKEY: not called CC=1 SCAR=0.0
| |||||||||||
| 133 | |||||||||||
| 134 | 0 | ▶ | sub NEXTKEY { } | ||||||||
|
Subroutine
NEXTKEY: not called CC=1 SCAR=0.0
| |||||||||||
| 135 | |||||||||||
| 136 | 0 | ▶ | sub FETCH { | ||||||||
|
Subroutine
FETCH: not called CC=1 SCAR=6.9
| |||||||||||
| 137 | 0 | my ($self,$field) = @_; | |||||||||
| 138 | 0 | my $member_func = "swig_${field}_get"; | |||||||||
| 139 | 0 | $self->$member_func(); | |||||||||
| 140 | } | ||||||||||
| 141 | |||||||||||
| 142 | 0 | ▶ | sub STORE { | ||||||||
|
Subroutine
STORE: not called CC=1 SCAR=6.9
| |||||||||||
| 143 | 0 | my ($self,$field,$newval) = @_; | |||||||||
| 144 | 0 | my $member_func = "swig_${field}_set"; | |||||||||
| 145 | 0 | $self->$member_func($newval); | |||||||||
| 146 | } | ||||||||||
| 147 | |||||||||||
| 148 | 0 | ▶ | sub this { | ||||||||
|
Subroutine
this: not called CC=1 SCAR=6.9
| |||||||||||
| 149 | 0 | my $ptr = shift; | |||||||||
| 150 | 0 | return tied(%$ptr); | |||||||||
| 151 | } | ||||||||||
| 152 | |||||||||||
| 153 | |||||||||||
| 154 | # ------- FUNCTION WRAPPERS -------- | ||||||||||
| 155 | |||||||||||
| 156 | package liberty; | ||||||||||
| 157 | |||||||||||
| 158 | *lib_PICreateGroup = *libertyc::si2drPICreateGroup; | ||||||||||
| 159 | *lib_GroupCreateAttr = *libertyc::si2drGroupCreateAttr; | ||||||||||
| 160 | *lib_AttrGetAttrType = *libertyc::si2drAttrGetAttrType; | ||||||||||
| 161 | *lib_AttrGetName = *libertyc::si2drAttrGetName; | ||||||||||
| 162 | *lib_ComplexAttrAddInt32Value = *libertyc::si2drComplexAttrAddInt32Value; | ||||||||||
| 163 | *lib_ComplexAttrAddStringValue = *libertyc::si2drComplexAttrAddStringValue; | ||||||||||
| 164 | *lib_ComplexAttrAddBooleanValue = *libertyc::si2drComplexAttrAddBooleanValue; | ||||||||||
| 165 | *lib_ComplexAttrAddFloat64Value = *libertyc::si2drComplexAttrAddFloat64Value; | ||||||||||
| 166 | *lib_ComplexAttrAddExprValue = *libertyc::si2drComplexAttrAddExprValue; | ||||||||||
| 167 | *lib_ComplexAttrGetValues = *libertyc::si2drComplexAttrGetValues; | ||||||||||
| 168 | *lib_IterNextComplex = *libertyc::si2drIterNextComplex; | ||||||||||
| 169 | *lib_ComplexValGetValueType = *libertyc::si2drComplexValGetValueType; | ||||||||||
| 170 | *lib_ComplexValGetInt32Value = *libertyc::si2drComplexValGetInt32Value; | ||||||||||
| 171 | *lib_ComplexValGetFloat64Value = *libertyc::si2drComplexValGetFloat64Value; | ||||||||||
| 172 | *lib_ComplexValGetStringValue = *libertyc::si2drComplexValGetStringValue; | ||||||||||
| 173 | *lib_ComplexValGetBooleanValue = *libertyc::si2drComplexValGetBooleanValue; | ||||||||||
| 174 | *lib_ComplexValGetExprValue = *libertyc::si2drComplexValGetExprValue; | ||||||||||
| 175 | *lib_SimpleAttrGetValueType = *libertyc::si2drSimpleAttrGetValueType; | ||||||||||
| 176 | *lib_SimpleAttrGetInt32Value = *libertyc::si2drSimpleAttrGetInt32Value; | ||||||||||
| 177 | *lib_SimpleAttrGetFloat64Value = *libertyc::si2drSimpleAttrGetFloat64Value; | ||||||||||
| 178 | *lib_SimpleAttrGetStringValue = *libertyc::si2drSimpleAttrGetStringValue; | ||||||||||
| 179 | *lib_SimpleAttrGetBooleanValue = *libertyc::si2drSimpleAttrGetBooleanValue; | ||||||||||
| 180 | *lib_SimpleAttrGetExprValue = *libertyc::si2drSimpleAttrGetExprValue; | ||||||||||
| 181 | *lib_SimpleAttrSetInt32Value = *libertyc::si2drSimpleAttrSetInt32Value; | ||||||||||
| 182 | *lib_SimpleAttrSetBooleanValue = *libertyc::si2drSimpleAttrSetBooleanValue; | ||||||||||
| 183 | *lib_SimpleAttrSetFloat64Value = *libertyc::si2drSimpleAttrSetFloat64Value; | ||||||||||
| 184 | *lib_SimpleAttrSetStringValue = *libertyc::si2drSimpleAttrSetStringValue; | ||||||||||
| 185 | *lib_SimpleAttrSetExprValue = *libertyc::si2drSimpleAttrSetExprValue; | ||||||||||
| 186 | *lib_SimpleAttrGetIsVar = *libertyc::si2drSimpleAttrGetIsVar; | ||||||||||
| 187 | *lib_SimpleAttrSetIsVar = *libertyc::si2drSimpleAttrSetIsVar; | ||||||||||
| 188 | *lib_ExprDestroy = *libertyc::si2drExprDestroy; | ||||||||||
| 189 | *lib_CreateExpr = *libertyc::si2drCreateExpr; | ||||||||||
| 190 | *lib_CreateBooleanValExpr = *libertyc::si2drCreateBooleanValExpr; | ||||||||||
| 191 | *lib_CreateDoubleValExpr = *libertyc::si2drCreateDoubleValExpr; | ||||||||||
| 192 | *lib_CreateStringValExpr = *libertyc::si2drCreateStringValExpr; | ||||||||||
| 193 | *lib_CreateIntValExpr = *libertyc::si2drCreateIntValExpr; | ||||||||||
| 194 | *lib_CreateBinaryOpExpr = *libertyc::si2drCreateBinaryOpExpr; | ||||||||||
| 195 | *lib_CreateUnaryOpExpr = *libertyc::si2drCreateUnaryOpExpr; | ||||||||||
| 196 | *lib_ExprToString = *libertyc::si2drExprToString; | ||||||||||
| 197 | *lib_ExprGetType = *libertyc::si2drExprGetType; | ||||||||||
| 198 | *lib_ValExprGetValueType = *libertyc::si2drValExprGetValueType; | ||||||||||
| 199 | *lib_IntValExprGetInt = *libertyc::si2drIntValExprGetInt; | ||||||||||
| 200 | *lib_DoubleValExprGetDouble = *libertyc::si2drDoubleValExprGetDouble; | ||||||||||
| 201 | *lib_BooleanValExprGetBoolean = *libertyc::si2drBooleanValExprGetBoolean; | ||||||||||
| 202 | *lib_StringValExprGetString = *libertyc::si2drStringValExprGetString; | ||||||||||
| 203 | *lib_OpExprGetLeftExpr = *libertyc::si2drOpExprGetLeftExpr; | ||||||||||
| 204 | *lib_OpExprGetRightExpr = *libertyc::si2drOpExprGetRightExpr; | ||||||||||
| 205 | *lib_GroupCreateDefine = *libertyc::si2drGroupCreateDefine; | ||||||||||
| 206 | *lib_DefineGetInfo = *libertyc::si2drDefineGetInfo; | ||||||||||
| 207 | *lib_DefineGetName = *libertyc::si2drDefineGetName; | ||||||||||
| 208 | *lib_DefineGetAllowedGroupName = *libertyc::si2drDefineGetAllowedGroupName; | ||||||||||
| 209 | *lib_DefineGetValueType = *libertyc::si2drDefineGetValueType; | ||||||||||
| 210 | *lib_GroupCreateGroup = *libertyc::si2drGroupCreateGroup; | ||||||||||
| 211 | *lib_GroupGetGroupType = *libertyc::si2drGroupGetGroupType; | ||||||||||
| 212 | *lib_GroupGetComment = *libertyc::si2drGroupGetComment; | ||||||||||
| 213 | *lib_GroupSetComment = *libertyc::si2drGroupSetComment; | ||||||||||
| 214 | *lib_AttrGetComment = *libertyc::si2drAttrGetComment; | ||||||||||
| 215 | *lib_AttrSetComment = *libertyc::si2drAttrSetComment; | ||||||||||
| 216 | *lib_DefineGetComment = *libertyc::si2drDefineGetComment; | ||||||||||
| 217 | *lib_DefineSetComment = *libertyc::si2drDefineSetComment; | ||||||||||
| 218 | *lib_GroupAddName = *libertyc::si2drGroupAddName; | ||||||||||
| 219 | *lib_GroupDeleteName = *libertyc::si2drGroupDeleteName; | ||||||||||
| 220 | *lib_PIFindGroupByName = *libertyc::si2drPIFindGroupByName; | ||||||||||
| 221 | *lib_GroupFindGroupByName = *libertyc::si2drGroupFindGroupByName; | ||||||||||
| 222 | *lib_GroupFindAttrByName = *libertyc::si2drGroupFindAttrByName; | ||||||||||
| 223 | *lib_GroupFindDefineByName = *libertyc::si2drGroupFindDefineByName; | ||||||||||
| 224 | *lib_PIFindDefineByName = *libertyc::si2drPIFindDefineByName; | ||||||||||
| 225 | *lib_PIGetGroups = *libertyc::si2drPIGetGroups; | ||||||||||
| 226 | *lib_GroupGetGroups = *libertyc::si2drGroupGetGroups; | ||||||||||
| 227 | *lib_GroupGetNames = *libertyc::si2drGroupGetNames; | ||||||||||
| 228 | *lib_GroupGetAttrs = *libertyc::si2drGroupGetAttrs; | ||||||||||
| 229 | *lib_GroupGetDefines = *libertyc::si2drGroupGetDefines; | ||||||||||
| 230 | *lib_IterNextGroup = *libertyc::si2drIterNextGroup; | ||||||||||
| 231 | *lib_IterNextName = *libertyc::si2drIterNextName; | ||||||||||
| 232 | *lib_IterNextAttr = *libertyc::si2drIterNextAttr; | ||||||||||
| 233 | *lib_IterNextDefine = *libertyc::si2drIterNextDefine; | ||||||||||
| 234 | *lib_IterQuit = *libertyc::si2drIterQuit; | ||||||||||
| 235 | *lib_ObjectDelete = *libertyc::si2drObjectDelete; | ||||||||||
| 236 | *lib_PIGetErrorText = *libertyc::si2drPIGetErrorText; | ||||||||||
| 237 | *lib_PIGetNullId = *libertyc::si2drPIGetNullId; | ||||||||||
| 238 | *lib_PIInit = *libertyc::si2drPIInit; | ||||||||||
| 239 | *lib_PIQuit = *libertyc::si2drPIQuit; | ||||||||||
| 240 | *lib_ObjectGetObjectType = *libertyc::si2drObjectGetObjectType; | ||||||||||
| 241 | *lib_ObjectGetOwner = *libertyc::si2drObjectGetOwner; | ||||||||||
| 242 | *lib_ObjectIsNull = *libertyc::si2drObjectIsNull; | ||||||||||
| 243 | *lib_ObjectIsSame = *libertyc::si2drObjectIsSame; | ||||||||||
| 244 | *lib_ObjectIsUsable = *libertyc::si2drObjectIsUsable; | ||||||||||
| 245 | *lib_ObjectSetFileName = *libertyc::si2drObjectSetFileName; | ||||||||||
| 246 | *lib_ObjectSetLineNo = *libertyc::si2drObjectSetLineNo; | ||||||||||
| 247 | *lib_ObjectGetLineNo = *libertyc::si2drObjectGetLineNo; | ||||||||||
| 248 | *lib_ObjectGetFileName = *libertyc::si2drObjectGetFileName; | ||||||||||
| 249 | *lib_ReadLibertyFile = *libertyc::si2drReadLibertyFile; | ||||||||||
| 250 | *lib_WriteLibertyFile = *libertyc::si2drWriteLibertyFile; | ||||||||||
| 251 | *lib_CheckLibertyLibrary = *libertyc::si2drCheckLibertyLibrary; | ||||||||||
| 252 | *lib_PIGetTraceMode = *libertyc::si2drPIGetTraceMode; | ||||||||||
| 253 | *lib_PIUnSetTraceMode = *libertyc::si2drPIUnSetTraceMode; | ||||||||||
| 254 | *lib_PISetTraceMode = *libertyc::si2drPISetTraceMode; | ||||||||||
| 255 | *lib_PISetDebugMode = *libertyc::si2drPISetDebugMode; | ||||||||||
| 256 | *lib_PIUnSetDebugMode = *libertyc::si2drPIUnSetDebugMode; | ||||||||||
| 257 | *lib_PIGetDebugMode = *libertyc::si2drPIGetDebugMode; | ||||||||||
| 258 | *lib_PISetNocheckMode = *libertyc::si2drPISetNocheckMode; | ||||||||||
| 259 | *lib_PIUnSetNocheckMode = *libertyc::si2drPIUnSetNocheckMode; | ||||||||||
| 260 | *lib_PIGetNocheckMode = *libertyc::si2drPIGetNocheckMode; | ||||||||||
| 261 | *lib_GroupMoveAfter = *libertyc::si2drGroupMoveAfter; | ||||||||||
| 262 | *lib_GroupMoveBefore = *libertyc::si2drGroupMoveBefore; | ||||||||||
| 263 | |||||||||||
| 264 | *liberty_get_element = *libertyc::liberty_get_element; | ||||||||||
| 265 | *liberty_destroy_value_data = *libertyc::liberty_destroy_value_data; | ||||||||||
| 266 | *liberty_get_values_data = *libertyc::liberty_get_values_data; | ||||||||||
| 267 | |||||||||||
| 268 | ############# Class : liberty::si2ObjectIdT ############## | ||||||||||
| 269 | |||||||||||
| 270 | package liberty::si2ObjectIdT; | ||||||||||
| 271 | 1 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 272 | @ISA = qw( liberty ); | ||||||||||
| 273 | %OWNER = (); | ||||||||||
| 274 | %ITERATORS = (); | ||||||||||
| 275 | *swig_v1_get = *libertyc::si2ObjectIdT_v1_get; | ||||||||||
| 276 | *swig_v1_set = *libertyc::si2ObjectIdT_v1_set; | ||||||||||
| 277 | *swig_v2_get = *libertyc::si2ObjectIdT_v2_get; | ||||||||||
| 278 | *swig_v2_set = *libertyc::si2ObjectIdT_v2_set; | ||||||||||
| 279 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 280 | 0 | my $pkg = shift; | |||||||||
| 281 | 0 | my $self = libertyc::new_si2ObjectIdT(@_); | |||||||||
| 282 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 283 | } | ||||||||||
| 284 | |||||||||||
| 285 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 286 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 287 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 288 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 289 | 0 | delete $ITERATORS{$self}; | |||||||||
| 290 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 291 | 0 | libertyc::delete_si2ObjectIdT($self); | |||||||||
| 292 | 0 | delete $OWNER{$self}; | |||||||||
| 293 | } | ||||||||||
| 294 | } | ||||||||||
| 295 | |||||||||||
| 296 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 297 | 0 | my $self = shift; | |||||||||
| 298 | 0 | my $ptr = tied(%$self); | |||||||||
| 299 | 0 | delete $OWNER{$ptr}; | |||||||||
| 300 | } | ||||||||||
| 301 | |||||||||||
| 302 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 303 | 0 | my $self = shift; | |||||||||
| 304 | 0 | my $ptr = tied(%$self); | |||||||||
| 305 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 306 | } | ||||||||||
| 307 | |||||||||||
| 308 | |||||||||||
| 309 | ############# Class : liberty::si2drExprT ############## | ||||||||||
| 310 | |||||||||||
| 311 | package liberty::si2drExprT; | ||||||||||
| 312 | 1 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 313 | @ISA = qw( liberty ); | ||||||||||
| 314 | %OWNER = (); | ||||||||||
| 315 | %ITERATORS = (); | ||||||||||
| 316 | *swig_type_get = *libertyc::si2drExprT_type_get; | ||||||||||
| 317 | *swig_type_set = *libertyc::si2drExprT_type_set; | ||||||||||
| 318 | *swig_valuetype_get = *libertyc::si2drExprT_valuetype_get; | ||||||||||
| 319 | *swig_valuetype_set = *libertyc::si2drExprT_valuetype_set; | ||||||||||
| 320 | *swig_left_get = *libertyc::si2drExprT_left_get; | ||||||||||
| 321 | *swig_left_set = *libertyc::si2drExprT_left_set; | ||||||||||
| 322 | *swig_right_get = *libertyc::si2drExprT_right_get; | ||||||||||
| 323 | *swig_right_set = *libertyc::si2drExprT_right_set; | ||||||||||
| 324 | *swig_u_get = *libertyc::si2drExprT_u_get; | ||||||||||
| 325 | *swig_u_set = *libertyc::si2drExprT_u_set; | ||||||||||
| 326 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 327 | 0 | my $pkg = shift; | |||||||||
| 328 | 0 | my $self = libertyc::new_si2drExprT(@_); | |||||||||
| 329 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 330 | } | ||||||||||
| 331 | |||||||||||
| 332 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 333 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 334 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 335 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 336 | 0 | delete $ITERATORS{$self}; | |||||||||
| 337 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 338 | 0 | libertyc::delete_si2drExprT($self); | |||||||||
| 339 | 0 | delete $OWNER{$self}; | |||||||||
| 340 | } | ||||||||||
| 341 | } | ||||||||||
| 342 | |||||||||||
| 343 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 344 | 0 | my $self = shift; | |||||||||
| 345 | 0 | my $ptr = tied(%$self); | |||||||||
| 346 | 0 | delete $OWNER{$ptr}; | |||||||||
| 347 | } | ||||||||||
| 348 | |||||||||||
| 349 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 350 | 0 | my $self = shift; | |||||||||
| 351 | 0 | my $ptr = tied(%$self); | |||||||||
| 352 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 353 | } | ||||||||||
| 354 | |||||||||||
| 355 | |||||||||||
| 356 | ############# Class : liberty::si2drExprT_u ############## | ||||||||||
| 357 | |||||||||||
| 358 | package liberty::si2drExprT_u; | ||||||||||
| 359 | 1 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 360 | @ISA = qw( liberty ); | ||||||||||
| 361 | %OWNER = (); | ||||||||||
| 362 | %ITERATORS = (); | ||||||||||
| 363 | *swig_i_get = *libertyc::si2drExprT_u_i_get; | ||||||||||
| 364 | *swig_i_set = *libertyc::si2drExprT_u_i_set; | ||||||||||
| 365 | *swig_d_get = *libertyc::si2drExprT_u_d_get; | ||||||||||
| 366 | *swig_d_set = *libertyc::si2drExprT_u_d_set; | ||||||||||
| 367 | *swig_s_get = *libertyc::si2drExprT_u_s_get; | ||||||||||
| 368 | *swig_s_set = *libertyc::si2drExprT_u_s_set; | ||||||||||
| 369 | *swig_b_get = *libertyc::si2drExprT_u_b_get; | ||||||||||
| 370 | *swig_b_set = *libertyc::si2drExprT_u_b_set; | ||||||||||
| 371 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 372 | 0 | my $pkg = shift; | |||||||||
| 373 | 0 | my $self = libertyc::new_si2drExprT_u(@_); | |||||||||
| 374 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 375 | } | ||||||||||
| 376 | |||||||||||
| 377 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 378 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 379 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 380 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 381 | 0 | delete $ITERATORS{$self}; | |||||||||
| 382 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 383 | 0 | libertyc::delete_si2drExprT_u($self); | |||||||||
| 384 | 0 | delete $OWNER{$self}; | |||||||||
| 385 | } | ||||||||||
| 386 | } | ||||||||||
| 387 | |||||||||||
| 388 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 389 | 0 | my $self = shift; | |||||||||
| 390 | 0 | my $ptr = tied(%$self); | |||||||||
| 391 | 0 | delete $OWNER{$ptr}; | |||||||||
| 392 | } | ||||||||||
| 393 | |||||||||||
| 394 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 395 | 0 | my $self = shift; | |||||||||
| 396 | 0 | my $ptr = tied(%$self); | |||||||||
| 397 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 398 | } | ||||||||||
| 399 | |||||||||||
| 400 | |||||||||||
| 401 | ############# Class : liberty::liberty_value_data ############## | ||||||||||
| 402 | |||||||||||
| 403 | package liberty::liberty_value_data; | ||||||||||
| 404 | 1 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 405 | @ISA = qw( liberty ); | ||||||||||
| 406 | %OWNER = (); | ||||||||||
| 407 | %ITERATORS = (); | ||||||||||
| 408 | *swig_dimensions_get = *libertyc::liberty_value_data_dimensions_get; | ||||||||||
| 409 | *swig_dimensions_set = *libertyc::liberty_value_data_dimensions_set; | ||||||||||
| 410 | *swig_dim_sizes_get = *libertyc::liberty_value_data_dim_sizes_get; | ||||||||||
| 411 | *swig_dim_sizes_set = *libertyc::liberty_value_data_dim_sizes_set; | ||||||||||
| 412 | *swig_index_info_get = *libertyc::liberty_value_data_index_info_get; | ||||||||||
| 413 | *swig_index_info_set = *libertyc::liberty_value_data_index_info_set; | ||||||||||
| 414 | *swig_values_get = *libertyc::liberty_value_data_values_get; | ||||||||||
| 415 | *swig_values_set = *libertyc::liberty_value_data_values_set; | ||||||||||
| 416 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 417 | 0 | my $pkg = shift; | |||||||||
| 418 | 0 | my $self = libertyc::new_liberty_value_data(@_); | |||||||||
| 419 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 420 | } | ||||||||||
| 421 | |||||||||||
| 422 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 423 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 424 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 425 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 426 | 0 | delete $ITERATORS{$self}; | |||||||||
| 427 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 428 | 0 | libertyc::delete_liberty_value_data($self); | |||||||||
| 429 | 0 | delete $OWNER{$self}; | |||||||||
| 430 | } | ||||||||||
| 431 | } | ||||||||||
| 432 | |||||||||||
| 433 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 434 | 0 | my $self = shift; | |||||||||
| 435 | 0 | my $ptr = tied(%$self); | |||||||||
| 436 | 0 | delete $OWNER{$ptr}; | |||||||||
| 437 | } | ||||||||||
| 438 | |||||||||||
| 439 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 440 | 0 | my $self = shift; | |||||||||
| 441 | 0 | my $ptr = tied(%$self); | |||||||||
| 442 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 443 | } | ||||||||||
| 444 | |||||||||||
| 445 | |||||||||||
| 446 | # ------- VARIABLE STUBS -------- | ||||||||||
| 447 | |||||||||||
| 448 | package liberty; | ||||||||||
| 449 | |||||||||||
| 450 | *SI2_FALSE = *libertyc::SI2_FALSE; | ||||||||||
| 451 | *SI2_TRUE = *libertyc::SI2_TRUE; | ||||||||||
| 452 | *SI2_UNDEFINED_VALUETYPE = *libertyc::SI2_UNDEFINED_VALUETYPE; | ||||||||||
| 453 | *SI2_BOOLEAN = *libertyc::SI2_BOOLEAN; | ||||||||||
| 454 | *SI2_LONG = *libertyc::SI2_LONG; | ||||||||||
| 455 | *SI2_FLOAT = *libertyc::SI2_FLOAT; | ||||||||||
| 456 | *SI2_DOUBLE = *libertyc::SI2_DOUBLE; | ||||||||||
| 457 | *SI2_STRING = *libertyc::SI2_STRING; | ||||||||||
| 458 | *SI2_VOID = *libertyc::SI2_VOID; | ||||||||||
| 459 | *SI2_OID = *libertyc::SI2_OID; | ||||||||||
| 460 | *SI2_ITER = *libertyc::SI2_ITER; | ||||||||||
| 461 | *SI2_EXPR = *libertyc::SI2_EXPR; | ||||||||||
| 462 | *SI2_MAX_VALUETYPE = *libertyc::SI2_MAX_VALUETYPE; | ||||||||||
| 463 | *SI2_LONG_MAX = *libertyc::SI2_LONG_MAX; | ||||||||||
| 464 | *SI2_LONG_MIN = *libertyc::SI2_LONG_MIN; | ||||||||||
| 465 | *SI2_ULONG_MAX = *libertyc::SI2_ULONG_MAX; | ||||||||||
| 466 | *SI2DR_MIN_FLOAT32 = *libertyc::SI2DR_MIN_FLOAT32; | ||||||||||
| 467 | *SI2DR_MAX_FLOAT32 = *libertyc::SI2DR_MAX_FLOAT32; | ||||||||||
| 468 | *SI2DR_MIN_FLOAT64 = *libertyc::SI2DR_MIN_FLOAT64; | ||||||||||
| 469 | *SI2DR_MAX_FLOAT64 = *libertyc::SI2DR_MAX_FLOAT64; | ||||||||||
| 470 | *SI2DR_MIN_INT32 = *libertyc::SI2DR_MIN_INT32; | ||||||||||
| 471 | *SI2DR_MAX_INT32 = *libertyc::SI2DR_MAX_INT32; | ||||||||||
| 472 | *SI2DR_SEVERITY_NOTE = *libertyc::SI2DR_SEVERITY_NOTE; | ||||||||||
| 473 | *SI2DR_SEVERITY_WARN = *libertyc::SI2DR_SEVERITY_WARN; | ||||||||||
| 474 | *SI2DR_SEVERITY_ERR = *libertyc::SI2DR_SEVERITY_ERR; | ||||||||||
| 475 | *SI2DR_UNDEFINED_OBJECTTYPE = *libertyc::SI2DR_UNDEFINED_OBJECTTYPE; | ||||||||||
| 476 | *SI2DR_GROUP = *libertyc::SI2DR_GROUP; | ||||||||||
| 477 | *SI2DR_ATTR = *libertyc::SI2DR_ATTR; | ||||||||||
| 478 | *SI2DR_DEFINE = *libertyc::SI2DR_DEFINE; | ||||||||||
| 479 | *SI2DR_MAX_OBJECTTYPE = *libertyc::SI2DR_MAX_OBJECTTYPE; | ||||||||||
| 480 | *SI2DR_SIMPLE = *libertyc::SI2DR_SIMPLE; | ||||||||||
| 481 | *SI2DR_COMPLEX = *libertyc::SI2DR_COMPLEX; | ||||||||||
| 482 | *SI2DR_UNDEFINED_VALUETYPE = *libertyc::SI2DR_UNDEFINED_VALUETYPE; | ||||||||||
| 483 | *SI2DR_INT32 = *libertyc::SI2DR_INT32; | ||||||||||
| 484 | *SI2DR_STRING = *libertyc::SI2DR_STRING; | ||||||||||
| 485 | *SI2DR_FLOAT64 = *libertyc::SI2DR_FLOAT64; | ||||||||||
| 486 | *SI2DR_BOOLEAN = *libertyc::SI2DR_BOOLEAN; | ||||||||||
| 487 | *SI2DR_EXPR = *libertyc::SI2DR_EXPR; | ||||||||||
| 488 | *SI2DR_MAX_VALUETYPE = *libertyc::SI2DR_MAX_VALUETYPE; | ||||||||||
| 489 | *SI2DR_EXPR_VAL = *libertyc::SI2DR_EXPR_VAL; | ||||||||||
| 490 | *SI2DR_EXPR_OP_ADD = *libertyc::SI2DR_EXPR_OP_ADD; | ||||||||||
| 491 | *SI2DR_EXPR_OP_SUB = *libertyc::SI2DR_EXPR_OP_SUB; | ||||||||||
| 492 | *SI2DR_EXPR_OP_MUL = *libertyc::SI2DR_EXPR_OP_MUL; | ||||||||||
| 493 | *SI2DR_EXPR_OP_DIV = *libertyc::SI2DR_EXPR_OP_DIV; | ||||||||||
| 494 | *SI2DR_EXPR_OP_PAREN = *libertyc::SI2DR_EXPR_OP_PAREN; | ||||||||||
| 495 | *SI2DR_EXPR_OP_LOG2 = *libertyc::SI2DR_EXPR_OP_LOG2; | ||||||||||
| 496 | *SI2DR_EXPR_OP_LOG10 = *libertyc::SI2DR_EXPR_OP_LOG10; | ||||||||||
| 497 | *SI2DR_EXPR_OP_EXP = *libertyc::SI2DR_EXPR_OP_EXP; | ||||||||||
| 498 | *SI2DR_NO_ERROR = *libertyc::SI2DR_NO_ERROR; | ||||||||||
| 499 | *SI2DR_INTERNAL_SYSTEM_ERROR = *libertyc::SI2DR_INTERNAL_SYSTEM_ERROR; | ||||||||||
| 500 | *SI2DR_INVALID_VALUE = *libertyc::SI2DR_INVALID_VALUE; | ||||||||||
| 501 | *SI2DR_INVALID_NAME = *libertyc::SI2DR_INVALID_NAME; | ||||||||||
| 502 | *SI2DR_INVALID_OBJECTTYPE = *libertyc::SI2DR_INVALID_OBJECTTYPE; | ||||||||||
| 503 | *SI2DR_INVALID_ATTRTYPE = *libertyc::SI2DR_INVALID_ATTRTYPE; | ||||||||||
| 504 | *SI2DR_UNUSABLE_OID = *libertyc::SI2DR_UNUSABLE_OID; | ||||||||||
| 505 | *SI2DR_OBJECT_ALREADY_EXISTS = *libertyc::SI2DR_OBJECT_ALREADY_EXISTS; | ||||||||||
| 506 | *SI2DR_OBJECT_NOT_FOUND = *libertyc::SI2DR_OBJECT_NOT_FOUND; | ||||||||||
| 507 | *SI2DR_SYNTAX_ERROR = *libertyc::SI2DR_SYNTAX_ERROR; | ||||||||||
| 508 | *SI2DR_TRACE_FILES_CANNOT_BE_OPENED = *libertyc::SI2DR_TRACE_FILES_CANNOT_BE_OPENED; | ||||||||||
| 509 | *SI2DR_PIINIT_NOT_CALLED = *libertyc::SI2DR_PIINIT_NOT_CALLED; | ||||||||||
| 510 | *SI2DR_SEMANTIC_ERROR = *libertyc::SI2DR_SEMANTIC_ERROR; | ||||||||||
| 511 | *SI2DR_REFERENCE_ERROR = *libertyc::SI2DR_REFERENCE_ERROR; | ||||||||||
| 512 | *SI2DR_MAX_ERROR = *libertyc::SI2DR_MAX_ERROR; | ||||||||||
| 513 | 1; | ||||||||||