ContRap-Core
Public Member Functions | Protected Attributes

crp::ArgCommand Class Reference

Class ArgCommand is a command which has a list of arguments. More...

#include <command.h>

Inheritance diagram for crp::ArgCommand:
crp::Command crp::Object crp::Declaration crp::Load crp::Selector crp::Statement

Public Member Functions

 ArgCommand (const DPtr &first=DPtr::bottom, const DPtr &second=DPtr::bottom, const DPtr &third=DPtr::bottom)
 Creates the command with its first arguments.
virtual ~ArgCommand ()
 Virtual destructor.
const DPtrfirst () const
 Returns the first argument.
size_t size () const
 Returns the number of arguments.
void add_argument (const DPtr &argument)
 Adds an argument.
SPtr< List > & get_arguments ()
 Returns the arguments.
const SPtr< List > & get_arguments () const
 Returns the arguments.

Protected Attributes

SPtr< Listarguments
 Pointer to the list.

Detailed Description

Class ArgCommand is a command which has a list of arguments.


Constructor & Destructor Documentation

crp::ArgCommand::ArgCommand ( const DPtr first = DPtr::bottom,
const DPtr second = DPtr::bottom,
const DPtr third = DPtr::bottom 
)

Creates the command with its first arguments.

Parameters:
firstFirst argument
secondSecond argument
thirdThird argument
virtual crp::ArgCommand::~ArgCommand ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

void crp::ArgCommand::add_argument ( const DPtr argument) [inline]

Adds an argument.

Parameters:
argumentArgument to add
const DPtr& crp::ArgCommand::first ( ) const [inline]

Returns the first argument.

First argument

SPtr<List>& crp::ArgCommand::get_arguments ( ) [inline]

Returns the arguments.

Returns:
List of arguments
const SPtr<List>& crp::ArgCommand::get_arguments ( ) const [inline]

Returns the arguments.

Returns:
List of arguments
size_t crp::ArgCommand::size ( ) const [inline]

Returns the number of arguments.

Returns:
Number of arguments

Field Documentation

Pointer to the list.


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