#include <sexpress.hpp>
Inheritance diagram for SExpressionCons:
The class represents a dotted pair ("cons")
Definition at line 606 of file sexpress.hpp.
Public Member Functions | |
SExpressionCons (const SReference &acar, const SReference &acdr) | |
~SExpressionCons () | |
SReference & | Car () |
SReference & | Cdr () |
const SReference & | Car () const |
const SReference & | Cdr () const |
virtual SExpression * | Clone () const |
Clone a changeable object. | |
SString | CoreTextRepresentation (const char *delim, const char *dotdelim, SString(*repfun)(const SReference &)=0) const |
virtual SString | TextRepresentation () const |
const IntelibTypeId & | TermType () const |
Actual S-expression type. | |
bool | IsChangeable () const |
Can it be changed during the lifetime of the object? | |
virtual bool | SpecificEql (const SExpression *) const |
Are the two objects EQL (while not EQ). | |
Static Public Attributes | |
static IntelibTypeId | TypeId |
Identifier for the set of all possible S-expressions. | |
Protected Member Functions | |
SExpressionCons (const SReference &acar, const SReference &acdr, const IntelibTypeId &tid) | |
bool | CanDie () |
Is it OK to delete the object now? |
|
Definition at line 612 of file sexpress.hpp. |
|
Definition at line 618 of file sexpress.hpp. References TypeId. |
|
Definition at line 620 of file sexpress.hpp. |
|
|
|
Definition at line 624 of file sexpress.hpp. |
|
Definition at line 625 of file sexpress.hpp. |
|
Clone a changeable object. The method should return the pointer created with new
Reimplemented from SExpression. Reimplemented in SExpressionBacklink. |
|
Used as a subroutine of TextRepresentation() to implement a representation of a part of a list
Referenced by SchReference::TextRepresentation(), and LReference::TextRepresentation(). |
|
List and dotted lists are represented just like in a real Lisp, that is, with traditional Lisp syntax. Implements SExpression. |
|
Actual S-expression type.
Definition at line 195 of file sexpress.hpp. Referenced by SReference::DynamicCastGetPtr(), SchReference::IsEql(), LReference::IsEql(), SReference::SimpleCastGetPtr(), SchReference::TextRepresentation(), and LReference::TextRepresentation(). |
|
Can it be changed during the lifetime of the object?
Definition at line 198 of file sexpress.hpp. References IntelibTypeId::IsChangeable(). |
|
Are the two objects EQL (while not EQ). This function is overriden by those SExpressions able to be EQL while being not EQ.
Reimplemented in SExpressionInt, SExpressionFloat, SExpressionChar, and SExpressionString. Definition at line 235 of file sexpress.hpp. Referenced by SchReference::IsEql(), and LReference::IsEql(). |
|
Is it OK to delete the object now? Our children have no access to the private attribute RefCount and should never need it except when checking if the destruction is not an error. This solves the problem. Definition at line 53 of file refcount.hpp. |
|
Identifier for the set of all possible S-expressions.
Reimplemented from SExpression. Reimplemented in SExpressionBacklink. Referenced by SExpressionCons(). |