Public Types | |
typedef std::list< SignedSet > ::iterator | circuit_iterator |
typedef std::list< SignedSet > ::reverse_iterator | reverse_circuit_iterator |
Public Member Functions | |
Circuits (size_t, size_t) | |
Circuits (const Chirotope &) | |
Circuits (const Circuits &) | |
Circuits * | clone () const |
size_t | getNumCircuits () const |
void | addCircuit (SignedSet) |
void | addCircuit (const std::string) |
void | addCircuit (const char *) |
void | clear () |
void | relabel (index_t, index_t) |
void | relabel (const Permutation &) |
void | reorient (index_t) |
void | reorient (const std::set< index_t > &) |
void | reorient (const Combination &) |
void | remove (index_t) |
void | contract (index_t) |
bool | operator== (const OrientedMatroid &) const |
bool | verify () |
circuit_iterator | circuit_begin () |
circuit_iterator | circuit_end () |
reverse_circuit_iterator | circuit_rbegin () |
reverse_circuit_iterator | circuit_rend () |
Protected Member Functions | |
void | chirotope2cocircuits (const Chirotope &) |
void | normalize () |
Protected Attributes | |
std::list< SignedSet > | m_Circuit |
omc::Circuits::Circuits | ( | size_t | r, | |
size_t | n | |||
) | [inline] |
Constructor.
omc::Circuits::Circuits | ( | const Chirotope & | Chi | ) | [inline] |
Converter constructor: chirotope -> cocircuits.
omc::Circuits::Circuits | ( | const Circuits & | C | ) | [inline] |
Copy constructor.
void omc::Circuits::addCircuit | ( | const char * | s | ) | [inline] |
Add a circuit given by a c-string.
void omc::Circuits::addCircuit | ( | const std::string | s | ) | [inline] |
Add a circuit given by a string.
void omc::Circuits::addCircuit | ( | SignedSet | c | ) |
Add a circuit. (If it's negative, negate it first.)
void omc::Circuits::chirotope2cocircuits | ( | const Chirotope & | Chi | ) | [protected] |
Oriented matroid repressentation conversion from chirotope to cocircuits.
Circuits::circuit_iterator omc::Circuits::circuit_begin | ( | ) | [inline] |
Get the first position of circuit iterator.
Circuits::circuit_iterator omc::Circuits::circuit_end | ( | ) | [inline] |
Get the end position of circuit iterator.
Circuits::reverse_circuit_iterator omc::Circuits::circuit_rbegin | ( | ) | [inline] |
Get the first position of reverse circuit iterator.
Circuits::reverse_circuit_iterator omc::Circuits::circuit_rend | ( | ) | [inline] |
Get the end position of reverse circuit iterator.
void omc::Circuits::clear | ( | ) | [inline] |
Clear the circuits.
Circuits * omc::Circuits::clone | ( | ) | const [inline, virtual] |
"Virtual constructor" of OrientedMatroid.
Implements omc::OrientedMatroid.
void omc::Circuits::contract | ( | index_t | i | ) | [virtual] |
Single element contraction.
Reimplemented from omc::OrientedMatroid.
size_t omc::Circuits::getNumCircuits | ( | ) | const [inline] |
Get the number of circuits.
void omc::Circuits::normalize | ( | ) | [protected] |
Normalize the stored circuits: 1) Only the positive half are stored. 2) Sorted.
bool omc::Circuits::operator== | ( | const OrientedMatroid & | Om | ) | const |
Operator ==.
void omc::Circuits::relabel | ( | const Permutation & | perm | ) | [virtual] |
Relabel using a given permutation.
Implements omc::OrientedMatroid.
Reimplemented in omc::AffineCircuits.
void omc::Circuits::relabel | ( | index_t | i, | |
index_t | j | |||
) | [virtual] |
Relabel a pair of indices.
Implements omc::OrientedMatroid.
void omc::Circuits::remove | ( | index_t | i | ) | [virtual] |
Single element deletion.
Reimplemented from omc::OrientedMatroid.
void omc::Circuits::reorient | ( | const Combination & | comb | ) | [virtual] |
Reorient a set of elements specified by a Combination object.
Implements omc::OrientedMatroid.
void omc::Circuits::reorient | ( | const std::set< index_t > & | I | ) | [virtual] |
Reorient a set of elements specified by a set.
Implements omc::OrientedMatroid.
void omc::Circuits::reorient | ( | index_t | i | ) | [virtual] |
Reorient a single element.
Implements omc::OrientedMatroid.
bool omc::Circuits::verify | ( | ) | [virtual] |
Verify if it is a legal set of circuits, i.e., check if the circuit axioms are satified.
Implements omc::Verifiable.