blob: 1b99463ec4843cfa18c098a59426e927c85d4d7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/**
* Countable.h
*
* "Interface" that can be "implemented" by your class. If you do, you
* create your class like this:
*
* class MyClass : public Php::Base, public Php::Countable { ... }
*
* You will have to implement the count() method, which should return the
* number of elements in the class
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2014 Copernica BV
*/
/**
* Set up namespace
*/
namespace Php {
/**
* Class definition
*/
class Countable
{
public:
/**
* Retrieve the number of items in the class
* @return Value
*/
virtual Value count() = 0;
};
/**
* End namespace
*/
}
|