MCPcopy Create free account
hub / github.com/FDio/vpp / Struct

Class Struct

src/vpp-api/vapi/vapi_json_parser.py:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85class Struct(object):
86 def __init__(self, name, fields):
87 self.name = name
88 self.fields = fields
89 self.field_names = [n.name for n in self.fields]
90 self.depends = [f.type for f in self.fields]
91
92 def __str__(self):
93 return "[%s]" % "], [".join([str(f) for f in self.fields])
94
95 def has_vla(self):
96 for f in self.fields:
97 if f.has_vla():
98 return True
99 return False
100
101
102class Enum(SimpleType):

Callers 8

vpp_stats.pyFile · 0.85
__init__Method · 0.85
VPPStatsClass · 0.85
StatsEntryClass · 0.85
_get_configMethod · 0.85
_get_metadata_ptrMethod · 0.85
_get_data_ptrMethod · 0.85
_get_thread_metadataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected