Qore Programming Language  0.8.9
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ReferenceArgumentHelper.h
1 /* -*- mode: c++; indent-tabs-mode: nil -*- */
2 /*
3  ReferenceArgumentHelper.h
4 
5  Qore Programming Language
6 
7  Copyright 2003 - 2013 David Nichols
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23 
24 #ifndef _QORE_REFERENCEARGUMENTHELPER_H
25 
26 #define _QORE_REFERENCEARGUMENTHELPER_H
27 
29 
50  private:
51  struct lvih_intern *priv;
52 
55 
57  DLLLOCAL ReferenceArgumentHelper& operator=(const ReferenceArgumentHelper&);
58 
59  public:
61 
65  DLLEXPORT ReferenceArgumentHelper(AbstractQoreNode *val, ExceptionSink *xsink);
66 
68  DLLEXPORT ~ReferenceArgumentHelper();
69 
71 
74  DLLEXPORT AbstractQoreNode *getArg() const;
75 
77 
80  DLLEXPORT AbstractQoreNode *getOutputValue();
81 };
82 
83 #endif
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:47
allows a reference to be passed as an argument to Qore code
Definition: ReferenceArgumentHelper.h:49
DLLEXPORT AbstractQoreNode * getOutputValue()
returns the value of the reference and leaves the reference empty, the caller owns the reference retu...
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
DLLEXPORT ~ReferenceArgumentHelper()
frees all memory still managed by the object
DLLEXPORT AbstractQoreNode * getArg() const
returns the reference to the fake local variable for use in an argument list, the caller owns the ref...