- basic * duplicate() const;
- void printraw(ostream & os) const;
- void printtree(ostream & os, unsigned indent) const;
- void print(ostream & os, unsigned upper_precedence=0) const;
- bool info(unsigned inf) const;
+ /** Get value of index. */
+ ex get_value(void) const {return value;}
+
+ /** Check whether the index is numeric. */
+ bool is_numeric(void) const {return is_ex_exactly_of_type(value, numeric);}
+
+ /** Check whether the index is symbolic. */
+ bool is_symbolic(void) const {return !is_ex_exactly_of_type(value, numeric);}
+
+ /** Get dimension of index space. */
+ ex get_dim(void) const {return dim;}
+
+ /** Check whether the dimension is numeric. */
+ bool is_dim_numeric(void) const {return is_ex_exactly_of_type(dim, numeric);}
+
+ /** Check whether the dimension is symbolic. */
+ bool is_dim_symbolic(void) const {return !is_ex_exactly_of_type(dim, numeric);}
+