File: Objects.gd

package info (click to toggle)
gap-polymaking 0.8.8-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 816 kB
  • sloc: xml: 682; javascript: 155; makefile: 105; perl: 24; sh: 2
file content (52 lines) | stat: -rw-r--r-- 1,983 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#############################################################################
##
#W Objects.gd            polymaking Package      Marc Roeder
##
##  

##
##
#Y   Copyright (C) 2006 Marc Roeder 
#Y 
#Y This program is free software; you can redistribute it and/or 
#Y modify it under the terms of the GNU General Public License 
#Y as published by the Free Software Foundation; either version 2 
#Y of the License, or (at your option) any later version. 
#Y 
#Y This program is distributed in the hope that it will be useful, 
#Y but WITHOUT ANY WARRANTY; without even the implied warranty of 
#Y MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
#Y GNU General Public License for more details. 
#Y 
#Y You should have received a copy of the GNU General Public License 
#Y along with this program; if not, write to the Free Software 
#Y Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
##
DeclareCategory("IsPolymakeObject",IsObject);

DeclareRepresentation("IsPolymakeObjectRep",
        IsComponentObjectRep,
        ["dir",
         "filename",
         "knownProperties"]
        );

#
#Extracting Information:
#####################
DeclareOperation("DirectoryOfPolymakeObject",[IsPolymakeObject]);
DeclareOperation("FilenameOfPolymakeObject",[IsPolymakeObject]);
DeclareOperation("FullFilenameOfPolymakeObject",[IsPolymakeObject]);
DeclareOperation("KnownPropertiesOfPolymakeObject",[IsPolymakeObject]);
DeclareOperation("NamesKnownPropertiesOfPolymakeObject",[IsPolymakeObject]);
DeclareOperation("PropertyOfPolymakeObject",[IsPolymakeObject,IsString]);

#
#Manipulating contents of a polygon:
###############################

DeclareOperation("ClearPolymakeObject",[IsPolymakeObject]);
DeclareOperation("ClearPolymakeObject",[IsPolymakeObject,IsDenseList]);

DeclareOperation("UnbindKnownPropertyOfPolymakeObject",[IsPolymakeObject,IsString]);
DeclareOperation("WriteKnownPropertyToPolymakeObject",[IsPolymakeObject,IsString,IsObject]);