C++Memo  1.0-RC
Generic framework for memoization, providing automatic parallelization.
 All Classes Files Functions
Public Member Functions | Friends | List of all members
cppmemo::CircularDependencyException< Key > Class Template Reference

This exception is thrown when a circular dependency among the keys is detected. More...

#include <cppmemo.hpp>

Inheritance diagram for cppmemo::CircularDependencyException< Key >:

Public Member Functions

const char * what () const CPPMEMO_NOEXCEPT
 Returns a C string identifying the exception.
 
const std::vector< Key > & getKeysStack () const
 Returns the keys stack at the time the circular dependency was detected. More...
 

Friends

template<typename K , typename V , typename KH1 , typename KH2 , typename KE >
class CppMemo
 

Detailed Description

template<typename Key>
class cppmemo::CircularDependencyException< Key >

This exception is thrown when a circular dependency among the keys is detected.

This requires circular dependency detection to be enabled (via the detectCircularDependencies argument of CppMemo constructor).

Template Parameters
Keythe type of the keys

Member Function Documentation

template<typename Key >
const std::vector<Key>& cppmemo::CircularDependencyException< Key >::getKeysStack ( ) const
inline

Returns the keys stack at the time the circular dependency was detected.

Returns
The keys stack (from bottom to top) as a vector

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