Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

1035608 views
1
//
2
// bistellar_move.cpp
3
// Bistellar
4
//
5
// Created by Alexander Thumm on 07.10.11.
6
// Copyright 2011 -. All rights reserved.
7
//
8
9
#include "bistellar_move.h"
10
11
BistellarMove::BistellarMove() : _face(), _link()
12
{
13
14
}
15
16
BistellarMove::BistellarMove(const Face & face, const Face & link) : _face(face), _link(link)
17
{
18
19
}
20
21
BistellarMove::BistellarMove(const BistellarMove & cpy)
22
{
23
_face = cpy._face;
24
_link = cpy._link;
25
}
26
27
BistellarMove & BistellarMove::operator=(const BistellarMove & cpy)
28
{
29
if (this == &cpy)
30
return *this;
31
32
_face = cpy._face;
33
_link = cpy._link;
34
35
return *this;
36
}
37
38
BistellarMove::~BistellarMove()
39
{
40
41
}
42
43
bool BistellarMove::operator==(const BistellarMove & cmp) const
44
{
45
return _face == cmp._face && _link == cmp._link;
46
}
47
48
bool BistellarMove::operator!=(const BistellarMove & cmp) const
49
{
50
return !(*this == cmp);
51
}
52
53
const Face & BistellarMove::face() const
54
{
55
return _face;
56
}
57
58
const Face & BistellarMove::link() const
59
{
60
return _link;
61
}
62
63
unsigned int BistellarMove::dimension() const
64
{
65
return _face.dimension();
66
}
67
68
unsigned int BistellarMove::codimension() const
69
{
70
return (_link.dimension() == -1) ? 0 : _link.dimension();
71
}
72
73
// serialization methods
74
std::ostream & operator<< (std::ostream & os, const BistellarMove & move)
75
{
76
os << "[" << move._face << "," << move._link << "]";
77
return os;
78
}
79
std::istream & operator>> (std::istream & is, BistellarMove & move)
80
{
81
return is;
82
}
83