|
Frobby 0.10.0
|
Public Member Functions | |
| void | consumeRing (const VarNames &names) |
| void | requireSquareFree () |
| void | beginIdeal () |
| void | hintGenCount (size_t hintGenCount) |
| void | beginTerm () |
| size_t | consumeVar (Scanner &in) |
| size_t | consumeVarNumber (Scanner &in) |
| void | consumeVarExponentOne (size_t var, const Scanner &in) |
| void | consumeVarExponent (size_t var, Scanner &in) |
| void | endTerm () |
| void | consumeTermProductNotation (Scanner &in) |
| void | endIdeal () |
| bool | empty () const |
| void | releaseIdeal (unique_ptr< SquareFreeIdeal > &sqf, unique_ptr< BigIdeal > &big) |
| unique_ptr< BigIdeal > | releaseBigIdeal () |
| unique_ptr< SquareFreeIdeal > | releaseSquareFreeIdeal () |
| const VarNames & | getRing () const |
| void InputConsumer::beginIdeal | ( | ) |
Start consuming an ideal.
| void InputConsumer::beginTerm | ( | ) |
Start consuming a term.
| void InputConsumer::consumeTermProductNotation | ( | Scanner & | in | ) |
Reads a term in a format like "a^4*b*c^2"
| size_t InputConsumer::consumeVar | ( | Scanner & | in | ) |
Reads variable and returns id. Does not return if there is an error.
| void InputConsumer::consumeVarExponent | ( | size_t | var, |
| Scanner & | in ) |
Consumes var raised to an exponent read from in.
Does not return if there is an error.
| void InputConsumer::consumeVarExponentOne | ( | size_t | var, |
| const Scanner & | in ) |
Consumes var raised to the exponent 1.
| size_t InputConsumer::consumeVarNumber | ( | Scanner & | in | ) |
Reads variable as a number so that the first variable is 1. Does not return if there is an error.
|
inline |
Returns true if there are ideals stored.
| void InputConsumer::endIdeal | ( | ) |
Done reading an ideal.
| void InputConsumer::endTerm | ( | ) |
Done reading a term.
|
inline |
Returns the current ring.
| void InputConsumer::hintGenCount | ( | size_t | hintGenCount | ) |
Suggest that the current ideal will have the given number of generators. This helps in preallocating the right amount of memory.
| unique_ptr< BigIdeal > InputConsumer::releaseBigIdeal | ( | ) |
Returns the least recently read ideal that has not been released. Converts the ideal to a BigIdeal if it had been read as something else.
| void InputConsumer::releaseIdeal | ( | unique_ptr< SquareFreeIdeal > & | sqf, |
| unique_ptr< BigIdeal > & | big ) |
Struct that keeps either a BigIdeal or a SquareFreeIdeal. Assigns the least recently read ideal that has not been released to the parameter of the type that the ideal was read as.
| unique_ptr< SquareFreeIdeal > InputConsumer::releaseSquareFreeIdeal | ( | ) |
Returns the least recently read ideal that has not been released. That ideal must have been read as a SquareFreeIdeal.