56 lines
958 B
C++
56 lines
958 B
C++
#include "Statement/CompoundStatement.hpp"
|
|
|
|
unsigned int CompoundStatement::size() const
|
|
{
|
|
return _body.size();
|
|
}
|
|
|
|
bool CompoundStatement::empty() const
|
|
{
|
|
return _body.empty();
|
|
}
|
|
|
|
void CompoundStatement::setLastStatement(Statement *S)
|
|
{
|
|
_body.push_back(S);
|
|
}
|
|
|
|
const_body_iterator CompoundStatement::body_begin() const
|
|
{
|
|
return _body.begin();
|
|
}
|
|
|
|
body_iterator CompoundStatement::body_begin()
|
|
{
|
|
return _body.begin();
|
|
}
|
|
|
|
const_body_iterator CompoundStatement::body_end() const
|
|
{
|
|
return _body.end();
|
|
}
|
|
|
|
body_iterator CompoundStatement::body_end()
|
|
{
|
|
return _body.end();
|
|
}
|
|
|
|
const_reverse_body_iterator CompoundStatement::body_rbegin() const
|
|
{
|
|
return _body.rbegin();
|
|
}
|
|
|
|
reverse_body_iterator CompoundStatement::body_rbegin()
|
|
{
|
|
return _body.rbegin();
|
|
}
|
|
|
|
const_reverse_body_iterator CompoundStatement::body_rend() const
|
|
{
|
|
return _body.rend();
|
|
}
|
|
|
|
reverse_body_iterator CompoundStatement::body_rend()
|
|
{
|
|
return _body.rend();
|
|
} |