File: TestPimpl1.cpp

package info (click to toggle)
simbody 3.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 46,144 kB
  • ctags: 38,501
  • sloc: cpp: 229,963; ansic: 15,729; makefile: 87
file content (35 lines) | stat: -rwxr-xr-x 659 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#include "SimTKsimbody.h"
#pragma warning(disable:4661)
class Element;
class ElementRep;

//extern template class /*__declspec(dllimport)*/ SimTK::PIMPLHandle<Element, ElementRep>;


class /*__declspec(dllexport)*/ Element : public SimTK::PIMPLHandle<Element,ElementRep> {
public:
};



#include "SimTKcommon/internal/PrivateImplementation_Defs.h"

#include <iostream>

int main() 
{
    std::cout << "passed" << std::endl;

    Element e;

    return 0;
}


class ElementRep : public SimTK::PIMPLImplementation<Element,ElementRep> {
public:
    ElementRep* clone() const {return new ElementRep();}
};

template class SimTK::PIMPLHandle<Element,ElementRep>;