flext  0.6.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
flext_stk Class Reference

#include <flstk.h>

Inheritance diagram for flext_stk:
flext_dsp flext_base

Classes

class  Input
 STK object for reading from inlet buffer. More...
 
class  Output
 STK object for writing to outlet buffer. More...
 

Public Types

typedef flext_stk thisType
 
typedef flext_dsp thisParent
 
- Public Types inherited from flext_dsp
typedef flext_dsp thisType
 
typedef flext_base thisParent
 
typedef t_sample * t_signalvec
 typedef describing a signal vector More...
 
- Public Types inherited from flext_base
enum  metharg {
  a_null = 0 , a_float , a_int , a_bool ,
  a_symbol , a_pointer , a_list , a_any ,
  a_LIST , a_ANY
}
 
enum  xlettype {
  xlet_none = 0 , xlet_float , xlet_int , xlet_sym ,
  xlet_list , xlet_any , xlet_LIST , xlet_ANY ,
  xlet_sig
}
 
typedef bool(* methfun) (flext_base *c)
 
typedef TablePtrMap< const t_symbol *, Item *, 8 > TablePtrMapDef
 

Public Member Functions

 flext_stk ()
 
virtual bool NewObjs ()
 
virtual void FreeObjs ()
 
virtual void ProcessObjs (int blocksize)
 
- Public Member Functions inherited from flext_dsp
float Samplerate () const
 returns current sample rate More...
 
int Blocksize () const
 returns current block (aka vector) size More...
 
t_sample *const * InSig () const
 returns array of input vectors (CntInSig() vectors) More...
 
t_sample * InSig (int i) const
 returns input vector More...
 
t_sample *const * OutSig () const
 returns array of output vectors (CntOutSig() vectors) More...
 
t_sample * OutSig (int i) const
 returns output vector More...
 
virtual void m_dsp (int n, t_signalvec const *insigs, t_signalvec const *outsigs)
 Deprecated method for CbSignal. More...
 
virtual void m_signal (int n, t_sample *const *insigs, t_sample *const *outsigs)
 Deprecated method for CbSignal. More...
 
void AddInSignal (int m=1)
 Add signal inlet(s) More...
 
void AddInSignal (const char *desc)
 Add signal inlet (with description) More...
 
void AddOutSignal (int m=1)
 Add signal outlet(s) More...
 
void AddOutSignal (const char *desc)
 Add signal outlet (with description) More...
 
- Public Member Functions inherited from flext_base
virtual void CbLoadbang ()
 called on patcher load (not on mere object creation!) More...
 
virtual void m_loadbang ()
 
virtual void CbClick ()
 called on (double-)click into object box More...
 
virtual bool CbMethodHandler (int inlet, const t_symbol *s, int argc, const t_atom *argv)
 Called for every incoming message. All method handling is done in there. More...
 
virtual bool CbMethodResort (int inlet, const t_symbol *s, int argc, const t_atom *argv)
 Called for every unhandled message (by CbMethodHandler) More...
 
virtual bool m_method_ (int inlet, const t_symbol *s, int argc, const t_atom *argv)
 
virtual bool CbIdle ()
 
void AddInAnything (int m=1)
 Add inlet(s) for anythings. More...
 
void AddInAnything (const char *desc, int m=1)
 Add inlet(s) for anythings (with description) More...
 
void AddInFloat (int m=1)
 Add inlet(s) for floats. More...
 
void AddInFloat (const char *desc, int m=1)
 Add inlet(s) for floats (with description) More...
 
void AddInInt (int m=1)
 Add inlet(s) for integers. More...
 
void AddInInt (const char *desc, int m=1)
 Add inlet(s) for integers (with description) More...
 
void AddInSymbol (int m=1)
 Add inlet(s) for symbols. More...
 
void AddInSymbol (const char *desc, int m=1)
 Add inlet(s) for symbol (with description) More...
 
void AddInBang (int m=1)
 Add inlet(s) for bang. More...
 
void AddInBang (const char *desc, int m=1)
 Add inlet(s) for bangs (with description) More...
 
void AddInList (int m=1)
 Add inlet(s) for lists. More...
 
void AddInList (const char *desc, int m=1)
 Add inlet(s) for lists (with description) More...
 
void AddOutAnything (int m=1)
 Add outlet(s) for anythings. More...
 
