Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <new>
- class SomeForwardDecl;
- struct AStruct
- {
- int data;
- };
- namespace Colossus
- {
- class MyBase
- {
- public:
- class SomeInternalClass
- {
- };
- int BaseMethod(const char* argument);
- virtual void VirtualBaseMethod(MyBase* base);
- private:
- int BasePrivateMethod();
- };
- }
- namespace TestCompany {
- namespace TestApp {
- class MyDerived : public Colossus::MyBase
- {
- public:
- /// A factory method to instantiate MyDerived objects.
- /// @export
- static MyBase* SomeFactoryMethod(const char*, MyBase* copy = NULL);
- /** A derived method in a first-descendent of MyBase. */
- MyBase* SomeDerivedMethod() const;
- void IntDefaultArg(SomeForwardDecl myForward, int number = 122);
- };
- class MyBaz : public MyDerived
- {
- public:
- MyBaz();
- ~MyBaz();
- /// With a comment string!
- void ASecondDerivation(MyDerived aDerived, const MyDerived& anDerived);
- virtual void VirtualBaseMethod(MyBase* base);
- int ITakeAStruct(AStruct st, AStruct* pst);
- void ITakeBuiltins(unsigned a, unsigned char b, long c);
- private:
- const MyBaz& operator=(const MyBaz& rhs);
- void ThisMethodPrivate();
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement