/usr/include/JAGS/compiler/Counter.h is in jags 4.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #ifndef COUNTER_H_
#define COUNTER_H_
#include <sarray/RangeIterator.h>
namespace jags {
/**
* @short Mutable index that traverses a BUGS-language "for" loop
*
* The Counter class is used to represent counters in "for" loops in the
* BUGS language. A Counter is a scalar RangeIterator.
*
* <pre>
* for (i in 1:N) {
* }
* </pre>
*/
class Counter : public RangeIterator
{
public:
/**
* Create a counter
* @param range Scalar range. i.e., Range having ndim(false) == 1
*/
Counter(Range const &range);
/** Increments the value of the counter by 1 */
Counter &next();
};
} /* namespace jags */
#endif /* COUNTER_H_ */
|