void AddOutAnything (const char *desc, int m=1)
 Add outlet(s) for anythings (with description) More...
 
void AddOutFloat (int m=1)
 Add outlet(s) for floats. More...
 
void AddOutFloat (const char *desc, int m=1)
 Add outlet(s) for floats (with description) More...
 
void AddOutInt (int m=1)
 Add outlet(s) for integers. More...
 
void AddOutInt (const char *desc, int m=1)
 Add outlet(s) for integers (with description) More...
 
void AddOutSymbol (int m=1)
 Add outlet(s) for symbols. More...
 
void AddOutSymbol (const char *desc, int m=1)
 Add outlet(s) for symbols (with description) More...
 
void AddOutBang (int m=1)
 Add outlet(s) for bangs. More...
 
void AddOutBang (const char *desc, int m=1)
 Add outlet(s) for bangs (with description) More...
 
void AddOutList (int m=1)
 Add outlet(s) for lists. More...
 
void AddOutList (const char *desc, int m=1)
 Add outlet(s) for lists (with description) More...
 
bool SetupInOut ()
 
int CntIn () const
 Get number of inlets. More...
 
int CntOut () const
 Get number of outlets. More...
 
int CntInSig () const
 Get number of signal inlets. More...
 
int CntOutSig () const
 Get number of signal outlets. More...
 
outlet * GetOut (int ix) const
 Get pointer to outlet (not in the constructor!) More...
 
int GetOutAttr () const
 
void ToOutBang (int n) const
 Output bang (index n starts with 0) More...
 
void ToOutFloat (int n, float f) const
 Output float (index n starts with 0) More...
 
void ToOutInt (int n, int f) const
 Output integer (index n starts with 0) More...
 
void ToOutBool (int n, bool f) const
 Output boolean (index n starts with 0) More...
 
void ToOutDouble (int n, double d) const
 Output double (index n starts with 0) More...
 
void ToOutSymbol (int n, const t_symbol *s) const
 Output symbol (index n starts with 0) More...
 
void ToOutString (int n, const char *s) const
 Output string aka symbol (index n starts with 0) More...
 
void ToOutAtom (int n, const t_atom &at) const
 Output atom (index n starts with 0) More...
 
void ToOutList (int n, int argc, const t_atom *argv) const
 Output list (index n starts with 0) More...
 
void ToOutList (int n, const AtomList &list) const
 Output list (index n starts with 0) More...
 
void ToOutAnything (int n, const t_symbol *s, int argc, const t_atom *argv) const
 Output anything (index n starts with 0) More...
 
void ToOutAnything (int n, const AtomAnything &any) const
 Output anything (index n starts with 0) More...
 
void ToOutAnything (int n, const t_symbol *s, const AtomList &list) const
 Output anything (index n starts with 0) More...
 
void ToQueueBang (int n) const
 Output low priority bang (index n starts with 0) More...
 
void ToQueueFloat (int n, float f) const
 Output low priority float (index n starts with 0) More...
 
void ToQueueInt (int n, int f) const
 Output low priority integer (index n starts with 0) More...
 
void ToQueueBool (int n, bool f) const
 Output low priority boolean (index n starts with 0) More...
 
void ToQueueDouble (int n, double d) const
 Output double (index n starts with 0) More...
 
void ToQueueSymbol (int n, const t_symbol *s) const
 Output low priority symbol (index n starts with 0) More...
 
void ToQueueString (int n, const char *s) const
 Output low priority string aka symbol (to appointed outlet) More...
 
void ToQueueAtom (int n, const t_atom &at) const
 Output low priority atom (index n starts with 0) More...
 
void ToQueueList (int n, int argc, const t_atom *argv) const
 Output low priority list (index n starts with 0) More...
 
void ToQueueList (int n, const AtomList &list) const
 Output low priority list (index n starts with 0) More...
 
void ToQueueAnything (int n, const t_symbol *s, int argc, const t_atom *argv) const
 Output low priority anything (index n starts with 0) More...
 
void ToQueueAnything (int n, const AtomAnything &any) const
 Output low priority anything (index n starts with 0) More...
 
void ToSelfBang (int n) const
 Send bang to self (inlet n) More...
 
void ToSelfFloat (int n, float f) const
 Send float to self (inlet n) More...
 
void ToSelfInt (int n, int f) const
 Send integer to self (inlet n) More...
 
void ToSelfBool (int n, bool f) const
 Send boolean to self (inlet n) More...
 
void ToSelfDouble (int n, double d) const
 Send double to self (index n starts with 0) More...
 
void ToSelfSymbol (int n, const t_symbol *s) const
 Send symbol to self (inlet n) More...
 
void ToSelfString (int n, const char *s) const
 Send string aka symbol to self (inlet 0) More...
 
void ToSelfAtom (int n, const t_atom &at) const
 Output atom (index n starts with 0) More...
 
void ToSelfList (int n, int argc, const t_atom *argv) const
 Send list to self (inlet n) More...
 
void ToSelfList (int n, const AtomList &list) const
 Send list to self (inlet n) More...
 
void ToSelfAnything (int n, const t_symbol *s, int argc, const t_atom *argv) const
 Send anything to self (inlet n) More...
 
void ToSelfAnything (int n, const AtomAnything &any) const
 Send anything to self (inlet n) More...
 
void MsgAddBang (MsgBundle *mb, int n) const
 Output bang (index n starts with 0) More...
 
void MsgAddFloat (MsgBundle *mb, int n, float f) const
 Output float (index n starts with 0) More...
 
void MsgAddInt (MsgBundle *mb, int n, int f) const
 Output integer (index n starts with 0) More...
 
void MsgAddBool (MsgBundle *mb, int n, bool f) const
 Output boolean (index n starts with 0) More...
 
void MsgAddDouble (MsgBundle *mb, int n, double d) const
 Output double (index n starts with 0) More...
 
void MsgAddSymbol (MsgBundle *mb, int n, const t_symbol *s) const
 Output symbol (index n starts with 0) More...
 
void MsgAddString (MsgBundle *mb, int n, const char *s) const
 Output string aka symbol (to appointed outlet) More...
 
void MsgAddAtom (MsgBundle *mb, int n, const t_atom &at) const
 Output atom (index n starts with 0) More...
 
void MsgAddList (MsgBundle *mb, int n, int argc, const t_atom *argv) const
 Output list (index n starts with 0) More...
 
void MsgAddList (MsgBundle *mb, int n, const AtomList &list) const
 Output list (index n starts with 0) More...
 
void MsgAddAnything (MsgBundle *mb, int n, const t_symbol *s, int argc, const t_atom *argv) const
 Output anything (index n starts with 0) More...
 
void MsgAddAnything (MsgBundle *mb, int n, const AtomAnything &any) const
 Output anything (index n starts with 0) More...
 
void MsgSelfBang (MsgBundle *mb, int n) const
 
void MsgSelfFloat (MsgBundle *mb, int n, float f) const
 Send float to self (inlet n) More...
 
void MsgSelfInt (MsgBundle *mb, int n, int f) const
 Send integer to self (inlet n) More...
 
void MsgSelfBool (MsgBundle *mb, int n, bool f) const
 Send boolean to self (inlet n) More...
 
void MsgSelfDouble (MsgBundle *mb, int n, double d) const
 Output double (index n starts with 0) More...
 
void MsgSelfSymbol (MsgBundle *mb, int n, const t_symbol *s) const
 Send symbol to self (inlet n) More...
 
void MsgSelfString (MsgBundle *mb, int n, const char *s) const
 Send string aka symbol to self (inlet 0) More...
 
void MsgSelfAtom (MsgBundle *mb, int n, const t_atom &at) const
 Output atom (index n starts with 0) More...
 
void MsgSelfList (MsgBundle *mb, int n, int argc, const t_atom *argv) const
 Send list to self (inlet n) More...
 
void MsgSelfList (MsgBundle *mb, int n, const AtomList &list) const
 Send list to self (inlet n) More...
 
void MsgSelfAnything (MsgBundle *mb, int n, const t_symbol *s, int argc, const t_atom *argv) const
 Send anything to self (inlet n) More...
 
void MsgSelfAnything (MsgBundle *mb, int n, const AtomAnything &any) const
 Send anything to self (inlet n) More...
 
void AddMethodDef (int inlet, const t_symbol *tag=NULL)
 
void AddMethodDef (int inlet, const char *tag=NULL)
 
