4.3.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
Public Member Functions
fcppt::assert_::information Class Reference

Detailed Description

Represents information gathered at the assertion side.

This class is used to construct exceptions thrown by assert macros.

Public Member Functions

FCPPT_DETAIL_SYMBOL information (fcppt::assert_::file &&file, fcppt::assert_::line line, fcppt::assert_::function &&function, fcppt::assert_::condition &&condition, fcppt::assert_::message &&message)
 Constructs the information.
 
FCPPT_DETAIL_SYMBOL fcppt::assert_::file const & file () const
 Returns the current file.
 
FCPPT_DETAIL_SYMBOL fcppt::assert_::line line () const
 Returns the line of the current file.
 
FCPPT_DETAIL_SYMBOL fcppt::assert_::function const & function () const
 Returns the current function.
 
FCPPT_DETAIL_SYMBOL fcppt::assert_::condition const & condition () const
 Returns the failed condition.
 
FCPPT_DETAIL_SYMBOL fcppt::assert_::message const & message () const
 Returns the message of the assertion.
 

Constructor & Destructor Documentation

◆ information()

FCPPT_DETAIL_SYMBOL fcppt::assert_::information::information ( fcppt::assert_::file &&  file,
fcppt::assert_::line  line,
fcppt::assert_::function &&  function,
fcppt::assert_::condition &&  condition,
fcppt::assert_::message &&  message 
)

Constructs the information.

Constructs the information from file, line, function, condition and message.

Parameters
fileThe current file
lineThe line of the current file
functionThe current function
conditionThe failed condition
messageThe message of the assertion

Member Function Documentation

◆ condition()

FCPPT_DETAIL_SYMBOL fcppt::assert_::condition const & fcppt::assert_::information::condition ( ) const

Returns the failed condition.

◆ file()

FCPPT_DETAIL_SYMBOL fcppt::assert_::file const & fcppt::assert_::information::file ( ) const

Returns the current file.

◆ function()

FCPPT_DETAIL_SYMBOL fcppt::assert_::function const & fcppt::assert_::information::function ( ) const

Returns the current function.

◆ line()

FCPPT_DETAIL_SYMBOL fcppt::assert_::line fcppt::assert_::information::line ( ) const

Returns the line of the current file.

◆ message()

FCPPT_DETAIL_SYMBOL fcppt::assert_::message const & fcppt::assert_::information::message ( ) const

Returns the message of the assertion.