PetaVision
Alpha
Main Page
Data Structures
Response.hpp
1
/*
2
* Response.cpp
3
*
4
* Created on Jan 22, 2018
5
*
6
* The possible return values of the notify and response functions
7
* in the observer pattern.
8
*/
9
10
#ifndef RESPONSE_HPP_
11
#define RESPONSE_HPP_
12
13
namespace
PV
{
14
31
namespace
Response {
32
33
enum
Status { SUCCESS, NO_ACTION, PARTIAL, POSTPONE };
34
43
Status
operator+
(Status
const
&a, Status
const
&b);
44
49
static
bool
completed
(Status &a) {
return
a == SUCCESS or a == NO_ACTION; }
50
51
}
// namespace PV
52
53
}
// namespace PV
54
55
#endif // RESPONSE_HPP_
PV::Response::completed
static bool completed(Status &a)
Definition:
Response.hpp:49
PV::Response::operator+
Status operator+(Status const &a, Status const &b)
Definition:
Response.cpp:19
PV
Definition:
CheckpointableFileStream.cpp:3
OpenPV
src
observerpattern
Response.hpp
Generated by
1.8.11