2005/5/9

     
 

class LispList

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lisp::LispList Class Reference

#include <LispList.h>

Inheritance diagram for acdk::lisp::LispList:

acdk::lisp::LispVar acdk::io::Serializable acdk::lang::Object acdk::lang::Cloneable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Member Functions

 LispList (IN(RLispVar) car=Nil, IN(RLispList) cdr=Nil)
 LispList (int size)
virtual acdk::lang::Object clone ()
virtual acdk::lang::Object clone (sys::Allocator *alc)
 RETOUT (RLispVar) car()
 RETOUT (RLispList) cdr()
void setCdr (IN(RLispList) lst)
void setCar (IN(RLispVar) var)
RLispList append (IN(RLispVar) var)
RLispList push (IN(RLispVar) var)
RLispList push (IN(acdk::lang::Object) var)
RLispList unshift (IN(acdk::lang::Object) var)
RLispList unshift (IN(RLispVar) var)
RLispVar pop ()
RString toString ()
 converts it to string without paranteses or white spaces

RString toCode ()
 converts it to Lisp code

int length ()
RLispVar get (int i)
void set (int i, IN(RLispVar) var)
 RETOUT (RLispVar) last()

Static Public Member Functions

acdk::lang::Object create_instance ()
 for serialization


Public Attributes

RLispVar _car
RLispList _cdr

Static Private Attributes

RLispVar _nilVar
 remains always nil.


Constructor & Destructor Documentation

acdk::lisp::LispList::LispList IN(RLispVar car = Nil,
IN(RLispList cdr = Nil
[inline]
 

acdk::lisp::LispList::LispList int  size  )  [inline]
 


Member Function Documentation

RLispList acdk::lisp::LispList::append IN(RLispVar var  ) 
 

virtual acdk::lang::Object acdk::lisp::LispList::clone sys::Allocator *  alc  )  [virtual]
 

Implements acdk::lisp::LispVar.

virtual acdk::lang::Object acdk::lisp::LispList::clone  )  [inline, virtual]
 

Implements acdk::lisp::LispVar.

acdk::lang::Object acdk::lisp::LispList::create_instance  )  [inline, static]
 

for serialization

Reimplemented from acdk::lang::Object.

RLispVar acdk::lisp::LispList::get int  i  ) 
 

int acdk::lisp::LispList::length  ) 
 

RLispVar acdk::lisp::LispList::pop  ) 
 

RLispList acdk::lisp::LispList::push IN(acdk::lang::Object var  ) 
 

RLispList acdk::lisp::LispList::push IN(RLispVar var  )  [inline]
 

acdk::lisp::LispList::RETOUT RLispVar   )  [inline]
 

acdk::lisp::LispList::RETOUT RLispList   )  [inline]
 

acdk::lisp::LispList::RETOUT RLispVar   )  [inline]
 

void acdk::lisp::LispList::set int  i,
IN(RLispVar var
 

void acdk::lisp::LispList::setCar IN(RLispVar var  )  [inline]
 

void acdk::lisp::LispList::setCdr IN(RLispList lst  )  [inline]
 

RString acdk::lisp::LispList::toCode  )  [virtual]
 

converts it to Lisp code

Implements acdk::lisp::LispVar.

RString acdk::lisp::LispList::toString  )  [virtual]
 

converts it to string without paranteses or white spaces

Implements acdk::lisp::LispVar.

RLispList acdk::lisp::LispList::unshift IN(RLispVar var  ) 
 

RLispList acdk::lisp::LispList::unshift IN(acdk::lang::Object var  ) 
 


Member Data Documentation

RLispVar acdk::lisp::LispList::_car
 

RLispList acdk::lisp::LispList::_cdr
 

RLispVar acdk::lisp::LispList::_nilVar [static, private]
 

remains always nil.

Used for Nil references.