/usr/include/cxxtools/invokable.tpp is in libcxxtools-dev 2.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | // BEGIN_Invokable 10
/**
Invokable is a type which can be "called" via
the invoke() member. It serves as a base type
for other types in the Pt signals/slots framework.
*/
template <class A1 = Void, class A2 = Void, class A3 = Void, class A4 = Void, class A5 = Void, class A6 = Void, class A7 = Void, class A8 = Void, class A9 = Void, class A10 = Void>
class Invokable {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10) const = 0;
};
// END_Invokable 10
// BEGIN_Invokable 9
// specialization
template <class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
class Invokable<A1,A2,A3,A4,A5,A6,A7,A8,A9,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) const = 0;
};
// END_Invokable 9
// BEGIN_Invokable 8
// specialization
template <class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
class Invokable<A1,A2,A3,A4,A5,A6,A7,A8,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const = 0;
};
// END_Invokable 8
// BEGIN_Invokable 7
// specialization
template <class A1, class A2, class A3, class A4, class A5, class A6, class A7>
class Invokable<A1,A2,A3,A4,A5,A6,A7,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const = 0;
};
// END_Invokable 7
// BEGIN_Invokable 6
// specialization
template <class A1, class A2, class A3, class A4, class A5, class A6>
class Invokable<A1,A2,A3,A4,A5,A6,Void,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const = 0;
};
// END_Invokable 6
// BEGIN_Invokable 5
// specialization
template <class A1, class A2, class A3, class A4, class A5>
class Invokable<A1,A2,A3,A4,A5,Void,Void,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const = 0;
};
// END_Invokable 5
// BEGIN_Invokable 4
// specialization
template <class A1, class A2, class A3, class A4>
class Invokable<A1,A2,A3,A4,Void,Void,Void,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3, A4 a4) const = 0;
};
// END_Invokable 4
// BEGIN_Invokable 3
// specialization
template <class A1, class A2, class A3>
class Invokable<A1,A2,A3,Void,Void,Void,Void,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2, A3 a3) const = 0;
};
// END_Invokable 3
// BEGIN_Invokable 2
// specialization
template <class A1, class A2>
class Invokable<A1,A2,Void,Void,Void,Void,Void,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1, A2 a2) const = 0;
};
// END_Invokable 2
// BEGIN_Invokable 1
// specialization
template <class A1>
class Invokable<A1,Void,Void,Void,Void,Void,Void,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke(A1 a1) const = 0;
};
// END_Invokable 1
// BEGIN_Invokable 0
// specialization
template <>
class Invokable<Void,Void,Void,Void,Void,Void,Void,Void,Void,Void> {
public:
/** Does nothing. Does not throw. */
virtual ~Invokable()
{}
/** Behaviour is determined by subclass implementations. */
virtual void invoke() const = 0;
};
// END_Invokable 0
|