Once again I am posting a question here which I don't believe to be a
bug but just a plain old fashioned question. If someone can recommend
a better forum for this, please feel free.
I have a private variable (a matrix class) in one of my classes that has a
member function operator()(size_t i, size_t i) from a parent tensor
class which returns the element at [i,j]. I would like to call this
function from the debugger.
------- the code to be debugged ----------
//the declaration of the private var in my code
TxMatrix<float_t> dAlphaScalar;
//the line from my code which I am trying to debug
jacobian_matrix(inow, iPar) += this_k1 * dAlphaScalar(ti, iPar-Fdim);
------- the gdb session ----------
//what I've tried in my gdb session
(gdb) p dAlphaScalar(ti, iPar-Fdim)
Couldn't find method SenSynapse::dAlphaScalar
(gdb) p dAlphaScalar.operator()(ti, iPar-Fdim)
Couldn't find method TxMatrix<double>::operator
------- the matrix and tensor class declarations ----------
//the matrix class declaration
template <class Type>
class TxMatrix : public TxTensor<Type,2> {
//the parent class declaration
class TxTensor defines:
//the function of interest in TxTensor
Type operator ()(size_t i, size_t j) const {
return getTensor()->operator ()(i,j);
}
Any suggestions?
John Hunter