|
Yate
|
#include <yateclass.h>
Public Member Functions | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Static Public Member Functions | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
An object with just a public virtual destructor
| GenObject | ( | ) |
Default constructor
Referenced by HashList::append(), HashList::append(), ObjList::append(), ObjList::at(), ObjVector::at(), SIPTransaction::authUser(), ScriptContext::copyFields(), ScriptContext::createdObj(), ScriptContext::deletedObj(), JsObject::dumpRecursive(), JsObject::extractArgs(), JsObject::extractArgs(), HashList::find(), HashList::find(), ObjList::find(), ObjList::get(), JsObject::getField(), ScriptContext::getField(), getObject(), JsObject::hasField(), ScriptContext::hasField(), ObjList::index(), ObjVector::index(), ObjList::insert(), JsObject::JsObject(), ScriptRun::objCreated(), ScriptRun::objDeleted(), HashList::operator[](), ObjList::operator[](), ObjList::operator[](), ObjList::operator[](), ObjVector::operator[](), ObjVector::operator[](), JsParser::parseJSON(), JsObject::popValue(), JsObject::printRecursive(), HashList::remove(), HashList::remove(), HashList::remove(), ObjList::remove(), ObjList::remove(), ObjList::remove(), HashList::resync(), JsObject::runAssign(), ScriptContext::runAssign(), ScriptRun::runAssign(), JsObject::runConstructor(), JsObject::runField(), ScriptContext::runField(), JsObject::runFunction(), ScriptContext::runFunction(), ScriptContext::runMatchingField(), JsObject::runNative(), ObjList::set(), ObjVector::set(), JsObject::setPrototype(), ObjList::setUnique(), SocketAddr::SocketAddr(), ObjList::sort(), JsObject::strEscape(), ObjVector::take(), JBClientStream::userData(), and JBClientStream::userData().
|
inlinevirtual |
Destructor.
References setObjCounter().
|
virtual |
Check if the object is still valid and safe to access. Note that you should not trust this result unless the object is locked by other means.
Reimplemented in RefObject.
|
virtual |
Destroys the object, disposes the memory.
Reimplemented in AnalogLineEvent, RefObject, RTPTransport, SignallingCircuitRange, ClientLogic, ClientSound, JBEngine, and MessageHandler.
Referenced by AnalogLineEvent::destruct(), SignallingCircuitRange::destruct(), and ClientSound::destruct().
|
inline |
Get the counter of this object
Referenced by TempObjectCounter::TempObjectCounter(), and TempObjectCounter::TempObjectCounter().
|
static |
Retrieve or allocate an object counter
| name | Name of the counter |
| create | True to create a new counter if needed |
|
static |
Access the object counters list
|
inlinestatic |
Get the global state of object counting
Referenced by TempObjectCounter::TempObjectCounter(), TempObjectCounter::TempObjectCounter(), and TempObjectCounter::TempObjectCounter().
|
virtual |
Get a pointer to a derived class given that class name
| name | Name of the class we are asking for |
Reimplemented in Array, Cipher, DataBlock, ExpWrapper, HashList, ISDNQ931Call, ISDNQ931CallMonitor, ISDNQ931Message, NamedList, NamedPointer, NamedString, ObjList, ObjVector, RefObject, ScriptContext, SocketFilter, SocketRef, SS7ISUPCall, String, CallEndpoint, Channel, DataConsumer, DataEndpoint, DataSource, DataTranslator, Driver, JBStream, Message, MimeAuthLine, MimeBinaryBody, MimeBody, MimeHeaderLine, MimeLinesBody, MimeMultipartBody, MimeSdpBody, MimeStringBody, Module, and Plugin.
Referenced by getObject().
Helper method to get the pointer to a derived class
| name | Name of the class we are asking for |
| obj | Pointer to the object to get derived class from |
References GenObject(), and getObject().
| NamedCounter * setObjCounter | ( | NamedCounter * | counter | ) |
Set the counter of this object
| counter | New counter object or NULL |
Referenced by ~GenObject().
|
inlinestatic |
Set the global state of object counting
| enable | True to enable object counting, false to disable |
|
virtual |
Get a string representation of this object
Reimplemented in AnalogLine, AsnMib, ASNObjId, ChanAssist, MGCPEndpoint, MGCPEpInfo, NamedString, RadioInterface, ScriptContext, SignallingComponent, SS7TCAPComponent, SS7TCAPTransaction, String, CallEndpoint, ClientAccount, ClientContact, ClientFileItem, ClientLogic, ClientResource, DataEndpoint, DurationUpdate, JBConnect, JBStream, JBStreamSetList, JGRtpMedia, JGSessionContent, Plugin, Window, and XmlElement.
|
virtual |
Get the trace ID associated with this object
Reimplemented in ScriptRun, SIPMessage, and SIPTransaction.
Referenced by RTPDejitter::RTPDejitter(), RTPProcessor::RTPProcessor(), RTPSecure::RTPSecure(), RTPSecure::RTPSecure(), RTPSession::RTPSession(), RTPTransport::RTPTransport(), SIPEvent::traceId(), UDPSession::UDPSession(), and UDPTLSession::UDPTLSession().