2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 19:12:11 +00:00
Files
tti/test/TestStructs.hpp
Edward Diener b04755f996 Updated header files
[SVN r67185]
2010-12-12 14:05:59 +00:00

87 lines
1.6 KiB
C++

#if !defined(TEST_STRUCTS_HPP)
#define TEST_STRUCTS_HPP
struct AType
{
// Type
typedef int AnIntType;
struct AStructType
{
};
typedef int & AnIntTypeReference;
struct BType
{
typedef int AnIntegerType;
struct CType
{
typedef int AnotherIntegerType;
};
};
// Template
template <class> struct ATPMemberTemplate { };
template <int> struct AMemberTemplate { };
template <int,int> struct AnotherMemberTemplate { };
template <class,class> struct CLMemberTemplate { };
// Data
int AnInt;
// Function
void VoidFunction() { }
int IntFunction() { return 0; }
// Static Data
static short DSMember;
// Static Function
static int SIntFunction(long,double) { return 2; }
};
struct AnotherType
{
// Type
typedef AType::AnIntType someOtherType;
// Template
template <class,class,class,class,class,class> struct SomeMemberTemplate { };
template <class,class,int,class,template <class> class InnerTemplate,class,long> struct ManyParameters { };
template <class,class,class,class> struct SimpleTMP { };
// Data
bool aMember;
bool cMem;
long AnInt;
// Function
AType aFunction(int) { return AType(); }
int anotherFunction(AType) { return 0; }
AType::AnIntType sFunction(int,long,double) { return 0; }
double IntFunction(int) { return 0; }
// Static Data
// Static Function
static AType TIntFunction(long,double) { return AType(); }
static AType::AStructType TSFunction(AType::AnIntType,double) { return AType::AStructType(); }
};
short AType::DSMember(5622);
#endif // TEST_STRUCTS_HPP