MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / real_ptr

Function real_ptr

tools/scripts/gdbext.py:213–223  ·  view source on GitHub ↗
(ptr)

Source from the content-addressed store, hash-verified

211
212
213def real_ptr(ptr):
214 try:
215 ptr = ptr['ptr_']
216 except:
217 pass
218
219 if int(ptr) == 0:
220 return None
221 # I'd think this should be a dynamic_cast instead of cast, but dynamic_cast
222 # doesn't seem to work.
223 return ptr.cast(ptr.dynamic_type)
224
225
226def get_singleton(name):

Callers 5

get_singletonFunction · 0.85
get_discoveriesFunction · 0.85
get_transportsFunction · 0.85
get_entitiesFunction · 0.85
opendds_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected