Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

lextvar.hpp File Reference


Detailed Description

Access global C++ variables from Lisp.

This file defines the operator&(LFunctionConstructor,T)

Definition in file lextvar.hpp.

#include "../genlisp/extvar.hpp"

Include dependency graph for lextvar.hpp:

Go to the source code of this file.

Functions

template<class Tt>
SReference operator & (const LFunctionConstructor &, Tt &var)
 Lisp external variable expression constructor.


Function Documentation

template<class Tt>
class SReference operator & const LFunctionConstructor ,
Tt &  var
 

Lisp external variable expression constructor.

Operator to form a pair of SExpressionIndirectAccessor and SExpressionIndirect, to be used with LFunctionConstructor. The operator takes a C++ lvalue of either any integer, float, or SString or SReference type. The operator forms a dotted pair in which the car is a SExpressionIndirectAccessor object and the cdr is a SExpressionIndirect object which incapsulates the given lvalue. Being evaluated, such a pair returns the current value of the variable; being used as the first argument of SETF, it performs the appropriate assignment.

Definition at line 42 of file lextvar.hpp.


Generated on Tue Dec 18 00:39:56 2007 for InteLib by  doxygen 1.4.1