A simplex class with arbitrary vertices. More...
#include <istream>
#include <ostream>
#include <algorithm>
#include <vector>
#include "chomp/system/config.h"
#include "chaincon/emptycell.h"
Go to the source code of this file.
Classes | |
class | tSimplex< VertexT > |
A simplex with vertices of arbitrary type. More... | |
Functions | |
template<class VertexT > | |
int_t | hashkey1 (const tSimplex< VertexT > &s) |
Generates a hashing key no. | |
template<class VertexT > | |
int_t | hashkey2 (const tSimplex< VertexT > &s) |
Generates a hashing key no. | |
template<class VertexT > | |
std::ostream & | operator<< (std::ostream &out, const tSimplex< VertexT > &s) |
Writes a simplex in the text mode to an output stream. | |
template<class VertexT > | |
std::istream & | operator>> (std::istream &in, tSimplex< VertexT > &s) |
Reads a simplex from the input stream in the text format. |
A simplex class with arbitrary vertices.
Definition in file simplex.h.
int_t hashkey1 | ( | const tSimplex< VertexT > & | s ) | [inline] |
Generates a hashing key no.
1 for a simplex, composed of hashing keys for the vertices. This key is to be used in a hashed set.
Definition at line 226 of file simplex.h.
References hashkey1().
int_t hashkey2 | ( | const tSimplex< VertexT > & | s ) | [inline] |
Generates a hashing key no.
2 for a simplex, composed of hashing keys for the vertices. This key is to be used in a hashed set.
Definition at line 252 of file simplex.h.
References hashkey2().
std::ostream& operator<< | ( | std::ostream & | out, |
const tSimplex< VertexT > & | s | ||
) |
std::istream& operator>> | ( | std::istream & | in, |
tSimplex< VertexT > & | s | ||
) |
Reads a simplex from the input stream in the text format.
Skips all the characters in the input stream until an opening parenthesis is found. Then reads the vertices of the simplex using their operator >> as a comma-separated list. The closing parenthesis indicates the end of the simplex definition. If the closing parenthesis is not found then an exception is thrown. If no simplex is found in the input then the simplex is not modified.