Edinburgh Speech Tools
2.1-release
EST_TDequeI.h
Go to the documentation of this file.
1
2
/************************************************************************/
3
/* */
4
/* Centre for Speech Technology Research */
5
/* University of Edinburgh, UK */
6
/* Copyright (c) 1996,1997 */
7
/* All Rights Reserved. */
8
/* */
9
/* Permission is hereby granted, free of charge, to use and distribute */
10
/* this software and its documentation without restriction, including */
11
/* without limitation the rights to use, copy, modify, merge, publish, */
12
/* distribute, sublicense, and/or sell copies of this work, and to */
13
/* permit persons to whom this work is furnished to do so, subject to */
14
/* the following conditions: */
15
/* 1. The code must retain the above copyright notice, this list of */
16
/* conditions and the following disclaimer. */
17
/* 2. Any modifications must be clearly marked as such. */
18
/* 3. Original authors' names are not deleted. */
19
/* 4. The authors' names are not used to endorse or promote products */
20
/* derived from this software without specific prior written */
21
/* permission. */
22
/* */
23
/* THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK */
24
/* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
25
/* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
26
/* SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE */
27
/* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
28
/* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
29
/* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
30
/* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
31
/* THIS SOFTWARE. */
32
/* */
33
/*************************************************************************/
34
35
36
#ifndef __EST_TDEQ_I_H__
37
#define __EST_TDEQ_I_H__
38
39
/** Instantiate rules for list template.
40
*
41
* @author Richard Caley <rjc@cstr.ed.ac.uk>
42
* @version $Id: EST_TDequeI.h,v 1.4 2006/07/19 21:52:12 awb Exp $
43
*/
44
45
// Instantiation Macros
46
47
// the typedef is purely to get the type name through the following macro.
48
49
#define Instantiate_TDEQ_T(T, TAG) \
50
template class EST_TDeque<T>;
51
52
#define Instantiate_TDEQ(T) Instantiate_TDEQ_T(T, T)
53
54
#define Declare_TDEQ_T(T, TAG) \
55
template <> const T *EST_TDeque< T >::Filler=NULL;
56
57
#define Declare_TDEQ_Base_T(T, FILLER ,TAG) \
58
const T TAG ## _deq_filler=FILLER; \
59
template <> const T *EST_TDeque< T >::Filler=& TAG ## _deq_filler;
60
61
62
#define Declare_TDEQ_Class_T(T, FILLER,TAG) \
63
const T TAG ## _deq_filler(FILLER); \
64
template <> const T *EST_TDeque< T >::Filler=& TAG ## _deq_filler;
65
66
#define Declare_TDEQ(T) Declare_TDEQ_T(T, T)
67
68
#define Declare_TDEQ_Base(T, FILLER) Declare_TDEQ_Base_T(T, FILLER, T)
69
#define Declare_TDEQ_Class(T, FILLER) Declare_TDEQ_Class_T(T, FILLER, T)
70
71
#endif
72
include
instantiate
EST_TDequeI.h
Generated on Fri Oct 6 2017 18:25:28 for Edinburgh Speech Tools by
1.8.11