void AddMethod (int inlet, bool(*m)(flext_base *))
 
void AddMethod (int inlet, bool(*m)(flext_base *, int, t_atom *))
 
void AddMethod (int inlet, bool(*m)(flext_base *, int, const t_atom *))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *))
 
void AddMethod (int inlet, bool(*m)(flext_base *, t_symbol *, int, t_atom *))
 
void AddMethod (int inlet, bool(*m)(flext_base *, const t_symbol *, int, const t_atom *))
 
void AddMethod (int inlet, bool(*m)(flext_base *, t_symbol *&))
 
void AddMethod (int inlet, bool(*m)(flext_base *, const t_symbol *&))
 
void AddMethod (int inlet, bool(*m)(flext_base *, float &))
 
void AddMethod (int inlet, bool(*m)(flext_base *, float &, float &))
 
void AddMethod (int inlet, bool(*m)(flext_base *, float &, float &, float &))
 
void AddMethod (int inlet, bool(*m)(flext_base *, int &))
 
void AddMethod (int inlet, bool(*m)(flext_base *, int &, int &))
 
void AddMethod (int inlet, bool(*m)(flext_base *, int &, int &, int &))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, int, t_atom *))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, int, const t_atom *))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, t_symbol *, int, t_atom *))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, const t_symbol *, int, const t_atom *))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, t_symbol *&))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, const t_symbol *&))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, float &))
 
void AddMethod (int inlet, const t_symbol *tag, bool(*m)(flext_base *, int &))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, int, t_atom *))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, int, const t_atom *))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, t_symbol *, int, t_atom *))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, const t_symbol *, int, const t_atom *))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, t_symbol *&))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, const t_symbol *&))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, float &))
 
void AddMethod (int inlet, const char *tag, bool(*m)(flext_base *, int &))
 
void AddIdle ()
 
bool DoDist () const
 Query whether lists are distributed. More...
 
bool Bind (const t_symbol *sym)
 Bind object to a symbol. More...
 
bool Unbind (const t_symbol *sym)
 Unbind object from a symbol. More...
 
bool Bind (const char *sym)
 Bind object to a symbol (as string) More...
 
bool Unbind (const char *sym)
 Unbind object from a symbol (as string) More...
 
bool BindMethod (const t_symbol *sym, bool(*meth)(flext_base *obj, t_symbol *sym, int argc, t_atom *argv, void *data), void *data=NULL)
 Bind a method to a symbol. More...
 
bool UnbindMethod (const t_symbol *sym, bool(*meth)(flext_base *obj, t_symbol *sym, int argc, t_atom *argv, void *data)=NULL, void **data=NULL)
 Unbind a method from a symbol. More...
 
bool GetBoundMethod (const t_symbol *sym, bool(*meth)(flext_base *obj, t_symbol *sym, int argc, t_atom *argv, void *data), void *&data)
 Get data of bound method of a symbol. More...
 
bool BindMethod (const char *sym, bool(*meth)(flext_base *obj, t_symbol *sym, int argc, t_atom *argv, void *data), void *data=NULL)
 Bind a method to a symbol (as string) More...
 
bool UnbindMethod (const char *sym, bool(*meth)(flext_base *obj, t_symbol *sym, int argc, t_atom *argv, void *data)=NULL, void **data=NULL)
 Unbind a method from a symbol (as string) More...
 
bool GetBoundMethod (const char *sym, bool(*meth)(flext_base *obj, t_symbol *sym, int argc, t_atom *argv, void *data), void *&data)
 Get data of bound method of a symbol (as string) More...
 
bool UnbindAll ()
 
bool StartThread (void(*meth)(thr_params *p), thr_params *p, const char *=NULL)
 Start a thread for this object. More...
 
bool StopThreads ()
 Terminate all threads of this object. More...
 
void ToSysBang (int n) const
 
void ToSysFloat (int n, float f) const
 
void ToSysInt (int n, int f) const
 
void ToSysSymbol (int n, const t_symbol *s) const
 
void ToSysString (int n, const char *s) const
 
void ToSysList (int n, int argc, const t_atom *argv) const
 
void ToSysList (int n, const AtomList &list) const
 
void ToSysAnything (int n, const t_symbol *s, int argc, const t_atom *argv) const
 
void ToSysAnything (int n, const AtomAnything &any) const
 
