#include <PowerWordRep.h>
Public Member Functions | |
PowerWordRep * | clone () const |
const list< PII > & | getList () const |
list< PII > & | getList () |
ostream & | printOn (ostream &os) const |
Private Types | |
typedef pair< int, int > | PII |
Private Member Functions | |
PowerWordRep () | |
PowerWordRep (const list< PII > &gens) | |
PowerWordRep (const vector< PII > &gens) | |
PowerWordRep (const PowerWordRep &wr) | |
PowerWordRep (const list< int > &gens) | |
PowerWordRep (const vector< int > &gens) | |
PowerWordRep (int g, int p=1) | |
PowerWordRep | operator= (const PowerWordRep wr) |
PowerWordRep & | operator*= (const PowerWordRep &w) |
bool | operator< (const PowerWordRep &wr) const |
bool | operator> (const PowerWordRep &wr) const |
bool | operator== (const PowerWordRep &wr) const |
PowerWordRep | operator* (const PowerWordRep &w) const |
bool | doesContain (int gen) const |
int | length () const |
int | exponentSum (int gen) const |
int | isIn (int gen) const |
int | getPower (PowerWordRep &base) const |
PowerWordRep | inverse () const |
void | cyclicallyReduce () |
void | cyclicallyReduce (PowerWordRep &conjugator) |
void | cyclicLeftShift () |
void | cyclicRightShift () |
void | cyclicallyPermute (int n) |
void | segment (int from, int to) |
void | initialSegment (int to) |
void | terminalSegment (int from) |
void | insert (const PowerWordRep &wr, int pos) |
void | pushGeneratorBack (int g, int p) |
void | pushGeneratorFront (int g, int p) |
Private Attributes | |
list< PII > | theElements |
int | theLength |
Friends | |
class | PowerWord |
Definition at line 28 of file PowerWordRep.h.
typedef pair< int , int > PowerWordRep::PII [private] |
Definition at line 31 of file PowerWordRep.h.
PowerWordRep::PowerWordRep | ( | ) | [private] |
Referenced by clone().
PowerWordRep::PowerWordRep | ( | const list< PII > & | gens | ) | [private] |
PowerWordRep::PowerWordRep | ( | const vector< PII > & | gens | ) | [private] |
PowerWordRep::PowerWordRep | ( | const PowerWordRep & | wr | ) | [private] |
PowerWordRep::PowerWordRep | ( | const list< int > & | gens | ) | [private] |
PowerWordRep::PowerWordRep | ( | const vector< int > & | gens | ) | [private] |
PowerWordRep::PowerWordRep | ( | int | g, | |
int | p = 1 | |||
) | [private] |
PowerWordRep* PowerWordRep::clone | ( | ) | const [inline] |
Definition at line 83 of file PowerWordRep.h.
References PowerWordRep().
void PowerWordRep::cyclicallyPermute | ( | int | n | ) | [private] |
void PowerWordRep::cyclicallyReduce | ( | PowerWordRep & | conjugator | ) | [private] |
void PowerWordRep::cyclicallyReduce | ( | ) | [private] |
void PowerWordRep::cyclicLeftShift | ( | ) | [private] |
Referenced by PowerWord::cyclicLeftShift().
void PowerWordRep::cyclicRightShift | ( | ) | [private] |
Referenced by PowerWord::cyclicRightShift().
bool PowerWordRep::doesContain | ( | int | gen | ) | const [private] |
Referenced by PowerWord::doesContain().
int PowerWordRep::exponentSum | ( | int | gen | ) | const [private] |
Referenced by PowerWord::exponentSum().
list< PII >& PowerWordRep::getList | ( | ) | [inline] |
Definition at line 86 of file PowerWordRep.h.
References theElements.
const list< PII >& PowerWordRep::getList | ( | ) | const [inline] |
Definition at line 85 of file PowerWordRep.h.
References theElements.
Referenced by PowerWord::getList().
int PowerWordRep::getPower | ( | PowerWordRep & | base | ) | const [private] |
Referenced by PowerWord::getPower().
void PowerWordRep::initialSegment | ( | int | to | ) | [private] |
void PowerWordRep::insert | ( | const PowerWordRep & | wr, | |
int | pos | |||
) | [private] |
PowerWordRep PowerWordRep::inverse | ( | ) | const [private] |
Referenced by PowerWord::inverse(), and PowerWord::operator-().
int PowerWordRep::isIn | ( | int | gen | ) | const [private] |
Referenced by PowerWord::isIn().
int PowerWordRep::length | ( | ) | const [inline, private] |
Definition at line 93 of file PowerWordRep.h.
References theLength.
Referenced by PowerWord::length().
PowerWordRep PowerWordRep::operator* | ( | const PowerWordRep & | w | ) | const [inline, private] |
Definition at line 69 of file PowerWordRep.h.
PowerWordRep& PowerWordRep::operator*= | ( | const PowerWordRep & | w | ) | [private] |
bool PowerWordRep::operator< | ( | const PowerWordRep & | wr | ) | const [private] |
PowerWordRep PowerWordRep::operator= | ( | const PowerWordRep | wr | ) | [private] |
bool PowerWordRep::operator== | ( | const PowerWordRep & | wr | ) | const [private] |
bool PowerWordRep::operator> | ( | const PowerWordRep & | wr | ) | const [private] |
ostream& PowerWordRep::printOn | ( | ostream & | os | ) | const [inline] |
Definition at line 141 of file PowerWordRep.h.
References theElements.
Referenced by PowerWord::printOn().
void PowerWordRep::pushGeneratorBack | ( | int | g, | |
int | p | |||
) | [private] |
Referenced by PowerWord::push_back().
void PowerWordRep::pushGeneratorFront | ( | int | g, | |
int | p | |||
) | [private] |
Referenced by PowerWord::push_front().
void PowerWordRep::segment | ( | int | from, | |
int | to | |||
) | [private] |
void PowerWordRep::terminalSegment | ( | int | from | ) | [private] |
friend class PowerWord [friend] |
Definition at line 30 of file PowerWordRep.h.
list< PII > PowerWordRep::theElements [private] |
Definition at line 173 of file PowerWordRep.h.
int PowerWordRep::theLength [private] |
Definition at line 176 of file PowerWordRep.h.
Referenced by length().