coan  6.0.1
A C/C++ Configuration Analyzer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
formal_parameter_list.h
Go to the documentation of this file.
1 #ifndef FORMAL_PARAMETER_LIST_H
2 #define FORMAL_PARAMETER_LIST_H
3 #pragma once
4 /***************************************************************************
5  * Copyright (C) 2007-2013 Mike Kinghan, imk@burroingroingjoing.com *
6  * All rights reserved. *
7  * *
8  * Redistribution and use in source and binary forms, with or without *
9  * modification, are permitted provided that the following conditions *
10  * are met: *
11  * *
12  * Redistributions of source code must retain the above copyright *
13  * notice, this list of conditions and the following disclaimer. *
14  * *
15  * Redistributions in binary form must reproduce the above copyright *
16  * notice, this list of conditions and the following disclaimer in the *
17  * documentation and/or other materials provided with the distribution. *
18  * *
19  * Neither the name of Mike Kinghan nor the names of its contributors *
20  * may be used to endorse or promote products derived from this software *
21  * without specific prior written permission. *
22  * *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
24  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *
25  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS *
26  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE *
27  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, *
28  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, *
29  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS *
30  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED *
31  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,*
32  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF *
33  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
34  * DAMAGE. *
35  * *
36  **************************************************************************/
37 #include "parameter_list_base.h"
38 
47 
50 
53  : base(parms){}
54 
62  explicit formal_parameter_list(size_t n = 0)
63  : base(n){}
64 
72  template<class CharSeq>
74  read(chew);
75  }
76 
87  template<class CharSeq>
88  void read(chewer<CharSeq> & chew);
89 
90 private:
91 
92  using parameter_list_base::none;
93  using parameter_list_base::empty_param;
94  using parameter_list_base::unclosed;
95 
96 };
97 
98 #endif //EOF
formal_parameter_list(size_t n=0)
Construct for n arguments.
template struct innards::parameter_list_base<Tag> generically defines a common interface of types rep...
parameter_list_base(size_t n=0)
Constructor for n parameters.
void read(chewer< CharSeq > &chew)
Read the formal_parameter_list from a chewer<CharSeq>
formal_parameter_list(parameter_list_base const &parms)
Explicitly construct from a parameter_list_base
`template struct chewer<CharSeq> is a cursor-like type that is associated with a character-sequence t...
Definition: chew.h:248
struct formal_parameter_list encapsulates a list of formal macro parameters.
formal_parameter_list(chewer< CharSeq > &chew)
Explicitly construct given a chewer<CharSeq>