File: declarations_calldef.hpp

package info (click to toggle)
pygccxml 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,444 kB
  • sloc: xml: 29,841; python: 13,914; cpp: 2,671; makefile: 163; ansic: 59
file content (75 lines) | stat: -rw-r--r-- 1,489 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright 2014-2017 Insight Software Consortium.
// Copyright 2004-2009 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt

#ifndef __declarations_calldef_hpp__
#define __declarations_calldef_hpp__

namespace declarations{ namespace calldef{

class some_exception_t{};

class other_exception_t{};

void no_return_no_args();

int return_no_args();

void no_return_1_arg(int arg);

int return_default_args( int arg=1, bool flag=false );

extern void static_call();

struct calldefs_t{
    calldefs_t();

    explicit calldefs_t(char);

    calldefs_t(some_exception_t);

    calldefs_t(int,double);

    calldefs_t(const calldefs_t&);

    virtual ~calldefs_t();

    calldefs_t& operator=( const calldefs_t& );
    bool operator==( const calldefs_t& );
    operator char*() const;
    virtual operator double();

    static void static_call();

    inline int member_inline_call(int i){ return i;}

    virtual void member_virtual_call();

    virtual void member_pure_virtual_call() = 0;

    void member_const_call() const;

    calldefs_t* do_smth(const calldefs_t& other);
};

namespace std{
    class iostream;
}

std::iostream& operator<<( std::iostream&, const calldefs_t& );
std::iostream& operator>>( std::iostream&, calldefs_t& );

namespace ellipsis_tester{

struct ellipsis{
    void do_smth( int, ... );
};

void do_smth_else( int, ... );

}//ellipsis_tester

} }

#endif//__declarations_calldef_hpp__