#include <Grid.h>
Public Member Functions | |
FrontierArc () | |
Default constructor. | |
FrontierArc (const FrontierArc &arc) | |
Copy constructor. | |
FrontierArc | operator= (const FrontierArc &arc) |
Operator =. | |
DubInt | operator[] (size_t index) const |
Operator [] for _vec. | |
vector< DubInt >::iterator | begin () |
Makes public the "begin()" member of _vec camp. | |
vector< DubInt >::iterator | end () |
Makes public the "end()" member of _vec camp. | |
void | push_back (DubInt cell) |
Makes public the "push_back()" member of _vec camp. | |
void | pop_back () |
Makes public the "pop_back()" member of _vec camp. | |
void | insert (vector< DubInt >::iterator pos, DubInt value) |
Makes public the "insert()" member of _vec camp. | |
void | insert (vector< DubInt >::iterator pos, vector< DubInt >::iterator begin, vector< DubInt >::iterator end) |
Makes public the "insert()" member of _vec camp. | |
vector< DubInt >::iterator | erase (vector< DubInt >::iterator position) |
Makes public the "erase()" member of _vec camp. | |
vector< DubInt > | vec () |
Returns _vec camp. | |
int | size () |
Makes public the "size()" member of _vec camp. | |
void | setIsRangeEdge () |
Sets _isRange flag. | |
void | unsetIsRangeEdge () |
Unsets _isRangeEdge flag. | |
bool | isRangeEdge () |
Returns _isRangeEdge flag. | |
string | print () |
Prints a message about the status of _isRangeEdge and the indexes of the cells belonging to the frontier arc. |
Grid reapresentation for a frontier arc of robot's Local Safe Region
FrontierArc::FrontierArc | ( | ) |
Default constructor.
FrontierArc::FrontierArc | ( | const FrontierArc & | arc | ) |
Copy constructor.
FrontierArc FrontierArc::operator= | ( | const FrontierArc & | arc | ) |
Operator =.
DubInt FrontierArc::operator[] | ( | size_t | index | ) | const |
Operator [] for _vec.
vector< DubInt >::iterator FrontierArc::begin | ( | ) |
Makes public the "begin()" member of _vec camp.
vector< DubInt >::iterator FrontierArc::end | ( | ) |
Makes public the "end()" member of _vec camp.
void FrontierArc::push_back | ( | DubInt | cell | ) |
Makes public the "push_back()" member of _vec camp.
void FrontierArc::pop_back | ( | ) |
Makes public the "pop_back()" member of _vec camp.
Makes public the "insert()" member of _vec camp.
void FrontierArc::insert | ( | vector< DubInt >::iterator | pos, | |
vector< DubInt >::iterator | begin, | |||
vector< DubInt >::iterator | end | |||
) |
Makes public the "insert()" member of _vec camp.
Makes public the "erase()" member of _vec camp.
vector< DubInt > FrontierArc::vec | ( | ) |
Returns _vec camp.
int FrontierArc::size | ( | ) |
Makes public the "size()" member of _vec camp.
void FrontierArc::setIsRangeEdge | ( | ) |
Sets _isRange flag.
void FrontierArc::unsetIsRangeEdge | ( | ) |
Unsets _isRangeEdge flag.
bool FrontierArc::isRangeEdge | ( | ) |
Returns _isRangeEdge flag.
string FrontierArc::print | ( | ) |
Prints a message about the status of _isRangeEdge and the indexes of the cells belonging to the frontier arc.