Classes | Functions | Variables

chaincon/cubcell.h File Reference

A cubical cell. More...

#include <istream>
#include <ostream>
#include <algorithm>
#include <vector>
#include "chomp/system/config.h"
#include "chomp/cubes/pointbas.h"
#include "chaincon/emptycell.h"
#include "chaincon/emptycell.h"

Go to the source code of this file.

Classes

class  tCubCell< CoordT >
 An elementary cubical cell with vertices of integer type. More...

Functions

template<class CoordT >
int_t hashkey1 (const tCubCell< CoordT > &c)
 Generates a hashing key no.
template<class CoordT >
int_t hashkey2 (const tCubCell< CoordT > &c)
 Generates a hashing key no.
template<class CoordT >
std::ostream & operator<< (std::ostream &out, const tCubCell< CoordT > &c)
 Writes an elementary cube in the text mode to an output stream as the cartesian product of elementary intervals.
template<class CoordT >
std::istream & operator>> (std::istream &in, tCubCell< CoordT > &c)
 Reads an elementary cube from the input stream in the text format.

Variables

static int diagVersion = 0
 The version of the AW diagonal. For testing only.

Detailed Description

A cubical cell.

Definition in file cubcell.h.


Function Documentation

template<class CoordT >
int_t hashkey1 ( const tCubCell< CoordT > &  c ) [inline]

Generates a hashing key no.

1 for a cubical cell, composed of hashing keys for the coordinates. This key is to be used in a hashed set.

Definition at line 496 of file cubcell.h.

Referenced by hashkey1().

template<class CoordT >
int_t hashkey2 ( const tCubCell< CoordT > &  c ) [inline]

Generates a hashing key no.

2 for a cubical cell, composed of hashing keys for the coordinates. This key is to be used in a hashed set.

Definition at line 522 of file cubcell.h.

Referenced by hashkey2().

template<class CoordT >
std::ostream& operator<< ( std::ostream &  out,
const tCubCell< CoordT > &  c 
)

Writes an elementary cube in the text mode to an output stream as the cartesian product of elementary intervals.

Definition at line 549 of file cubcell.h.

template<class CoordT >
std::istream& operator>> ( std::istream &  in,
tCubCell< CoordT > &  c 
)

Reads an elementary cube 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 cartesian product that defines the cube. If no elementary cube is found in the input then the cube is not modified.

Definition at line 574 of file cubcell.h.


Variable Documentation

int diagVersion = 0 [static]

The version of the AW diagonal. For testing only.

Definition at line 252 of file cubcell.h.

Referenced by tCubCell< CoordT >::tCubCell().