Public Member Functions | Private Attributes | List of all members
stan::test::unit::instrumented_interrupt Class Reference

#include "test/unit/services/instrumented_callbacks.hpp"

Inheritance diagram for stan::test::unit::instrumented_interrupt:

Public Member Functions

 instrumented_interrupt ()
void operator() ()
unsigned int call_count ()

Private Attributes

unsigned int counter_

Detailed Description

instrumented_interrupt counts the number of times it is called and makes the count accessible via a method.

Definition at line 21 of file instrumented_callbacks.hpp.

Constructor & Destructor Documentation

stan::test::unit::instrumented_interrupt::instrumented_interrupt ( )

Definition at line 23 of file instrumented_callbacks.hpp.

Member Function Documentation

unsigned int stan::test::unit::instrumented_interrupt::call_count ( )

Definition at line 28 of file instrumented_callbacks.hpp.

References counter_.

Referenced by TEST_F().

void stan::test::unit::instrumented_interrupt::operator() ( void  )

Callback function.

This function is called by the algorithms allowing the interfaces to break when necessary.

Reimplemented from stan::callbacks::interrupt.

Definition at line 26 of file instrumented_callbacks.hpp.

References counter_.

Member Data Documentation

unsigned int stan::test::unit::instrumented_interrupt::counter_

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