Kryptostack
Public Member Functions | Private Attributes | List of all members
SOo Class Reference

Semantic Object Operator unregistered section. More...

#include <sox.h>

Inheritance diagram for SOo:
Inheritance graph
[legend]
Collaboration diagram for SOo:
Collaboration graph
[legend]

Public Member Functions

 SOo (void(*p_f)(Context &), const string &p_s, size_t p_stackusage)
 ctor.
 
public_accessor size_t getStackusage () const
 Getter for stackusage_.
 
public_virtual OTCode ot () const override
 Returns an OTCode. More...
 
- Public Member Functions inherited from SOO
 SOO (void(*p_f)(Context &), const string &p_s)
 Ctor.
 
public_virtual SOOdup () const override
 Creates a new instance as copy following the PostScript definition. More...
 
string opequal () const override
 For operators '=' and 'stack'. More...
 
OTCode ot () const override
 Returns an OTCode. More...
 
bool equal (const SO *p_other) const override
 Equality. More...
 
public_other void exec (Context &k)
 Call the implementation of the operator.
 
- Public Member Functions inherited from SO
 SO (bool p_exec=false)
 Ctor.
 
virtual ~SO ()
 Virtual dtor. More...
 
public_accessor bool getExec () const
 Getter for exec_.
 
void setExec (bool p_exec)
 Setter for exec_.
 
virtual size_t getSize () const
 Getter for the number of characters or number of objects. More...
 
virtual public_virtual SOdup () const =0
 Creates a new instance as copy following the PostScript definition. More...
 
virtual SOclone () const
 Creates a new instance as copy with deep cloning. More...
 
virtual string opequal () const =0
 For operators '=' and 'stack'. More...
 
virtual string opequalequal (class Context &) const
 For operators '==' and 'pstack'. More...
 
virtual OTCode ot () const =0
 Returns an OTCode. More...
 
virtual bool equal (const SO *p_other) const =0
 Equality. More...
 
- Public Member Functions inherited from Counter< SO >
 Counter ()
 Ctor.
 

Private Attributes

size_t stackusage_
 The number of objects needed on stack for execution.
 

Additional Inherited Members

- Static Public Member Functions inherited from Counter< SO >
static int getTotalCounter ()
 Static getter for created objects.
 
static int getAliveCounter ()
 Static getter for objects alive.
 
- Protected Attributes inherited from SO
bool exec_ = false
 All SOs have executive vs. More...
 

Detailed Description

Semantic Object Operator unregistered section.

Unregistered operator objects which are used by the interpreter for looping operators: for, forall, repeat The operator object links to the implementation code of an operator.

Member Function Documentation

◆ ot()

public_virtual OTCode SOo::ot ( ) const
inlineoverridevirtual

Returns an OTCode.

A "manual" implementation of polymorphism, where C++-polymorphisms fail

Returns
char ... OTCode of the SO

Reimplemented from SOO.


The documentation for this class was generated from the following file: