The Original CHomP Software
bitcode.h
Go to the documentation of this file.
1
3
15
16// Copyright (C) 1997-2020 by Pawel Pilarczyk.
17//
18// This file is part of my research software package. This is free software:
19// you can redistribute it and/or modify it under the terms of the GNU
20// General Public License as published by the Free Software Foundation,
21// either version 3 of the License, or (at your option) any later version.
22//
23// This software is distributed in the hope that it will be useful,
24// but WITHOUT ANY WARRANTY; without even the implied warranty of
25// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26// GNU General Public License for more details.
27//
28// You should have received a copy of the GNU General Public License
29// along with this software; see the file "license.txt". If not,
30// please, see <https://www.gnu.org/licenses/>.
31
32// Started on November 12, 2001. Last revision: August 16, 2007.
33
34
35#ifndef _CHOMP_CUBES_BITCODE_H_
36#define _CHOMP_CUBES_BITCODE_H_
37
38#include "chomp/system/config.h"
41
42#include <iostream>
43#include <fstream>
44#include <ctime>
45#include <cstdlib>
46
47namespace chomp {
48namespace homology {
49
50
51// --------------------------------------------------
52// --------------------- BITCODE --------------------
53// --------------------------------------------------
54
59int readbitpoints (std::istream &in, pointset &p, int *bitcode_depth = NULL);
60
70int writebitpoints (std::ostream &out, pointset &p, bool sorted = true,
71 int fixed_depth = 0, coordinate *fixed_corner = NULL);
72
73
74} // namespace homology
75} // namespace chomp
76
77#endif // _CHOMP_CUBES_BITCODE_H_
78
80
This class represents a set of points in R^n with integer coordinates.
Definition: pointset.h:482
This file contains some precompiler definitions which indicate the operating system and/or compiler u...
short int coordinate
The default type of coordinates.
Definition: pointset.h:63
int writebitpoints(std::ostream &out, pointset &p, bool sorted=true, int fixed_depth=0, coordinate *fixed_corner=NULL)
Writes a full cubical set represented by a set of points to a file in the "bitcode" format.
int readbitpoints(std::istream &in, pointset &p, int *bitcode_depth=NULL)
Reads a set of full cubical sets represented as a set of points from a file encoded in the "bitcode" ...
This namespace contains the entire CHomP library interface.
Definition: bitmaps.h:51
This file contains the definition of a set of n-dimensional points with integer coordinates and sever...
This file contains some useful functions related to the text input/output procedures.