|
The Assimilation Monitoring Project
|
Data Structures | |
| class | cClass |
| class | SwitchDiscovery |
| class | pyAssimObj |
| class | pyNetAddr |
| class | pyFrame |
| class | pyAddrFrame |
| class | pyIpPortFrame |
| class | pyCstringFrame |
| class | pyIntFrame |
| class | pyUnknownFrame |
| class | pySeqnoFrame |
| class | pySignFrame |
| class | pyNVpairFrame |
| class | pyFrameSet |
| class | pyPacketDecoder |
| class | pyConfigContext |
| class | pyConfigValue |
| class | pyNetIO |
| class | pyNetIOudp |
| class | pyReliableUDP |
| class | CMAlib |
Functions | |
| def | CCref |
| def | CCunref |
| def cma.AssimCclasses.CCref | ( | obj | ) |
Increment the reference count to an AssimObj (_not_ a pyAssimObj)
Need to call CCref under the following circumstances:
When we are creating an object that points to another underlying C-class object
which already has a permanent reference to it somewhere else
For example, if we're returning a pyNetAddr object that points to a NetAddr object
that's in a ConfigContext object. If we don't, then when our pyNetAddr object goes
out of scope, then the underlying NetAddr object will be freed, even though there's
a reference to it in the ConfigContext object. Conversely, if the ConfigContext
object goes out of scope first, then the our pyNetAddr object could become invalid.
Do not call it when you've constructed a new object that there were no previous pointers
to.
Definition at line 50 of file AssimCclasses.py.
Referenced by cma.AssimCclasses.pyNetIO.boundaddr(), cma.AssimCclasses.pyFrame.Cstruct2Frame(), cma.AssimCclasses.pyConfigValue.get(), cma.AssimCclasses.pyConfigContext.getaddr(), cma.AssimCclasses.pyConfigContext.getarray(), and cma.AssimCclasses.pyConfigContext.getconfig().

| def cma.AssimCclasses.CCunref | ( | obj | ) |
Definition at line 70 of file AssimCclasses.py.
Referenced by cma.AssimCclasses.pyAssimObj.__del__().