void ToSysAnything (int n, const t_symbol *s, const AtomList &list) const
 
void ToSysBool (int n, bool f) const
 
void ToSysAtom (int n, const t_atom &at) const
 
void ToSysDouble (int n, double d) const
 
ItemContThMeths ()
 
ItemContThAttrs ()
 
void AddAttrib (const t_symbol *attr, metharg tp, methfun gfun, methfun sfun)
 

Static Public Member Functions

static flext_obj__init__ (int argc, t_atom *argv)
 
static void __free__ (flext_hdr *hdr)
 
static void __setup__ (flext_obj::t_classid classid)
 
- Static Public Member Functions inherited from flext_dsp
static flext_obj__init__ (int argc, t_atom *argv)
 
static void __free__ (flext_hdr *hdr)
 
static void __setup__ (flext_obj::t_classid classid)
 
- Static Public Member Functions inherited from flext_base
static const t_symbol * thisTag ()
 Retrieve currently processed message tag (NULL if no message processing) More...
 
static void SetDist (t_classid c, bool d=true)
 Set Max/MSP style of distributing list elements over (message) inlets. More...
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, int, t_atom *))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, int, const t_atom *))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, t_symbol *, int, t_atom *))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, const t_symbol *, int, const t_atom *))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, t_symbol *&))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, const t_symbol *&))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, float &))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, float &, float &))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, float &, float &, float &))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, int &))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, int &, int &))
 
static void AddMethod (t_classid c, int inlet, bool(*m)(flext_base *, int &, int &, int &))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, int, t_atom *))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, int, const t_atom *))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, t_symbol *, int, t_atom *))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, const t_symbol *, int, const t_atom *))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, t_symbol *&))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, const t_symbol *&))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, float &))
 
static void AddMethod (t_classid c, int inlet, const t_symbol *tag, bool(*m)(flext_base *, int &))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, int, t_atom *))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, int, const t_atom *))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, t_symbol *, int, t_atom *))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, const t_symbol *, int, const t_atom *))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, t_symbol *&))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, const t_symbol *&))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, float &))
 
static void AddMethod (t_classid c, int inlet, const char *tag, bool(*m)(flext_base *, int &))
 
static void AddIdle (bool(*idlefun)(int argc, const t_atom *argv), int argc, const t_atom *argv)
 
static void ToSysMsg (MsgBundle *mb)
 
static void AddMessageMethods (t_class *c, bool dsp, bool dspin)
 
static ItemContClMeths (t_classid c)
 
static void AddMethod (ItemCont *ma, int inlet, const t_symbol *tag, methfun fun, metharg tp,...)
 This is the central function to add message handlers. It is used by all other AddMethod incarnations. More...
 
static ItemContClAttrs (t_classid c)
 
static void AddAttrib (ItemCont *aa, ItemCont *ma, const t_symbol *attr, metharg tp, methfun gfun, methfun sfun)
 Add get and set attributes. More...
 
static void AddAttrib (t_classid c, const t_symbol *attr, metharg tp, methfun gfun, methfun sfun)
 

Protected Member Functions

virtual bool Init ()
 Set up inlets and outlets, method and attribute lists. More...
 
virtual void Exit ()
 Deallocate all kinds of stuff. More...
 
InputInlet (int ix)
 
OutputOutlet (int ix)
 
- Protected Member Functions inherited from flext_dsp
 flext_dsp ()
 
- Protected Member Functions inherited from flext_base
 flext_base ()
 
void AddAttrib (const t_symbol *attr, bool(*get)(flext_base *, float &), bool(*set)(flext_base *, float &))
 
void AddAttrib (const t_symbol *attr, bool(*get)(flext_base *, int &), bool(*set)(flext_base *, int &))
 
void AddAttrib (const t_symbol *attr, bool(*get)(flext_base *, bool &), bool(*set)(flext_base *, bool &))
 
void AddAttrib (const t_symbol *attr, bool(*get)(flext_base *, const t_symbol *&), bool(*set)(flext_base *, const t_symbol *&))
 
void AddAttrib (const t_symbol *attr, bool(*get)(flext_base *, t_symptr &), bool(*set)(flext_base *, t_symptr &))
 
void AddAttrib (const t_symbol *attr, bool(*get)(flext_base *, AtomList *&), bool(*set)(flext_base *, AtomList *&))
 
