JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
Steinberg::FObject Class Reference

Implements FUnknown and IDependent. More...

#include "fobject.h"

Inheritance diagram for Steinberg::FObject:
Steinberg::IDependent Steinberg::FUnknown Steinberg::Base::Thread::FLockObject Steinberg::CPluginView Steinberg::StringObject Steinberg::UpdateHandler Steinberg::Vst::Bus Steinberg::Vst::BusList Steinberg::Vst::ComponentBase Steinberg::Vst::Parameter Steinberg::Vst::ProgramList Steinberg::Vst::Unit

Public Member Functions

 FObject ()=default
 default constructor...
 
 FObject (const FObject &)
 
FObjectoperator= (const FObject &)
 overloads operator "=" as the reference assignment
 
virtual ~FObject ()
 destructor...
 
virtual FClassID isA () const
 a local alternative to getFClassID ()
 
virtual bool isA (FClassID s) const
 evaluates if the passed ID is of the FObject type
 
virtual bool isTypeOf (FClassID s, bool=true) const
 evaluates if the passed ID is of the FObject type
 
int32 getRefCount ()
 returns the current interface reference count
 
FUnknownunknownCast ()
 get FUnknown interface from object
 
tresult PLUGIN_API queryInterface (const TUID _iid, void **obj) SMTG_OVERRIDE
 please refer to FUnknown::queryInterface ()
 
uint32 PLUGIN_API addRef () SMTG_OVERRIDE
 please refer to FUnknown::addref ()
 
uint32 PLUGIN_API release () SMTG_OVERRIDE
 please refer to FUnknown::release ()
 
void PLUGIN_API update (FUnknown *, int32) SMTG_OVERRIDE
 empty virtual method that should be overridden by derived classes for data updates upon changes
 
virtual void addDependent (IDependent *dep)
 adds dependency to the object
 
virtual void removeDependent (IDependent *dep)
 removes dependency from the object
 
virtual void changed (int32 msg=kChanged)
 Inform all dependents, that the object has changed.
 
virtual void deferUpdate (int32 msg=kChanged)
 Similar to triggerUpdates, except only delivered in idle (usefull in collecting updates).
 
virtual void updateDone (int32)
 empty virtual method that should be overridden by derived classes
 
virtual bool isEqualInstance (FUnknown *d)
 

Static Public Member Functions

static FClassID getFClassID ()
 return Class ID as an ASCII string (statically)
 
static void setUpdateHandler (IUpdateHandler *handler)
 set method for the local attribute
 
static IUpdateHandlergetUpdateHandler ()
 get method for the local attribute
 
static bool classIDsEqual (FClassID ci1, FClassID ci2)
 compares (evaluates) 2 class IDs
 
static FObjectunknownToObject (FUnknown *unknown)
 pointer conversion from FUnknown to FObject
 

Static Public Attributes

static const FUID iid
 Special UID that is used to cast an FUnknown pointer to a FObject.
 
- Static Public Attributes inherited from Steinberg::IDependent
static const FUID iid
 
- Static Public Attributes inherited from Steinberg::FUnknown
static const FUID iid
 

Protected Attributes

int32 refCount
 COM-model local reference count.
 

Static Protected Attributes

static IUpdateHandlergUpdateHandler
 

Additional Inherited Members

- Public Types inherited from Steinberg::IDependent
enum  ChangeMessage {
  kWillChange , kChanged , kDestroyed , kWillDestroy ,
  kStdChangeMessageLast
}
 

Detailed Description

Implements FUnknown and IDependent.

FObject is a polymorphic class that implements IDependent (of SKI module) and therefore derived from FUnknown, which is the most abstract base class of all.

All COM-like virtual methods of FUnknown such as queryInterface(), addRef(), release() are implemented here. On top of that, dependency-related methods are implemented too.

Pointer casting is done via the template methods FCast, either FObject to FObject or FUnknown to FObject.

FObject supports a new singleton concept, therefore these objects are deleted automatically upon program termination.

See also

Definition at line 83 of file fobject.h.

Constructor & Destructor Documentation

◆ FObject()

Steinberg::FObject::FObject ( const FObject )

Definition at line 88 of file fobject.h.

◆ ~FObject()

Steinberg::FObject::~FObject ( )
virtual

destructor...

Definition at line 68 of file fobject.cpp.

Member Function Documentation

◆ addDependent()

void Steinberg::FObject::addDependent ( IDependent dep)
virtual

adds dependency to the object

Reimplemented in Steinberg::UpdateHandler.

Definition at line 141 of file fobject.cpp.

◆ addRef()

