* Returns the timer callback.
* @return The timer callback.
*/
- inline virtual GHOST_TimerProcPtr getTimerProc() const = 0;
+ virtual GHOST_TimerProcPtr getTimerProc() const = 0;
/**
* Changes the timer callback.
* @param timerProc The timer callback.
*/
- inline virtual void setTimerProc(const GHOST_TimerProcPtr timerProc) = 0;
+ virtual void setTimerProc(const GHOST_TimerProcPtr timerProc) = 0;
/**
* Returns the timer user data.
* @return The timer user data.
*/
- inline virtual GHOST_TUserDataPtr getUserData() const = 0;
+ virtual GHOST_TUserDataPtr getUserData() const = 0;
/**
* Changes the time user data.
* Returns the type of drawing context used in this window.
* @return The current type of drawing context.
*/
- inline virtual GHOST_TDrawingContextType getDrawingContextType() = 0;
+ virtual GHOST_TDrawingContextType getDrawingContextType() = 0;
/**
* Tries to install a rendering context in this window.
* Returns the window user data.
* @return The window user data.
*/
- inline virtual GHOST_TUserDataPtr getUserData() const = 0;
+ virtual GHOST_TUserDataPtr getUserData() const = 0;
/**
* Changes the window user data.
#include <list>
using namespace std;
-typedef struct {
+class IK_QSolver {
+public:
+ IK_QSolver() {};
+
IK_QJacobianSolver solver;
IK_QSegment *root;
std::list<IK_QTask*> tasks;
-} IK_QSolver;
+};
IK_QSegment *CreateSegment(int flag, bool translate)
{
#include <stdlib.h>
#include <assert.h>
#include <iostream>
-#include <strstream>
#ifdef TNT_USE_REGIONS
#include "region2d.h"
#endif
copy(v);
}
- Matrix(Subscript M, Subscript N, const char *s)
- {
- initialize(M,N);
- std::istrstream ins(s);
-
- Subscript i, j;
-
- for (i=0; i<M; i++)
- for (j=0; j<N; j++)
- ins >> row_[i][j];
- }
-
// destructor
//
~Matrix()
#include <cstdlib>
#include <cassert>
#include <iostream>
-#include <strstream>
#ifdef TNT_USE_REGIONS
#include "region2d.h"
#endif
}
- Fortran_Matrix(Subscript M, Subscript N, char *s)
- {
- initialize(M,N);
- std::istrstream ins(s);
-
- Subscript i, j;
-
- for (i=1; i<=M; i++)
- for (j=1; j<=N; j++)
- ins >> (*this)(i,j);
- }
-
// destructor
~Fortran_Matrix()
{
#include <cstdlib>
#include <cassert>
#include <iostream>
-#include <strstream>
using namespace std;
#include <stdlib.h>
#include <assert.h>
#include <iostream>
-#include <strstream>
namespace TNT
{
copy(v);
}
- Vector(Subscript N, char *s) : v_(0), vm1_(0), n_(0)
- {
- initialize(N);
- std::istrstream ins(s);
-
- Subscript i;
-
- for (i=0; i<N; i++)
- ins >> v_[i];
- }
-
// methods
//
#include <cstdlib>
#include <iostream>
-#include <strstream>
#include <cassert>
#include "subscript.h"
}
- Vector_Adaptor(Subscript N, /*const*/ char *s) : v_(N)
- {
- istrstream ins(s);
- for (Subscript i=0; i<N; i++)
- ins >> v_[i] ;
-
- vm1_ = ( v_.size() > 0 ? &(v_[0]) -1 : NULL);
- };
-
Vector_Adaptor(Subscript N, const T& value = T()) : v_(N)
{
for (Subscript i=0; i<N; i++)