BNObj class

object of the Bar-Natan algebra $\mathcal{B}$

An object consists of an idempotent, a homological grading, and a quantum grading.

Constructors, destructors, conversion operators

BNObj(Idem idem = 0, Grading h = 0, Grading q = 0)
standard constructor

Public functions

auto get_delta() const -> Q
δ-grading.
auto get_h() const -> Grading
homological grading
auto get_idem() const -> Idem
idempotent
auto get_q() const -> Grading
quantum grading
auto gr_string(const max_gr_str& max_gr = {}) const -> std::string
string representation of grading
auto operator!=(const BNObj& obj2) const -> bool
true if idempotents differ (ignore gradings)
auto operator==(const BNObj& obj2) const -> bool
true if idempotents coincide (ignore gradings)
void print() const
print string representation of generator in terminal
void set_h(const Grading& new_h)
set homological grading
void set_q(const Grading& new_q)
set quantum grading
void shift_hq(const Grading& h_shift, const Grading& q_shift)
shift gradings
auto to_string(const bool& with_grading = true) const -> std::string
string representation of generator
auto to_svg(const bool& with_grading = true) const -> std::string
string representative of a cobordism object for svg file
auto to_TeX() const -> std::string
TeX representation of generator.