mirror of
https://github.com/nasa/trick.git
synced 2024-12-22 14:32:24 +00:00
bf80dcc03f
Gave each sim their own model directory, or in some cases just a header file. Each sim in the test directory is now independent of each other. Modifying one test will not affect any other test. refs #191
49 lines
732 B
C++
49 lines
732 B
C++
/**
|
|
@file
|
|
|
|
@verbatim
|
|
PURPOSE:
|
|
(Template tests)
|
|
@endverbatim
|
|
*******************************************************************************/
|
|
|
|
#ifndef TEMPLATETEST_HH
|
|
#define TEMPLATETEST_HH
|
|
|
|
template <class A, class B>
|
|
class TTT {
|
|
public:
|
|
|
|
TTT() {
|
|
aa = 0 ;
|
|
bb = 0 ;
|
|
cc = NULL ;
|
|
dd = NULL ;
|
|
} ;
|
|
A aa ;
|
|
B bb ;
|
|
TTT<A,B> * ttt ;
|
|
|
|
typedef TTT<A,B> C ;
|
|
C * cc ;
|
|
typedef TTT<B,A> D ;
|
|
D * dd ;
|
|
} ;
|
|
|
|
class TemplateTest {
|
|
|
|
friend class InputProcessor ;
|
|
friend void init_attrTemplateTest() ;
|
|
|
|
public:
|
|
TTT< int , double > TTT_var ;
|
|
|
|
};
|
|
|
|
#ifdef SWIG
|
|
%struct_str(TemplateTest)
|
|
#endif
|
|
|
|
#endif /* _BALL_HH_ */
|
|
|