Debian Codegraph @

examples/specific/template_class_non_type.h

raw symbols SCIP
1 /**
2 * @brief a class with three template parameters
3 *
4 * @tparam T this is the first template parameter
5 * @tparam U this is the second template parameter
6 * @tparam N this is the third template parameter, it is a non-type parameter
7 */
8 template <typename T, typename U, int N>
9 class anothertemplateclass
10 {
11 public:
12 /// default constructor
13 anothertemplateclass() {}
14
15 /**
16 * @brief constructor with two template argument
17 *
18 * @param m1 first argument
19 * @param m2 second argument
20 */
21 anothertemplateclass(T const & m1, U const & m2) :
22 member1(m1), member2(m2) {}
23
24 /**
25 * @brief member accepting template argument and returning template argument
26 *
27 * @param t argument
28 * @return returns value of type U
29 */
30 U method(T const & t);
31
32 private:
33 /// a member with templated type
34 T member1;
35
36 /// another member with templated type
37 U member2;
38 };