#include <YStatement.h>
List of all members.
Private Attributes |
| YBlockPtr | m_block |
Detailed Description
Constructor & Destructor Documentation
| YSBlock::YSBlock |
( |
YBlockPtr |
block, |
|
|
int |
line = 0 |
|
) |
| |
Member Function Documentation
| YCPValue YSBlock::evaluate |
( |
bool |
cse = false | ) |
|
|
virtual |
| virtual ykind YSBlock::kind |
( |
| ) |
const |
|
inlinevirtual |
Kind of this YCode. This method must be reimplemented in the inherited classes.
- Returns:
- the YCode kind
Implements YCode.
References YCode::ysBlock.
| std::ostream & YSBlock::toStream |
( |
std::ostream & |
str | ) |
const |
|
virtual |
Write YCP code to a byte stream (bytecode implementation). Every class inheriting from YCode must reimplement this method.
- Parameters:
-
| str | byte stream to store into |
- Returns:
- byte stream for chaining writing bytecode (str)
Reimplemented from YStatement.
References m_block.
| string YSBlock::toString |
( |
void |
| ) |
const |
|
virtual |
Return ASCII represtation of this YCP code.
- Returns:
- ASCII string representation
Reimplemented from YStatement.
References m_block.
Referenced by evaluate().
| std::ostream & YSBlock::toXml |
( |
std::ostream & |
str, |
|
|
int |
indent |
|
) |
| const |
|
virtual |
Write YCP code as XML representation. Every class inheriting from YCode must reimplement this method.
- Parameters:
-
| str | string stream to store into |
| indend | indentation level for pretty print |
- Returns:
- string stream for chaining writing XML (str)
Reimplemented from YStatement.
References m_block.
| constTypePtr YSBlock::type |
( |
| ) |
const |
|
inlinevirtual |
Return type of this YCP code (interesting mostly for function calls).
- Returns:
- type of the value to be returned after calling evaluate
Reimplemented from YStatement.
References Type::Void.
Member Data Documentation
| YBlockPtr YSBlock::m_block |
|
private |
The documentation for this class was generated from the following files: