2023 Charge Up  0.1.0
Code for the Titanium Titans (FRC Team #4467)'s 2023 robot
subclass-example.hpp
1 #pragma once
2 #include <string>
3 #include "example.hpp"
4 #include <iostream>
5 
6 namespace MyLibrary {
7 
11  template<typename TemplatedClass>
12  class SubclassExample : public Example {
13  public:
14 
19  int virtualfunc() override;
20 
24  template <typename T>
25  std::shared_ptr<std::string> function_template_test(std::shared_ptr<T>& param);
26 
36  template <typename T, typename Foo, typename Bar, typename Alice, typename Bob, typename Charlie, typename Hello, typename World>
37  std::pair<std::string, std::string> long_function_with_many_parameters(std::shared_ptr<T>& param1, std::shared_ptr<std::string>& param2, bool parameter3, Alice paramater4 Bob parameter 5) {
38  if(true) {
39  std::cout << "this even has some code." << std::endl;
40  }
41  }
42 
43  };
44 
45 }
46 
Example class to demonstrate the features of the custom CSS.
Definition: example.hpp:14
some subclass
Definition: subclass-example.hpp:12
int virtualfunc() override
std::shared_ptr< std::string > function_template_test(std::shared_ptr< T > &param)
Template function function.
std::pair< std::string, std::string > long_function_with_many_parameters(std::shared_ptr< T > &param1, std::shared_ptr< std::string > &param2, bool parameter3, Alice paramater4 Bob parameter 5)
Extra long function with lots of parameters and many template types.
Definition: subclass-example.hpp:37