Classes | Public Member Functions | Private Attributes

Allows to pass back messages to the calling function. More...

#include <acado_types.hpp>

List of all members.

Classes

class  returnValueData

Public Member Functions

returnValueaddMessage (const char *msg)
returnValuechangeLevel (returnValueLevel level)
returnValuechangeType (returnValueType type)
returnValueLevel getLevel () const
 operator int ()
bool operator! () const
bool operator!= (returnValueType cmp_type) const
returnValueoperator= (const returnValue &old)
bool operator== (returnValueType cmp_type) const
void print ()
void printBasic ()
 returnValue ()
 returnValue (returnValueType _type)
 returnValue (int _type)
 returnValue (const returnValue &old)
 returnValue (const char *msg, returnValueLevel level=LVL_ERROR, returnValueType type=RET_UNKNOWN_BUG)
 returnValue (const char *msg, returnValueLevel level, const returnValue &old)
 ~returnValue ()

Private Attributes

returnValueDatadata
returnValueLevel level
int status
returnValueType type

Detailed Description

Allows to pass back messages to the calling function.

An instance of the class returnValue is returned by all ACADO functions for passing back messages to the calling function.

Author:
Martin Lauko, Hans Joachim Ferreau, Boris Houska

Definition at line 1119 of file acado_types.hpp.


Constructor & Destructor Documentation

Construct default returnValue.

Definition at line 422 of file acado_message_handling.cpp.

Construct returnValue only from typedef.

Definition at line 427 of file acado_message_handling.cpp.

returnValue::returnValue ( int  _type)

Construct returnValue from int, for compatibility

Definition at line 432 of file acado_message_handling.cpp.

Copy constructor with minimum performance cost. Newly constructed instance takes ownership of data.

Definition at line 439 of file acado_message_handling.cpp.

Constructor used by the ACADOERROR and similar macros.

Definition at line 410 of file acado_message_handling.cpp.

returnValue::returnValue ( const char *  msg,
returnValueLevel  level,
const returnValue old 
)

Constructor used by the ACADOERROR and similar macros. Special case. Constructs returnValue from old one, changing level and adding message

Definition at line 541 of file acado_message_handling.cpp.

Destroys data instance only if it owns it

Definition at line 510 of file acado_message_handling.cpp.


Member Function Documentation

returnValue & returnValue::addMessage ( const char *  msg)

Adds another message to the end of messages list.

Definition at line 555 of file acado_message_handling.cpp.

Change the importance level of the returned value

Definition at line 567 of file acado_message_handling.cpp.

Change the type of the returned message

Definition at line 575 of file acado_message_handling.cpp.

Definition at line 453 of file acado_message_handling.cpp.

returnValue::operator int ( )

Compatibility function, allows returnValue to be used as a number, similar to a enum.

Definition at line 503 of file acado_message_handling.cpp.

bool returnValue::operator! ( ) const

Returns true if return value type is not SUCCESSFUL_RETURN

Definition at line 474 of file acado_message_handling.cpp.

bool returnValue::operator!= ( returnValueType  cmp_type) const

Compares the returnValue type to its enum

Definition at line 460 of file acado_message_handling.cpp.

returnValue & returnValue::operator= ( const returnValue old)

Assignment operator. Left hand side instance takes ownership of data.

Definition at line 481 of file acado_message_handling.cpp.

bool returnValue::operator== ( returnValueType  cmp_type) const

Compares the returnValue type to its enum

Definition at line 467 of file acado_message_handling.cpp.

Prints all messages to the standard output.

Definition at line 584 of file acado_message_handling.cpp.

Prints only the most basic information, no messages, to the standard output.

Definition at line 600 of file acado_message_handling.cpp.


Member Data Documentation

Definition at line 1215 of file acado_types.hpp.

Definition at line 1212 of file acado_types.hpp.

int returnValue::status [private]

Definition at line 1213 of file acado_types.hpp.

Definition at line 1211 of file acado_types.hpp.


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


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 12:01:40