The Conley-Morse Graphs Software
Files | Classes | Functions | Variables
Homology

Files

file  psetjoin.cpp
 A program for joining topologically disjoint sets of points (or cubes).
 

Classes

class  pointsetptr
 

Functions

bool operator< (const pointsetptr &x, const pointsetptr &y)
 
int psetbold (pointset &p, int howmany, bool debug=false)
 
bool disjoint (const pointset &p, const pointset &q)
 
int joinsets (char *innames[], int nnames, char *prefix, int distance, int firstset)
 Joins the sets of cubes. More...
 
int main (int argc, char *argv[])
 The main function of the program. More...
 

Variables

const char * title
 
const char * helpinfo
 
const int maxnames = 16000
 

Detailed Description

Function Documentation

◆ disjoint()

bool disjoint ( const pointset &  p,
const pointset &  q 
)

◆ joinsets()

int joinsets ( char *  innames[],
int  nnames,
char *  prefix,
int  distance,
int  firstset 
)

Joins the sets of cubes.

Returns: 0 = Ok, -1 = Error.

Definition at line 153 of file psetjoin.cpp.

References disjoint(), and psetbold().

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

The main function of the program.

Returns: 0 = Ok, -1 = Error, 1 = Help displayed, 2 = Wrong arguments.

Definition at line 247 of file psetjoin.cpp.

References helpinfo, joinsets(), maxnames, and title.

◆ operator<()

bool operator< ( const pointsetptr x,
const pointsetptr y 
)
inline

Definition at line 85 of file psetjoin.cpp.

◆ psetbold()

int psetbold ( pointset &  p,
int  howmany,
bool  debug = false 
)

Definition at line 96 of file psetjoin.cpp.

Referenced by joinsets().

Variable Documentation

◆ helpinfo

const char* helpinfo
Initial value:
="\
Call with: infile1.cub ... infileN.cub prefix.\n\
The program reads the sets of points in the given files,\n\
and joins these sets which are topologically disjoint, that is,\n\
can be separted back by taking their connected components.\n\
The resulting sets are written to prefix001.cub, prefix002.cub, etc.\n\
Switches and additional arguments:\n\
-d N - the minimal distance between the sets (default: 1),\n\
-s N - don't join the largest N input sets,\n\
-h - display this brief help information only and exit.\n\
For more information ask the author at http://www.PawelPilarczyk.com/."

Definition at line 62 of file psetjoin.cpp.

Referenced by main().

◆ maxnames

const int maxnames = 16000

Definition at line 74 of file psetjoin.cpp.

Referenced by main().

◆ title

const char* title
Initial value:
= "\
Join PointSets, ver. 0.02. Copyright (C) 1997-2020 by Pawel Pilarczyk.\n\
This is free software. No warranty. Consult 'license.txt' for details."

Definition at line 58 of file psetjoin.cpp.

Referenced by main().