void AddAttrib (const t_symbol *attr, bool(*get)(flext_base *, AtomAnything *&), bool(*set)(flext_base *, AtomAnything *&))
 
void AddAttrib (const char *attr, bool(*get)(flext_base *, float &), bool(*set)(flext_base *, float &))
 
void AddAttrib (const char *attr, bool(*get)(flext_base *, int &), bool(*set)(flext_base *, int &))
 
void AddAttrib (const char *attr, bool(*get)(flext_base *, bool &), bool(*set)(flext_base *, bool &))
 
void AddAttrib (const char *attr, bool(*get)(flext_base *, const t_symbol *&), bool(*set)(flext_base *, const t_symbol *&))
 
void AddAttrib (const char *attr, bool(*get)(flext_base *, t_symptr &), bool(*set)(flext_base *, t_symptr &))
 
void AddAttrib (const char *attr, bool(*get)(flext_base *, AtomList *&), bool(*set)(flext_base *, AtomList *&))
 
void AddAttrib (const char *attr, bool(*get)(flext_base *, AtomAnything *&), bool(*set)(flext_base *, AtomAnything *&))
 
bool DumpAttrib (const t_symbol *attr) const
 Dump an attribute to the attribute outlet. More...
 
bool DumpAttrib (const char *attr) const
 Dump an attribute to the attribute outlet. More...
 
bool ListAttrib () const
 List attributes. More...
 
void ListAttrib (AtomList &a) const
 List attributes. More...
 
bool GetAttrib (const t_symbol *s, AtomList &a) const
 Get an attribute value. More...
 
bool SetAttrib (const t_symbol *s, int argc, const t_atom *argv)
 Set an attribute value. More...
 
bool SetAttrib (const t_symbol *s, const AtomList &a)
 Set an attribute value. More...
 
bool BangAttrib (const t_symbol *a)
 
bool BangAttrib (const char *a)
 
bool BangAttribAll ()
 
bool ShowAttrib (const t_symbol *a, bool show) const
 
bool ShowAttrib (const char *a, bool show)
 
void ListMethods (AtomList &a, int inlet=0) const
 List methods. More...
 
unsigned long XletCode (xlettype tp=xlet_none,...)
 get a code for a list of inlets or outlets More...
 
void AddInlets (unsigned long code)
 Add some inlets by a special code representing the types. More...
 
void AddInlet (xlettype tp, int mult=1, const char *desc=NULL)
 Add one or more inlet(s) More...
 
void AddOutlets (unsigned long code)
 Add some inlets by a special code representing the types. More...
 
void AddOutlet (xlettype tp, int mult=1, const char *desc=NULL)
 Add one or more outlet(s) More...
 
void DescInlet (int ix, const char *desc)
 Set the description of an indexed inlet. More...
 
void DescOutlet (int ix, const char *desc)
 Set the description of an indexed outlet. More...
 

Private Member Functions

virtual bool CbDsp ()
 Called on every dsp init. More...
 
virtual void CbSignal ()
 Called with every signal vector - here you do the dsp calculation flext_dsp::CbSignal fills all output vectors with silence. More...
 
void ClearObjs ()
 

Private Attributes

int inobjs
 
int outobjs
 
Input ** inobj
 
Output ** outobj
 
float smprt
 
int blsz
 

Additional Inherited Members

- Static Protected Member Functions inherited from flext_base
static void AddAttrib (t_classid c, const t_symbol *attr, bool(*get)(flext_base *, float &), bool(*set)(flext_base *, float &))
 
static void AddAttrib (t_classid c, const t_symbol *attr, bool(*get)(flext_base *, int &), bool(*set)(flext_base *, int &))
 
static void AddAttrib (t_classid c, const t_symbol *attr, bool(*get)(flext_base *, bool &), bool(*set)(flext_base *, bool &))
 
static void AddAttrib (t_classid c, const t_symbol *attr, bool(*get)(flext_base *, const t_symbol *&), bool(*set)(flext_base *, const t_symbol *&))
 
static void AddAttrib (t_classid c, const t_symbol *attr, bool(*get)(flext_base *, t_symptr &), bool(*set)(flext_base *, t_symptr &))
 
static void AddAttrib (t_classid c, const t_symbol *attr, bool(*get)(flext_base *, AtomList *&), bool(*set)(flext_base *, AtomList *&))
 
static void AddAttrib (t_classid c, const t_symbol *attr, bool(*get)(flext_base *, AtomAnything *&), bool(*set)(flext_base *, AtomAnything *&))
 
static void AddAttrib (t_classid c, const char *attr, bool(*get)(flext_base *, float &), bool(*set)(flext_base *, float &))
 
static void AddAttrib (t_classid c, const char *attr, bool(*get)(flext_base *, int &), bool(*set)(flext_base *, int &))
 
static void AddAttrib (t_classid c, const char *attr, bool(*get)(flext_base *, bool &), bool(*set)(flext_base *, bool &))
 
static void AddAttrib (t_classid c, const char *attr, bool(*get)(flext_base *, const t_symbol *&), bool(*set)(flext_base *, const t_symbol *&))
 
static void AddAttrib (t_classid c, const char *attr, bool(*get)(flext_base *, t_symptr &), bool(*set)(flext_base *, t_symptr &))
 
static void AddAttrib (t_classid c, const char *attr, bool(*get)(flext_base *, AtomList *&), bool(*set)(flext_base *, AtomList *&))
 
static void AddAttrib (t_classid c, const char *attr, bool(*get)(flext_base *, AtomAnything *&), bool(*set)(flext_base *, AtomAnything *&))
 
static int CheckAttrib (int argc, const t_atom *argv)
 
static int CheckAttrib (const AtomList &args, int offset=0)
 

Member Typedef Documentation

◆ thisParent

◆ thisType

Constructor & Destructor Documentation

◆ flext_stk()

flext_stk::flext_stk ( )

Member Function Documentation

◆ __free__()

static void flext_stk::__free__ ( flext_hdr hdr)
inlinestatic

◆ __init__()

static flext_obj* flext_stk::__init__ ( int  argc,
t_atom *  argv 
)
static

◆ __setup__()

static void flext_stk::__setup__ ( flext_obj::t_classid  classid)
inlinestatic

◆ CbDsp()

bool flext_stk::CbDsp ( )
privatevirtual

Called on every dsp init.

Note
Don't expect any valid data in the signal vectors! flext_dsp::CbDsp should not be called by the derived class
Returns
true (default)... use DSP, false, don't use DSP

Reimplemented from flext_dsp.

◆ CbSignal()

void flext_stk::CbSignal ( )
privatevirtual

Called with every signal vector - here you do the dsp calculation flext_dsp::CbSignal fills all output vectors with silence.

Reimplemented from flext_dsp.

◆ ClearObjs()

void flext_stk::ClearObjs ( )
private

◆ Exit()

void flext_stk::Exit ( )
protectedvirtual

Deallocate all kinds of stuff.

This virtual function is called before the destructor. We do this because here we can still call virtual methods.

Reimplemented from flext_dsp.

◆ FreeObjs()

virtual void flext_stk::FreeObjs ( )
inlinevirtual

◆ Init()

bool flext_stk::Init ( )
protectedvirtual

Set up inlets and outlets, method and attribute lists.

This virtual function is called after the object has been created, that is, after the constructor has been processed. It creates the inlets and outlets and the message and attribute lists.

Note
You can override it in your own class, but be sure to call it,
otherwise no inlets/outlets will be created
All inlet, outlets, method and attribute declarations must be made before a call to Init!
Remarks
Creation of inlets/outlets can't be done upon declaration, as Max/MSP needs creation
in reverse.

Reimplemented from flext_base.

◆ Inlet()

Input& flext_stk::Inlet ( int  ix)
inlineprotected

◆ NewObjs()

virtual bool flext_stk::NewObjs ( )
inlinevirtual

◆ Outlet()

Output& flext_stk::Outlet ( int  ix)
inlineprotected

◆ ProcessObjs()

virtual void flext_stk::ProcessObjs ( int  blocksize)
inlinevirtual

Member Data Documentation

◆ blsz

int flext_stk::blsz
private

◆ inobj

Input** flext_stk::inobj
private

◆ inobjs

int flext_stk::inobjs
private

◆ outobj

Output** flext_stk::outobj
private

◆ outobjs

int flext_stk::outobjs
private

◆ smprt

float flext_stk::smprt
private

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