bindings/python/ns3__init__.py
author Peter D. Barnes, Jr. <barnes26@llnl.gov>
Wed, 29 Jul 2015 13:56:55 -0700
changeset 11598 b4d1339b4913
parent 6960 2df22891346b
permissions -rw-r--r--
Refactor TracedValue callback function signatures. Move from template class TracedValue to namespace TracedValueCallback. Rename from [type]Callback to just [type]: TracedValue<double>::DoubleCallback -> TracedValueCallback::Double
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     1
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     2
from _ns3 import *
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     3
4128
4132bb61ab3c Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3408
diff changeset
     4
import atexit
4132bb61ab3c Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3408
diff changeset
     5
atexit.register(Simulator.Destroy)
4132bb61ab3c Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3408
diff changeset
     6
del atexit
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     7