monotone

monotone Mtn Source Tree

Root/vocab_terms.hh

1// copyright (C) 2002, 2003 graydon hoare <graydon@pobox.com>
2// all rights reserved.
3// licensed to the public under the terms of the GNU GPL (>= 2)
4// see the file COPYING for details
5
6// this fragment is included into both vocab.hh and vocab.cc,
7// in order to facilitate external instantiation of most of the
8// vocabulary, minimize code duplication, speed up compilation, etc.
9
10ATOMIC_NOVERIFY(external); // "external" string in unknown system charset
11ATOMIC_NOVERIFY(utf8); // unknown string in UTF8 charset
12ATOMIC(ace); // unknown string in ACE form
13
14ATOMIC_NOVERIFY(id); // hash of data
15ATOMIC_NOVERIFY(data); // meaningless blob
16ATOMIC_NOVERIFY(delta); // xdelta between 2 datas
17ATOMIC_NOVERIFY(inodeprint); // fingerprint of an inode
18
19ATOMIC(local_path); // non-absolute file
20ATOMIC(file_path); // non-absolute, non-bookeeping file
21
22ATOMIC(cert_name); // symbol-of-your-choosing
23ATOMIC_NOVERIFY(cert_value); // symbol-of-your-choosing
24
25// some domains: "database" (+ default_server, default_collection),
26// server_key (+ servername/key)
27// branch_alias (+ short form/long form)
28// trust_seed (+ branch/seed)
29ATOMIC_NOVERIFY(var_domain); // symbol-of-your-choosing
30ATOMIC_NOVERIFY(var_name); // symbol-of-your-choosing
31ATOMIC_NOVERIFY(var_value); // symbol-of-your-choosing
32
33ATOMIC(rsa_keypair_id); // keyname@domain.you.own
34ATOMIC_NOVERIFY(rsa_pub_key); // some nice numbers
35ATOMIC_NOVERIFY(rsa_priv_key); // some nice numbers
36ATOMIC_NOVERIFY(rsa_sha1_signature); // some other nice numbers
37
38DECORATE(revision); // thing associated with a revision
39DECORATE(manifest); // thing associated with a manifest
40DECORATE(file); // thing associated with a file
41DECORATE(epoch); // thing associated with an epoch
42
43ENCODING(gzip); // thing which is gzipped
44ENCODING(hexenc); // thing which is hex-encoded
45ENCODING(base64); // thing which is base64-encoded
46ENCODING(arc4); // thing which is arc4-encrypted
47
48ATOMIC_NOVERIFY(prefix); // raw encoding of a merkle tree prefix
49ATOMIC_NOVERIFY(merkle); // raw encoding of a merkle tree node
50
51// instantiate those bits of the template vocabulary actually in use.
52
53EXTERN template class hexenc<id>;
54EXTERN template class revision< hexenc<id> >;
55EXTERN template class manifest< hexenc<id> >;
56EXTERN template class file< hexenc<id> >;
57EXTERN template class epoch< hexenc<id> >;
58
59EXTERN template class hexenc<inodeprint>;
60
61EXTERN template class hexenc<data>;
62EXTERN template class epoch< hexenc<data> >;
63
64EXTERN template class gzip<data>;
65EXTERN template class base64< gzip<data> >;
66
67EXTERN template class revision< data >;
68EXTERN template class manifest< data >;
69EXTERN template class file< data >;
70
71EXTERN template class gzip<delta>;
72EXTERN template class base64< gzip<delta> >;
73
74EXTERN template class manifest< delta >;
75EXTERN template class file< delta >;
76
77EXTERN template class arc4<rsa_priv_key>;
78EXTERN template class base64< arc4<rsa_priv_key> >;
79EXTERN template class base64< rsa_pub_key >;
80EXTERN template class base64< rsa_sha1_signature >;
81EXTERN template class hexenc< rsa_sha1_signature >;
82EXTERN template class base64< cert_value >;
83
84EXTERN template class base64< var_name >;
85EXTERN template class base64< var_value >;
86
87EXTERN template class hexenc<prefix>;
88EXTERN template class base64<merkle>;
89EXTERN template class base64<data>;
90
91// instantiate those bits of the stream operator vocab (again) actually in
92// use. "again" since stream operators are friends, not members.
93
94EXTERN template std::ostream & operator<< <>(std::ostream &, hexenc<id> const &);
95EXTERN template std::ostream & operator<< <>(std::ostream &, revision< hexenc<id> > const &);
96EXTERN template std::ostream & operator<< <>(std::ostream &, manifest< hexenc<id> > const &);
97EXTERN template std::ostream & operator<< <>(std::ostream &, file< hexenc<id> > const &);
98EXTERN template std::ostream & operator<< <>(std::ostream &, epoch< hexenc<id> > const &);
99
100EXTERN template std::ostream & operator<< <>(std::ostream &, hexenc<inodeprint> const &);
101
102EXTERN template std::ostream & operator<< <>(std::ostream &, hexenc<data> const &);
103EXTERN template std::ostream & operator<< <>(std::ostream &, epoch< hexenc<data> > const &);
104
105EXTERN template std::ostream & operator<< <>(std::ostream &, gzip<data> const &);
106EXTERN template std::ostream & operator<< <>(std::ostream &, base64< gzip<data> > const &);
107EXTERN template std::ostream & operator<< <>(std::ostream &, revision< base64< gzip<data> > > const &);
108EXTERN template std::ostream & operator<< <>(std::ostream &, manifest< base64< gzip<data> > > const &);
109EXTERN template std::ostream & operator<< <>(std::ostream &, file< base64< gzip<data> > > const &);
110
111EXTERN template std::ostream & operator<< <>(std::ostream &, gzip<delta> const &);
112EXTERN template std::ostream & operator<< <>(std::ostream &, base64< gzip<delta> > const &);
113EXTERN template std::ostream & operator<< <>(std::ostream &, manifest< base64< gzip<delta> > > const &);
114EXTERN template std::ostream & operator<< <>(std::ostream &, file< base64< gzip<delta> > > const &);
115
116EXTERN template std::ostream & operator<< <>(std::ostream &, arc4<rsa_priv_key> const &);
117EXTERN template std::ostream & operator<< <>(std::ostream &, base64< arc4<rsa_priv_key> > const &);
118EXTERN template std::ostream & operator<< <>(std::ostream &, base64< rsa_pub_key > const &);
119EXTERN template std::ostream & operator<< <>(std::ostream &, base64< rsa_sha1_signature > const &);
120EXTERN template std::ostream & operator<< <>(std::ostream &, hexenc< rsa_sha1_signature > const &);
121EXTERN template std::ostream & operator<< <>(std::ostream &, base64< cert_value > const &);
122
123EXTERN template std::ostream & operator<< <>(std::ostream &, hexenc<prefix> const &);
124EXTERN template std::ostream & operator<< <>(std::ostream &, base64<merkle> const &);

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status