Class Constant

Inheritance Relationships

Base Type

Class Documentation

class SymEngine::Constant : public SymEngine::Basic

Public Functions

Constant(const std::string &name)

Constant Constructor.

hash_t __hash__() const

Return

Size of the hash

bool __eq__(const Basic &o) const

Equality comparator

Return

whether the 2 objects are equal

Parameters
  • o: - Object to be compared with

int compare(const Basic &o) const

Comparison operator

Return

0 if equal, -1 , 1 according to string compare

Parameters
  • o: - Object to be compared with

std::string get_name() const

Return

name of the Constant.

vec_basic get_args() const

Returns the list of arguments.