uint32 PLUGIN_API Steinberg::FObject::addRef ( )
virtual

please refer to FUnknown::addref ()

Implements Steinberg::FUnknown.

Definition at line 113 of file fobject.cpp.

◆ changed()

void Steinberg::FObject::changed ( int32  msg = kChanged)
virtual

Inform all dependents, that the object has changed.

Definition at line 193 of file fobject.cpp.

◆ classIDsEqual()

bool Steinberg::FObject::classIDsEqual ( FClassID  ci1,
FClassID  ci2 
)
static

compares (evaluates) 2 class IDs

Definition at line 158 of file fobject.h.

◆ deferUpdate()

void Steinberg::FObject::deferUpdate ( int32  msg = kChanged)
virtual

Similar to triggerUpdates, except only delivered in idle (usefull in collecting updates).

Reimplemented in Steinberg::UpdateHandler.

Definition at line 202 of file fobject.cpp.

◆ getFClassID()

static FClassID Steinberg::FObject::getFClassID ( )
static

return Class ID as an ASCII string (statically)

Definition at line 98 of file fobject.h.

◆ getRefCount()

int32 Steinberg::FObject::getRefCount ( )

returns the current interface reference count

Definition at line 103 of file fobject.h.

◆ getUpdateHandler()

static IUpdateHandler * Steinberg::FObject::getUpdateHandler ( )
static

get method for the local attribute

Definition at line 123 of file fobject.h.

◆ isA() [1/2]

virtual FClassID Steinberg::FObject::isA ( ) const
virtual

a local alternative to getFClassID ()

Definition at line 99 of file fobject.h.

◆ isA() [2/2]

virtual bool Steinberg::FObject::isA ( FClassID  s) const
virtual

evaluates if the passed ID is of the FObject type

Definition at line 100 of file fobject.h.

◆ isEqualInstance()

virtual bool Steinberg::FObject::isEqualInstance ( FUnknown d)
virtual

Definition at line 120 of file fobject.h.

◆ isTypeOf()

virtual bool Steinberg::FObject::isTypeOf ( FClassID  s,
bool  = true 
) const
virtual

evaluates if the passed ID is of the FObject type

Definition at line 101 of file fobject.h.

◆ operator=()

FObject & Steinberg::FObject::operator= ( const FObject )

overloads operator "=" as the reference assignment

Definition at line 94 of file fobject.h.

◆ queryInterface()

tresult PLUGIN_API Steinberg::FObject::queryInterface ( const TUID  _iid,
void **  obj 
)
virtual

please refer to FUnknown::queryInterface ()

Implements Steinberg::FUnknown.

Definition at line 131 of file fobject.cpp.

◆ release()

uint32 PLUGIN_API Steinberg::FObject::release ( )
virtual

please refer to FUnknown::release ()

Implements Steinberg::FUnknown.

Definition at line 119 of file fobject.cpp.

◆ removeDependent()

void Steinberg::FObject::removeDependent ( IDependent dep)
virtual

removes dependency from the object

Reimplemented in Steinberg::UpdateHandler.

Definition at line 153 of file fobject.cpp.

◆ setUpdateHandler()

static void Steinberg::FObject::setUpdateHandler ( IUpdateHandler handler)
static

set method for the local attribute

Definition at line 122 of file fobject.h.

◆ unknownCast()

FUnknown * Steinberg::FObject::unknownCast ( )

get FUnknown interface from object

Definition at line 104 of file fobject.h.

◆ unknownToObject()

FObject * Steinberg::FObject::unknownToObject ( FUnknown unknown)
static

pointer conversion from FUnknown to FObject

Definition at line 145 of file fobject.h.

◆ update()

void PLUGIN_API Steinberg::FObject::update ( FUnknown ,
int32   
)
virtual

empty virtual method that should be overridden by derived classes for data updates upon changes

Implements Steinberg::IDependent.

Definition at line 112 of file fobject.h.

◆ updateDone()

virtual void Steinberg::FObject::updateDone ( int32  )
virtual

empty virtual method that should be overridden by derived classes

Definition at line 119 of file fobject.h.

Member Data Documentation

◆ gUpdateHandler

IUpdateHandler * Steinberg::FObject::gUpdateHandler
staticprotected

Definition at line 138 of file fobject.h.

◆ iid

const FUID Steinberg::FObject::iid
static

Special UID that is used to cast an FUnknown pointer to a FObject.

Definition at line 130 of file fobject.h.

◆ refCount

int32 Steinberg::FObject::refCount
protected

COM-model local reference count.

Definition at line 134 of file fobject.h.


The documentation for this class was generated from the following files: