Jamoma API
0.6.0.a19
|
Base class for all first-class Jamoma objects. More...
#include <TTObjectBase.h>
Public Member Functions | |
virtual | ~TTObjectBase () |
Destructor. | |
TTUInt16 | getReferenceCount () |
Query an object to get its current reference count. More... | |
TTUInt32 | getObserverCount () const |
Query an object to get the number of observers. More... | |
TTErr | registerAttribute (const TTSymbol name, const TTDataType type, void *address) |
Register an attribute. More... | |
TTErr | extendAttribute (const TTSymbol name, const TTObjectBasePtr extendedObject, const TTSymbol extendedName) |
Extend the attribute of an existing TTObjectBase to this TTObjectBase (using another attribute name) More... | |
TTErr | removeAttribute (const TTSymbol name) |
Remove an attribute. More... | |
TTErr | findAttribute (const TTSymbol name, TTAttribute **attr) |
Find an attribute. More... | |
TTErr | setAttributeValue (const TTSymbol name, TTValue &value) |
Set an attribute value for an object. More... | |
template<class T > | |
TTErr | set (const TTSymbol aName, T aValue) |
Set an attribute value for an object This is the same as calling setAttributeValue(). More... | |
TTErr | getAttributeValue (const TTSymbol name, TTValue &value) |
Get an attribute value for an object. More... | |
template<class T > | |
TTErr | get (const TTSymbol aName, T &aReturnedValue) |
Get an attribute value for an object This is the same as calling getAttributeValue(). More... | |
TTSymbol | getAttributeType (const TTSymbol name) |
Return the type of an attribute as a symbol. More... | |
TTErr | getAttributeGetterFlags (const TTSymbol name, TTAttributeFlags &value) |
Get the getterFlags of an attribute. More... | |
TTErr | setAttributeGetterFlags (const TTSymbol name, TTAttributeFlags &value) |
Set the getterFlags of an attribute. More... | |
TTErr | getAttributeSetterFlags (const TTSymbol name, TTAttributeFlags &value) |
Get the setterFlags of an attribute. More... | |
TTErr | setAttributeSetterFlags (const TTSymbol name, TTAttributeFlags &value) |
Set the setterFlags of an attribute. More... | |
TTErr | registerAttributeProperty (const TTSymbol attributeName, const TTSymbol propertyName, const TTValue &initialValue, TTGetterMethod getter, TTSetterMethod setter) |
Register an attribute property. More... | |
TTErr | registerMessageProperty (const TTSymbol messageName, const TTSymbol propertyName, const TTValue &initialValue, TTGetterMethod getter, TTSetterMethod setter) |
Register an message property. More... | |
TTErr | getAttribute (const TTSymbol name, TTAttributePtr *attributeObject) |
Search for and locate an attribute. More... | |
TTErr | getMessage (const TTSymbol name, TTMessagePtr *messageObject) |
Search for and locate a message. More... | |
void | getAttributeNames (TTValue &attributeNameList) |
Return a list of names of the available attributes. More... | |
void | getMessageNames (TTValue &messageNameList) |
Return a list of names of the available messages. More... | |
TTSymbol | getName () const |
Return the name of this class. More... | |
TTErr | registerMessage (const TTSymbol name, TTMethod method) |
Register a message with this object. More... | |
TTErr | findMessage (const TTSymbol name, TTMessage **message) |
Find a message registered with this object. More... | |
TTErr | removeMessage (const TTSymbol name) |
Remove a message. More... | |
TTErr | sendMessage (const TTSymbol name) |
TODO: Document this function. More... | |
TTErr | registerObserverForMessage (const TTObject &observingObject, const TTSymbol messageName) |
Register an observer for a message. More... | |
TTErr | registerObserverForAttribute (const TTObject &observingObject, const TTSymbol attributeName) |
Register an observer for an attribute. More... | |
TTErr | registerObserverForNotifications (const TTObject &observingObject) |
Register an observer. More... | |
TTErr | unregisterObserverForMessage (const TTObject &observingObject, const TTSymbol messageName) |
Unregister an observer for a message. More... | |
TTErr | unregisterObserverForAttribute (const TTObject &observingObject, const TTSymbol attributeName) |
Unregister an observer for an attribute. More... | |
TTErr | unregisterObserverForNotifications (const TTObject &observingObject) |
Unregister an observer for notifications. More... | |
TTErr | sendNotification (const TTSymbol name, const TTValue &arguments) |
Send a notification. More... | |
TTErr | logMessage (TTImmutableCString fmtstring,...) |
Log messages scoped to this object instance. More... | |
TTErr | logWarning (TTImmutableCString fmtstring,...) |
Log warnings scoped to this object instance. More... | |
TTErr | logError (TTImmutableCString fmtstring,...) |
Log errors scoped to this object instance. More... | |
TTErr | logDebug (TTImmutableCString fmtstring,...) |
Log messages (scoped to this object instance) to output only if the basic debugging flag is enabled in the environment. More... | |
TTErr | lock () |
Lock the object in order to ensure thread-safe processing. More... | |
TTErr | unlock () |
Unlock the object when thread-safe processing is no longer required. More... | |
TTBoolean | isLocked () |
Query if the object currently is locked for thread-safe processing. More... | |
TTBoolean | waitForLock () |
If the object is locked (e.g. More... | |
Public Attributes | |
TTBoolean | valid |
If the object isn't completely built, or is in the process of freeing, this will be false. | |
TTBoolean | track |
enable the print of a log message to ease the track of reference counting mechanism on an instance More... | |
Protected Member Functions | |
TTObjectBase (const TTValue arguments) | |
Constructor. More... | |
Protected Attributes | |
TTList | observers |
List of all objects watching this object for life-cycle and other changes. | |
Friends | |
class | TTEnvironment |
Base class for all first-class Jamoma objects.
Internal objects may inherit directly from TTObjectBase, but most objects will inherit from TTDataObjectBase or TTAudioObjectBase.
Definition at line 109 of file TTObjectBase.h.
|
protected |
Constructor.
arguments | Arguments to the constructor. |
Definition at line 25 of file TTObjectBase.cpp.
TTErr TTObjectBase::extendAttribute | ( | const TTSymbol | name, |
const TTObjectBasePtr | extendedObject, | ||
const TTSymbol | extendedName | ||
) |
Extend the attribute of an existing TTObjectBase to this TTObjectBase (using another attribute name)
name | The name of the attribute as you wish for it to be in your object (e.g. myFrequency). |
extendedObject | A pointer to the object to which the attribute will be bound. |
extendedName | The name of the attribute as defined by the object that you are extending (e.g. frequency). |
Definition at line 119 of file TTObjectBase.cpp.
References TTHash::append(), findAttribute(), and kTTErrNone.
TTErr TTObjectBase::findAttribute | ( | const TTSymbol | name, |
TTAttribute ** | attr | ||
) |
Find an attribute.
name | The name of the attribute to find. |
attr | Return pointer to the attribute associated with the name. |
Definition at line 147 of file TTObjectBase.cpp.
References kTTErrInvalidAttribute, kTTErrNone, and TTHash::lookup().
Referenced by extendAttribute(), getAttribute(), getAttributeGetterFlags(), getAttributeNames(), getAttributeSetterFlags(), getAttributeType(), getAttributeValue(), removeAttribute(), setAttributeGetterFlags(), setAttributeSetterFlags(), setAttributeValue(), wrapAsMaxAudioGraph(), wrapTTModularClassAsMaxClass(), and wrapTTModularClassAsPdClass().
Find a message registered with this object.
name | The name of the message that we want to find. |
message | Pointer to the resulting message. |
Definition at line 400 of file TTObjectBase.cpp.
References kTTErrInvalidAttribute, kTTErrNone, and TTHash::lookup().
Referenced by getMessage(), and removeMessage().
Get an attribute value for an object This is the same as calling getAttributeValue().
name | The name of the attribute to get. |
value | The returned value of the attribute. |
Definition at line 280 of file TTObjectBase.h.
References getAttributeValue().
|
inline |
Search for and locate an attribute.
name | The name of the attribute we want to find. |
attributeObject | Pointer to the attribute object. |
Definition at line 350 of file TTObjectBase.h.
References findAttribute().
TTErr TTObjectBase::getAttributeGetterFlags | ( | const TTSymbol | name, |
TTAttributeFlags & | value | ||
) |
Get the getterFlags of an attribute.
name | The name of the attribute that we are querying properties of. |
value | Pointer to attribute flags. Used for returning the result of the query. |
Definition at line 236 of file TTObjectBase.cpp.
References findAttribute(), and TTAttribute::getGetterFlags().
void TTObjectBase::getAttributeNames | ( | TTValue & | attributeNameList | ) |
Return a list of names of the available attributes.
attributeNameList | Pointer to a list of all attributes registered with this TTObjectBase. |
Definition at line 286 of file TTObjectBase.cpp.
References TTValue::append(), TTValue::clear(), findAttribute(), TTHash::getKeys(), TTAttribute::hidden, and TTValue::size().
Referenced by TTObject::attributes(), TTTrajectory::getCurrentAttributeNames(), and wrapAsMaxAudioGraph().
TTErr TTObjectBase::getAttributeSetterFlags | ( | const TTSymbol | name, |
TTAttributeFlags & | value | ||
) |
Get the setterFlags of an attribute.
name | The name of the attribute that we are querying properies of. |
value | Pointer to attribute flags. Used for returning the result of the query. |
Definition at line 261 of file TTObjectBase.cpp.
References findAttribute(), and TTAttribute::getSetterFlags().
Return the type of an attribute as a symbol.
name | The name of the attribute we want the type. |
Definition at line 223 of file TTObjectBase.cpp.
References findAttribute(), ttDataTypeInfo, and TTAttribute::type.
Referenced by TTObject::attributeType().
Get an attribute value for an object.
name | The name of the attribute to get. |
value | The returned value of the attribute. |
Definition at line 160 of file TTObjectBase.cpp.
References findAttribute(), TTAttribute::getter, TTAttribute::getterFlags, and kTTAttrPassObject.
Referenced by SampleUnit::convertFromNeutral(), SampleUnit::convertToNeutral(), TTAttribute::extendedGetter(), TTObject::get(), get(), TTAudioGraphInput::getDevice(), TTAudioGraphOutput::getDevice(), TTAudioGraphInput::getSampleRate(), TTAudioGraphOutput::getSampleRate(), TTAudioGraphInput::getVectorSize(), TTAudioGraphOutput::getVectorSize(), TTPowerFunction::test(), TTSoundfileLoader::test(), and TTSampleMatrix::test().
|
inline |
Search for and locate a message.
name | The name of the message we want to find. |
messageObject | Pointer to the message object. |
Definition at line 360 of file TTObjectBase.h.
References findMessage().
Referenced by getMessageNames().
void TTObjectBase::getMessageNames | ( | TTValue & | messageNameList | ) |
Return a list of names of the available messages.
messageNameList | Pointer to a list of all messages registered with this TTObjectBase. |
Definition at line 342 of file TTObjectBase.cpp.
References TTValue::append(), TTValue::clear(), TTHash::getKeys(), getMessage(), TTMessage::hidden, and TTValue::size().
Referenced by TTObject::messages(), and wrapAsMaxAudioGraph().
TTSymbol TTObjectBase::getName | ( | ) | const |
Return the name of this class.
Definition at line 365 of file TTObjectBase.cpp.
Referenced by TTObject::name(), and TTSoundfileLoader::setTargetMatrix().
|
inline |
Query an object to get the number of observers.
Definition at line 149 of file TTObjectBase.h.
Referenced by TTMirror::enableListening().
|
inline |
Query an object to get its current reference count.
Definition at line 144 of file TTObjectBase.h.
Referenced by TTAudioEngine::destroy().
|
inline |
Query if the object currently is locked for thread-safe processing.
Definition at line 540 of file TTObjectBase.h.
Referenced by waitForLock().
|
inline |
Lock the object in order to ensure thread-safe processing.
Definition at line 520 of file TTObjectBase.h.
References kTTErrNone.
Referenced by TTDataObjectBase::calculate(), TTAudioObjectBase::calculate(), TTAudioGraphObjectBase::preprocess(), TTAudioObjectBase::process(), and TTAudioGraphObjectBase::process().
TTErr TTObjectBase::logDebug | ( | TTImmutableCString | fmtstring, |
... | |||
) |
Log messages (scoped to this object instance) to output only if the basic debugging flag is enabled in the environment.
fmtstring | The message to log |
Definition at line 587 of file TTObjectBase.cpp.
References TTSymbol::c_str(), kTTErrNone, TTEnvironment::mDebugBasic, ttEnvironment, and TTLogDebug().
TTErr TTObjectBase::logError | ( | TTImmutableCString | fmtstring, |
... | |||
) |
Log errors scoped to this object instance.
fmtstring | The error to log |
Definition at line 564 of file TTObjectBase.cpp.
References TTSymbol::c_str(), kTTErrNone, and TTLogError().
TTErr TTObjectBase::logMessage | ( | TTImmutableCString | fmtstring, |
... | |||
) |
Log messages scoped to this object instance.
fmtstring | The message to log |
Definition at line 526 of file TTObjectBase.cpp.
References TTSymbol::c_str(), kTTErrNone, and TTLogMessage().
Referenced by registerMessage(), TTDataObjectBase::test(), and TTAudioObjectBase::test().
TTErr TTObjectBase::logWarning | ( | TTImmutableCString | fmtstring, |
... | |||
) |
Log warnings scoped to this object instance.
fmtstring | The warning to log |
Definition at line 545 of file TTObjectBase.cpp.
References TTSymbol::c_str(), kTTErrNone, and TTLogWarning().
TTErr TTObjectBase::registerAttribute | ( | const TTSymbol | name, |
const TTDataType | type, | ||
void * | address | ||
) |
Register an attribute.
The theory on attributes is that the subclass calls registerAttribute() and the base class manages a list of all registered attributes. The the end-user calls setAttribute() on the object (which is defined in the base class only) and it dispatches the message as appropriate.
name | The name of the attribute |
type | The data type of the attribute |
address | Pointer to the address of the attribute |
getter | An optional getter method |
setter | An optional setter method |
newGetterObject | TODO: Document this |
newSetterObject | TODO: Document this |
Definition at line 75 of file TTObjectBase.cpp.
References TTHash::append(), kTTAttrPassObject, kTTErrNone, TTAttribute::setGetterFlags(), and TTAttribute::setSetterFlags().
Referenced by registerAttributeProperty(), registerMessageProperty(), TTAudioObjectBase::TTAudioObjectBase(), TTDataObjectBase::TTDataObjectBase(), and TTProtocol::TTProtocol().
TTErr TTObjectBase::registerAttributeProperty | ( | const TTSymbol | attributeName, |
const TTSymbol | propertyName, | ||
const TTValue & | initialValue, | ||
TTGetterMethod | getter, | ||
TTSetterMethod | setter | ||
) |
Register an attribute property.
attributeName | Tyhe name of the attribute for which we want to register a new property. |
propertyName | The name of the property. |
initialValue | The initial value of the property. |
getter | The getter method associated with the property. |
setter | The setter method associated with the property. |
Definition at line 310 of file TTObjectBase.cpp.
References kTypeLocalValue, TTHash::lookup(), registerAttribute(), and setAttributeValue().
Register a message with this object.
name | The name of the message. Flags associated with the message. |
Definition at line 376 of file TTObjectBase.cpp.
References TTHash::append(), TTSymbol::c_str(), TTHash::getSize(), kTTErrNone, kTTMessageDefaultFlags, logMessage(), TTEnvironment::mDebugMessaging, and ttEnvironment.
Referenced by TTAudioObjectBase::TTAudioObjectBase(), and TTDataObjectBase::TTDataObjectBase().
TTErr TTObjectBase::registerMessageProperty | ( | const TTSymbol | messageName, |
const TTSymbol | propertyName, | ||
const TTValue & | initialValue, | ||
TTGetterMethod | getter, | ||
TTSetterMethod | setter | ||
) |
Register an message property.
attributeName | Tyhe name of the message for which we want to register a new property. |
propertyName | The name of the property. |
initialValue | The initial value of the property. |
getter | The getter method associated with the property. |
setter | The setter method associated with the property. |
Definition at line 326 of file TTObjectBase.cpp.
References kTTErrNone, kTypeLocalValue, TTHash::lookup(), registerAttribute(), and setAttributeValue().
TTErr TTObjectBase::registerObserverForAttribute | ( | const TTObject & | observingObject, |
const TTSymbol | attributeName | ||
) |
Register an observer for an attribute.
The observer will be monitoring if this attribute is changes.
observingObject | Pointer to the observing object. |
attributeName | The name of the attribute to monitor. |
TTErr TTObjectBase::registerObserverForMessage | ( | const TTObject & | observingObject, |
const TTSymbol | messageName | ||
) |
Register an observer for a message.
The observer will be monitoring if this message is sent to the object.
observingObject | Pointer to the observing object. |
messageName | The name of the message to monitor. |
Register an observer.
The observer will be monitoring this object. TODO: Exactly what do this imply? What is being observed?
observingObject | Pointer to the observing object. |
Definition at line 492 of file TTObjectBase.cpp.
References kTTErrNone, and observers.
Referenced by TTAudioGraphSource::connect(), and TTObject::registerObserverForNotifications().
Remove an attribute.
name | The name of the attribute to remove. |
Definition at line 134 of file TTObjectBase.cpp.
References findAttribute(), and TTHash::remove().
Remove a message.
name | The name of the message to remove. |
Definition at line 414 of file TTObjectBase.cpp.
References findMessage(), and TTHash::remove().
TODO: Document this function.
Definition at line 427 of file TTObjectBase.cpp.
Referenced by TTAllpass::clear(), filter_clear(), filter_dsp(), TTAudioGraphInput::getAvailableDeviceNames(), TTAudioGraphOutput::getAvailableDeviceNames(), TTAudioGraphOutput::getCpuLoad(), TTAudioGraphOutput::processAudio(), TTObject::send(), TTAudioObjectBase::setMaxNumChannels(), TTAudioObjectBase::setSr(), TTAudioGraphInput::start(), TTAudioGraphOutput::start(), TTAudioGraphInput::stop(), TTAudioGraphOutput::stop(), RosenbergGlottalPulseWindow::test(), TTMatrixBase::test(), KaiserWindow::test(), TTSampleMatrix::test(), and TTAudioGraphGenerator::updateMaxNumChannels().
Send a notification.
TODO: What do this imply?
name | TODO: Document this |
arguments | TODO: Document this |
Definition at line 514 of file TTObjectBase.cpp.
References observers.
Referenced by TTNetReceive::networkSocketReceive(), TTOscReceive::oscSocketReceive(), TTModelInfo::Rename(), TTModelInfo::setAddress(), TTClock::setDuration(), TTClock::setOffset(), TTClock::setSpeed(), and TTWebReceive::WebSocketReceive().
Set an attribute value for an object This is the same as calling setAttributeValue().
name | The name of the attribute to set. |
value | The value to use for setting the attribute. This value can be changed(!), for example if the value is out of range for the attribute. Hence, it is not declared const. |
Definition at line 251 of file TTObjectBase.h.
References setAttributeValue().
Referenced by TTGain::test(), TTMutesolo::test(), and TTViewerDataspaceUnitCallback().
TTErr TTObjectBase::setAttributeGetterFlags | ( | const TTSymbol | name, |
TTAttributeFlags & | value | ||
) |
Set the getterFlags of an attribute.
name | The name of the attribute that we want to address. |
value | New values for the getterFlags property. |
Definition at line 248 of file TTObjectBase.cpp.
References findAttribute(), and TTAttribute::setGetterFlags().
TTErr TTObjectBase::setAttributeSetterFlags | ( | const TTSymbol | name, |
TTAttributeFlags & | value | ||
) |
Set the setterFlags of an attribute.
name | The name of the attribute that we want to address. |
value | New values for the getterFlags property. |
Definition at line 273 of file TTObjectBase.cpp.
References findAttribute(), and TTAttribute::setSetterFlags().
Set an attribute value for an object.
name | The name of the attribute to set. |
value | The value to use for setting the attribute. This value can be changed(!), for example if the value is out of range for the attribute. Hence, it is not declared const. |
Definition at line 178 of file TTObjectBase.cpp.
References TTValue::clip(), TTValue::cliphigh(), TTValue::cliplow(), findAttribute(), kTTAttrPassObject, kTTErrReadOnly, TTAttribute::mDefaultValue, TTAttribute::rangeChecking, TTAttribute::rangeHighBound, TTAttribute::rangeLowBound, TTAttribute::readOnly, TTAttribute::setter, and TTAttribute::setterFlags.
Referenced by TTAudioObjectBase::adaptMaxNumChannels(), TTAttribute::extendedSetter(), filter_dsp(), filter_new(), filter_perform_freq(), filter_perform_freq_q(), filter_perform_q(), filter_setBypass(), filter_setFrequency(), filter_setQ(), filter_setType(), PackNew(), registerAttributeProperty(), registerMessageProperty(), TTSoundfileLoader::resizeThenLoad(), TTAudioObjectBaseArray::set(), TTObject::set(), set(), TTTrajectory::setA(), TTTrajectory::setB(), TTTrajectory::setC(), TTTrajectory::setDeltaX(), TTTrajectory::setDeltaY(), TTTrajectory::setDeltaZ(), TTAudioGraphInput::setDevice(), TTAudioGraphOutput::setDevice(), WindowFunction::setParameter(), TTAudioGraphInput::setSampleRate(), TTAudioGraphOutput::setSampleRate(), TTAudioObjectBase::setSampleRate(), TTSpat::setSinkCount(), TTSpat::setSourceCount(), TTSpat::setSpatFunction(), TTTrajectory::setType(), TTAudioGraphGenerator::setVectorSize(), TTAudioGraphInput::setVectorSize(), TTAudioGraphOutput::setVectorSize(), TTLinearFunction::test(), TTBounceEaseInOutFunction::test(), TTQuadraticEaseInFunction::test(), TTBounceEaseOutFunction::test(), TTElasticEaseOutFunction::test(), TTCircularEaseInFunction::test(), TTQuinticEaseInFunction::test(), TTCircularEaseOutFunction::test(), TTQuinticEaseOutFunction::test(), TTCubicEaseInFunction::test(), TTSineEaseInFunction::test(), TTCubicEaseOutFunction::test(), TTQuadraticEaseOutFunction::test(), TTElasticEaseInFunction::test(), TTSineEaseInOutFunction::test(), TTExponentialEaseInFunction::test(), TTExponentialEaseOutFunction::test(), TTQuarticEaseOutFunction::test(), TTQuarticEaseInFunction::test(), TTBackEaseInFunction::test(), TTSineEaseOutFunction::test(), TTBackEaseOutFunction::test(), TTBounceEaseInFunction::test(), TTSmoothPolynomialFunction::test(), TTCircularEaseInOutFunction::test(), TTQuarticEaseInOutFunction::test(), TTQuinticEaseInOutFunction::test(), TTQuadraticEaseInOutFunction::test(), TTCubicEaseInOutFunction::test(), TTElasticEaseInOutFunction::test(), TTExponentialEaseInOutFunction::test(), TTBackEaseInOutFunction::test(), TTLogFunction::test(), TTExpFunction::test(), TTPowerFunction::test(), TTPhasor::test(), TTTanhFunction::test(), HammingWindow::test(), TTFreeHandFunction::test(), RosenbergGlottalPulseWindow::test(), GaussWindow::test(), TTRamp::test(), TTMatrixBase::test(), TukeyWindow::test(), RectangularWindow::test(), TTDelay::test(), KaiserWindow::test(), TTAllpass1::test(), TTAverage::test(), TTSampleMatrix::test(), TTAudioObjectBase::TTAudioObjectBase(), TTAudioUnit::TTAudioUnit(), TTDataObjectBase::TTDataObjectBase(), TTDataRampCallback(), TTEnvironment::TTEnvironment(), TTAudioGraphGenerator::updateMaxNumChannels(), TTAudioObjectBaseArray::updateMaxNumChannels(), and TTWavetable::updateSampleRate().
|
inline |
Unlock the object when thread-safe processing is no longer required.
Definition at line 530 of file TTObjectBase.h.
References kTTErrNone.
Referenced by TTDataObjectBase::calculate(), TTAudioObjectBase::calculate(), TTAudioGraphObjectBase::preprocess(), TTAudioObjectBase::process(), and TTAudioGraphObjectBase::process().
TTErr TTObjectBase::unregisterObserverForAttribute | ( | const TTObject & | observingObject, |
const TTSymbol | attributeName | ||
) |
Unregister an observer for an attribute.
The observer will stop monitoring changes to this attribute.
observingObject | Pointer to the observing object. |
attributeName | The name of the attribute that no longer will be monitored. |
TTErr TTObjectBase::unregisterObserverForMessage | ( | const TTObject & | observingObject, |
const TTSymbol | messageName | ||
) |
Unregister an observer for a message.
The observer will stop monitoring if this message is sent to the object.
observingObject | Pointer to the observing object. |
messageName | The name of the message that no longer will be monitored. |
Unregister an observer for notifications.
The observer wiln no longer be monitoring. TODO: Exactly what do this imply?
observingObject | Pointer to the observing object. |
Definition at line 501 of file TTObjectBase.cpp.
References observers.
Referenced by TTObject::unregisterObserverForNotifications(), and TTAudioGraphSource::~TTAudioGraphSource().
|
inline |
If the object is locked (e.g.
in the middle of processing a vector in another thread) then we spin until the lock is released TODO: We should also be able to time-out in the event that we have a dead lock.
Definition at line 550 of file TTObjectBase.h.
References isLocked().
Referenced by TTEnvironment::releaseInstance().
TTBoolean TTObjectBase::track |
enable the print of a log message to ease the track of reference counting mechanism on an instance
Definition at line 125 of file TTObjectBase.h.
Referenced by TTEnvironment::referenceInstance(), and TTObject::track().