Jamoma API  0.6.0.a19
Max/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 Max/source/j.model/j.model.cpp:

Go to the source code of this file.

Functions

int C74_EXPORT main (void)
 Set up this class as a Max external the first time an object of this kind is instantiated. More...
 
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

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

Function Documentation

int C74_EXPORT main ( void  )

Set up this class as a Max external the first time an object of this kind is instantiated.

Returns
Error message if the object fails to load.

Set up this class as a Max external the first time an object of this kind is instantiated.

Definition at line 19 of file Max/source/j.model/j.model.cpp.

References WrappedContainerClass_anything(), WrappedContainerClass_free(), WrappedContainerClass_new(), WrapTTContainerClass(), and wrapTTModularClassAsMaxClass().

+ Here is the call graph for this function:

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

Definition at line 570 of file Max/source/j.model/j.model.cpp.

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 464 of file Max/source/j.model/j.model.cpp.

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 587 of file Max/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

void model_init ( TTPtr  self)
Parameters
self

Definition at line 450 of file Max/source/j.model/j.model.cpp.

Referenced by model_subscribe().

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

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

Referenced by model_reference_write().

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

Definition at line 535 of file Max/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

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

Definition at line 519 of file Max/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 431 of file Max/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

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

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

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 611 of file Max/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

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

Definition at line 487 of file Max/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

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

Definition at line 500 of file Max/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

void model_subscribe ( TTPtr  self)
Parameters
self

Definition at line 191 of file Max/source/j.model/j.model.cpp.

Referenced by WrappedContainerClass_new().

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

Definition at line 334 of file Max/source/j.model/j.model.cpp.

Referenced by model_subscribe(), and model_subscribe_view().

TTBoolean model_test_amenities ( TTPtr  self,
TTSymbol  name 
)
Parameters
self
name

Definition at line 635 of file Max/source/j.model/j.model.cpp.

Referenced by model_signal_amenities(), and 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 511 of file Max/source/j.model/j.model.cpp.

Referenced by main().

void WrappedContainerClass_free ( TTPtr  self)

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

Parameters
selfPointer to the object.

Definition at line 150 of file Max/source/j.model/j.model.cpp.

Referenced by main().

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 93 of file Max/source/j.model/j.model.cpp.

Referenced by main().

void WrapTTContainerClass ( WrappedClassPtr  c)

Set up what methods (Max messages) that the wrapped class is to respond to.

Parameters
cPointer to the wrapped class.

Definition at line 36 of file Max/source/j.model/j.model.cpp.

Referenced by main().