ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
dmrg::time_limit Class Reference

#include <time_limit_exception.h>

Inheritance diagram for dmrg::time_limit:

Public Member Functions

 time_limit ()
 
 time_limit (int sw, int st)
 
int sweep () const throw ()
 
int site () const throw ()
 

Detailed Description

Definition at line 35 of file time_limit_exception.h.

Constructor & Destructor Documentation

dmrg::time_limit::time_limit ( )
inline

Definition at line 37 of file time_limit_exception.h.

37 : std::runtime_error("time limit reached") {}
dmrg::time_limit::time_limit ( int  sw,
int  st 
)
inline

Definition at line 39 of file time_limit_exception.h.

40  : std::runtime_error( std::string("time limit reached. current status is [ ")
41  + std::string("sweep=") + boost::lexical_cast<std::string>(sw) + std::string(", ")
42  + std::string("site=" ) + boost::lexical_cast<std::string>(st) + std::string(" ]."))
43  , sweep_(sw)
44  , site_(st)
45  { }

Member Function Documentation

int dmrg::time_limit::site ( ) const
throw (
)
inline

Definition at line 50 of file time_limit_exception.h.

51  { return site_; }
int dmrg::time_limit::sweep ( ) const
throw (
)
inline

Definition at line 47 of file time_limit_exception.h.

48  { return sweep_; }

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