ContRap-Core
Public Member Functions

crp::Declaration Class Reference

Class declaration is represents a list of assignments or identifiers, where each of them declares a local identifier. More...

#include <command.h>

Inheritance diagram for crp::Declaration:
crp::ArgCommand crp::Command crp::Object

Public Member Functions

 Declaration (const DPtr &object=DPtr::bottom)
 Constructs a new declaration.
virtual ~Declaration ()
 Virtual destructor.
virtual CommandType get_command_type () const
 Returns the enumerated type of the command.
virtual std::string to_string () const
 Converts the object to a non-formatted string.

Detailed Description

Class declaration is represents a list of assignments or identifiers, where each of them declares a local identifier.


Constructor & Destructor Documentation

crp::Declaration::Declaration ( const DPtr object = DPtr::bottom)

Constructs a new declaration.

Parameters:
objectObject to declare
virtual crp::Declaration::~Declaration ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual CommandType crp::Declaration::get_command_type ( ) const [inline, virtual]

Returns the enumerated type of the command.

Returns:
Type of the object

Implements crp::Command.

virtual std::string crp::Declaration::to_string ( ) const [virtual]

Converts the object to a non-formatted string.

This method is thought to be used for debugging purposes only.

Returns:
String representation of the object

Reimplemented from crp::Command.


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