Jamoma API  0.6.0.a19
PureData/source/j.model/j.model.cpp File Reference

j.model / j.view - The main control center of Jamoma model and view patcher More...

#include "j.model.h"
+ Include dependency graph for PureData/source/j.model/j.model.cpp:

Go to the source code of this file.

Functions

void WrapTTContainerClass (WrappedClassPtr c)
 Set up what methods (Max messages) that the wrapped class is to respond to. More...
 
void WrappedContainerClass_new (TTPtr self, long argc, t_atom *argv)
 Constructor: Initiate the wrapped object instance. More...
 
void WrappedContainerClass_free (TTPtr self)
 Deconstructor: Destroy the object and free memory assigned to it. More...
 
void model_subscribe (TTPtr self)
 
void model_subscribe_view (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_return_upper_view_model_address (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_init (TTPtr self)
 
void model_assist (TTPtr self, void *b, long msg, long arg, char *dst)
 Display assist messages for inlets and outlets in Max. More...
 
void model_share_patcher_info (TTPtr self, TTValuePtr patcherInfo)
 
void model_share_patcher_node (TTPtr self, TTNodePtr *patcherNode)
 
void WrappedContainerClass_anything (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_return_address (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_return_value (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_reference_write (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_reference_dowrite (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_address (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
t_max_err model_get_amenities (TTPtr self, TTPtr attr, long *ac, t_atom **av)
 
t_max_err model_set_amenities (TTPtr self, TTPtr attr, long ac, t_atom *av)
 
TTBoolean model_test_amenities (TTPtr self, TTSymbol name)
 

Detailed Description

j.model / j.view - The main control center of Jamoma model and view patcher

Authors
Tim Place, Théo de la Hogue, Trond Lossius, Antoine Villeret

Definition in file PureData/source/j.model/j.model.cpp.

Function Documentation

void model_address ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 611 of file PureData/source/j.model/j.model.cpp.

References WrappedModularInstance::patcherContext.

Referenced by WrapTTContainerClass().

void model_assist ( TTPtr  self,
void *  b,
long  msg,
long  arg,
char *  dst 
)

Display assist messages for inlets and outlets in Max.

Parameters
selfPointer to the object.
bThis does not seem to be used.
msg"1" if we are to display assist message for an inlet, else we are to display assist message for an outlet.
argThe number of the inlet or outlet that we are to display assist message for. 0 is the leftmost.
dstPointer to the destination used for displaying the assist message.

Definition at line 504 of file PureData/source/j.model/j.model.cpp.

References WrappedModularInstance::patcherContext.

Referenced by WrapTTContainerClass().

t_max_err model_get_amenities ( TTPtr  self,
TTPtr  attr,
long *  ac,
t_atom **  av 
)
Parameters
self
attr
ac
av

Definition at line 628 of file PureData/source/j.model/j.model.cpp.

References jamoma_ttvalue_to_Atom(), and TTValue::size().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_init ( TTPtr  self)
Parameters
self

Definition at line 490 of file PureData/source/j.model/j.model.cpp.

References TTObject::get(), TTObject::send(), and WrappedModularInstance::wrappedObject.

Referenced by model_subscribe().

+ Here is the call graph for this function:

void model_reference_dowrite ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 581 of file PureData/source/j.model/j.model.cpp.

References TTValue::append(), TTSymbol::c_str(), WrappedModularInstance::internals, jamoma_file_write(), TTHash::lookup(), WrappedModularInstance::patcherClass, TTObject::send(), TTObject::set(), TTObject::valid(), and WrappedModularInstance::wrappedObject.

Referenced by model_reference_write().

+ Here is the call graph for this function:

void model_reference_write ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 575 of file PureData/source/j.model/j.model.cpp.

References model_reference_dowrite().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_return_address ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 559 of file PureData/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

void model_return_upper_view_model_address ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 471 of file PureData/source/j.model/j.model.cpp.

References TTAddress::appendAddress(), and jamoma_ttvalue_from_Atom().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_return_value ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 567 of file PureData/source/j.model/j.model.cpp.

References WrappedModularInstance::outlets.

Referenced by WrapTTContainerClass().

t_max_err model_set_amenities ( TTPtr  self,
TTPtr  attr,
long  ac,
t_atom *  av 
)
Parameters
self
attr
ac
av

Definition at line 652 of file PureData/source/j.model/j.model.cpp.

References jamoma_ttvalue_from_Atom(), and TTValue::size().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_share_patcher_info ( TTPtr  self,
TTValuePtr  patcherInfo 
)
Parameters
self
patcherInfo

Definition at line 527 of file PureData/source/j.model/j.model.cpp.

References TTValue::append(), TTValue::clear(), WrappedModularInstance::patcherClass, WrappedModularInstance::patcherContext, WrappedModularInstance::patcherName, and WrappedModularInstance::patcherPtr.

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_share_patcher_node ( TTPtr  self,
TTNodePtr patcherNode 
)
Parameters
self
patcherNode

Definition at line 540 of file PureData/source/j.model/j.model.cpp.

References TTObject::get(), WrappedModularInstance::subscriberObject, and TTObject::valid().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_subscribe_view ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
TTBoolean model_test_amenities ( TTPtr  self,
TTSymbol  name 
)
Parameters
self
name

Definition at line 676 of file PureData/source/j.model/j.model.cpp.

Referenced by model_subscribe().

void WrappedContainerClass_anything ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
selfPointer to the object.
msgThe message sent to the object.
argcThe number of arguments of the message.
argvThe arguments of the message as an array of atoms.

Definition at line 551 of file PureData/source/j.model/j.model.cpp.

References jamoma_container_send(), and WrappedModularInstance::wrappedObject.

+ Here is the call graph for this function:

void WrappedContainerClass_free ( TTPtr  self)

Deconstructor: Destroy the object and free memory assigned to it.

Parameters
selfPointer to the object.

Definition at line 159 of file PureData/source/j.model/j.model.cpp.

References TTObject::send(), TTObject::set(), and WrappedModularInstance::wrappedObject.

+ Here is the call graph for this function:

void WrappedContainerClass_new ( TTPtr  self,
long  argc,
t_atom *  argv 
)

Constructor: Initiate the wrapped object instance.

Parameters
selfPointer to the object.
argcThe number of arguments to the new object instance
argvPointer to the array of atoms containing the arguments to the object instance.

Definition at line 101 of file PureData/source/j.model/j.model.cpp.

References WrappedModularInstance::extra, jamoma_container_create(), jamoma_patcher_get(), jamoma_patcher_get_model_or_view(), model_subscribe(), WrappedModularInstance::obj, WrappedModularInstance::outlets, WrappedModularInstance::patcherContext, TTObject::set(), and WrappedModularInstance::wrappedObject.

+ Here is the call graph for this function: