Gazebo Fuel_tools

API Reference

7.3.1
Result Class Reference

Class describing a result of an operation. More...

#include <Result.hh>

Public Member Functions

 Result ()
 Default constructor. More...
 
 Result (const Result &_result)
 Copy constructor. More...
 
 Result (const ResultType _type)
 Constructor. More...
 
 Result (Result &&_result) noexcept
 Move constructor. More...
 
 ~Result ()
 Destructor. More...
 
virtual operator bool () const
 Operator bool returns true if operation was successful. More...
 
Resultoperator= (const Result &_result)
 Copy assignment operator. More...
 
Resultoperator= (Result &&_result) noexcept
 Move assignment operator. More...
 
virtual std::string ReadableResult () const
 Get human readable result string. More...
 
ResultType Type () const
 Get the type of result. More...
 

Detailed Description

Class describing a result of an operation.

Constructor & Destructor Documentation

◆ Result() [1/4]

Result ( )

Default constructor.

◆ ~Result()

~Result ( )

Destructor.

◆ Result() [2/4]

Result ( const ResultType  _type)
explicit

Constructor.

Parameters
[in]_typeResult type

◆ Result() [3/4]

Result ( const Result _result)

Copy constructor.

Parameters
[in]_resultResult to copy.

◆ Result() [4/4]

Result ( Result &&  _result)
noexcept

Move constructor.

Parameters
[in]_resultResult to move.

Member Function Documentation

◆ operator bool()

virtual operator bool ( ) const
virtual

Operator bool returns true if operation was successful.

Returns
True if the operation was successful.

◆ operator=() [1/2]

Result& operator= ( const Result _result)

Copy assignment operator.

Parameters
[in]_resultResult to copy.

◆ operator=() [2/2]

Result& operator= ( Result &&  _result)
noexcept

Move assignment operator.

Parameters
[in]_resultResult component to move.
Returns
Reference to this.

◆ ReadableResult()

virtual std::string ReadableResult ( ) const
virtual

Get human readable result string.

Returns
The result string.

◆ Type()

ResultType Type ( ) const

Get the type of result.

Returns
The type of result.

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