/// Every instantiation is an array of counters of type Counter.
class Counters {
public:
+ ///
+ Counters() : appendix_(false), subfloat_(false) {}
/// Add a new counter to array.
void newCounter(docstring const & newc);
/// Add new counter having oldc as its master and ls as its label.
std::string const & current_float() const { return current_float_; }
/// Sets the current enclosing float.
void current_float(std::string const & f) { current_float_ = f; }
+ /// Are we in a subfloat?
+ bool isSubfloat() const { return subfloat_; }
+ /// Set the state variable indicating whether we are in a subfloat.
+ void isSubfloat(bool s) { subfloat_ = s; };
private:
/// returns the expanded string representation of the counter
/// with recursion protection through callers.
bool appendix_;
/// The current enclosing float.
std::string current_float_;
+ /// Are we in a subfloat?
+ bool subfloat_;
};