GCC Code Coverage Report


Directory: avs_core/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 2 / 0 / 2
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

core/FilterConstructor.h
Line Branch Exec Source
1 #ifndef _AVS_FILTER_CONSTRUCTOR_H
2 #define _AVS_FILTER_CONSTRUCTOR_H
3
4 #include "internal.h"
5 #include <vector>
6
7 class FilterConstructor
8 {
9 private:
10 IScriptEnvironment2* const Env;
11 IScriptEnvironment_Avs25* const Env25;
12 IScriptEnvironment_AvsPreV11C* const EnvPreV11C;
13 const Function* const Func;
14 const std::vector<AVSValue> ArgStorage;
15 const std::vector<AVSValue> CtorArgs;
16
17 public:
18 FilterConstructor(IScriptEnvironment2 * env,
19 IScriptEnvironment_Avs25* env25,
20 IScriptEnvironment_AvsPreV11C* envPreV11C,
21 const Function *func, std::vector<AVSValue>* argStorage, std::vector<AVSValue>* ctorArgs);
22 AVSValue InstantiateFilter() const;
23
24 const char* GetFilterName() const
25 {
26 return Func->name;
27 }
28
29 7 bool IsScriptFunction() const
30 {
31 7 return AVSFunction::IsScriptFunction(Func);
32 }
33
34 const Function* GetAvsFunction() const
35 {
36 return Func;
37 }
38 };
39
40 #endif // _AVS_FILTER_CONSTRUCTOR_H
41