Jamoma API  0.6.0.a19
TTMatrixObject.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup foundationLibrary
4  *
5  * @brief #TTMatrixObject is a #TTObject specialized for processing matrices
6  *
7  * @details
8  *
9  * @author Timothy Place
10  *
11  * @copyright Copyright © 2014 by Timothy Place @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #ifndef __TT_MATRIX_OBJECT_H__
18 #define __TT_MATRIX_OBJECT_H__
19 
20 #include "TTBase.h"
21 #include "TTObject.h"
22 #include "TTValue.h"
23 
24 class TTMatrix;
25 class TTDataObjectBase;
26 
27 
28 /** Wrap TTMatrixBase instances. */
29 class TTFOUNDATION_EXPORT TTMatrixObject : public TTObject {
30 public:
31 
32  /** Constructor */
33  TTMatrixObject(const TTSymbol aClassName, const TTValue arguments = kTTValNONE):
34  TTObject(aClassName, arguments)
35  {}
36 
37 
38  /** Get a pointer to the wrapped #TTMatrixBase instance. */
40  {
41  return (TTDataObjectBase*)mObjectInstance;
42  }
43 
44  TTErr calculate(TTMatrix x, TTMatrix y);
45 
46 };
47 
48 
49 #endif // __TT_MATRIX_H__
TTDataObjectBase * instance() const
Get a pointer to the wrapped TTMatrixBase instance.
Create Jamoma object instances.
Create and use Jamoma object instances.
Definition: TTObject.h:29
TTDataObjectBase is the base class for all data generating and processing objects.
TTMatrixObject(const TTSymbol aClassName, const TTValue arguments=kTTValNONE)
Constructor.
Jamoma's lowest-level base class and related infrastructure.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26
Wrap TTMatrixBase instances.
Definition: TTMatrix.h:27
Wrap TTMatrixBase instances.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
Provides a common way of representing composite values.
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34