diff --git a/dtool/src/parser-inc/Python.h b/dtool/src/parser-inc/Python.h index d32e20a97a..3d71f0f11c 100755 --- a/dtool/src/parser-inc/Python.h +++ b/dtool/src/parser-inc/Python.h @@ -3,3 +3,24 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef PYTHON_H +#define PYTHON_H + +class PyObject; +class PyThreadState; + +#endif // PYTHON_H diff --git a/dtool/src/parser-inc/algorithm b/dtool/src/parser-inc/algorithm index 89b2fadebc..6f409742c2 100644 --- a/dtool/src/parser-inc/algorithm +++ b/dtool/src/parser-inc/algorithm @@ -3,3 +3,22 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef ALGORITHM_H +#define ALGORITHM_H + +#endif + diff --git a/dtool/src/parser-inc/deque b/dtool/src/parser-inc/deque index 0ecdb8d4fc..cba1267be6 100644 --- a/dtool/src/parser-inc/deque +++ b/dtool/src/parser-inc/deque @@ -3,3 +3,41 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef DEQUE_H +#define DEQUE_H + +#include + +template +class deque { +public: + typedef element value_type; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + typedef pointer iterator; + typedef const_pointer const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t difference_type; + typedef size_t size_type; +}; + +#endif diff --git a/dtool/src/parser-inc/hash_map b/dtool/src/parser-inc/hash_map index 346eed5403..bdf4a3e010 100644 --- a/dtool/src/parser-inc/hash_map +++ b/dtool/src/parser-inc/hash_map @@ -3,3 +3,53 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef HASH_MAP_H +#define HASH_MAP_H + +#include +#include +#include + +namespace stdext { + template > > + class hash_map { + public: + typedef key key_type; + typedef element data_type; + typedef element mapped_type; + typedef pair value_type; + typedef compare key_compare; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; + }; + + template > > + class hash_multimap : public hash_map { + }; +}; + +#endif diff --git a/dtool/src/parser-inc/hash_set b/dtool/src/parser-inc/hash_set index e2cae21d74..a83da9aaf5 100644 --- a/dtool/src/parser-inc/hash_set +++ b/dtool/src/parser-inc/hash_set @@ -3,3 +3,53 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef HASH_SET_H +#define HASH_SET_H + +#include +#include + +namespace stdext { + + template > > + class hash_set { + public: + typedef key key_type; + typedef key value_type; + typedef compare key_compare; + typedef compare value_compare; + + typedef key *pointer; + typedef const key *const_pointer; + typedef key &reference; + typedef const key &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; + }; + + template > > + class hash_multiset : public hash_set { + }; + +}; + +#endif diff --git a/dtool/src/parser-inc/iostream b/dtool/src/parser-inc/iostream index bf69aec6bf..4b4b15d339 100644 --- a/dtool/src/parser-inc/iostream +++ b/dtool/src/parser-inc/iostream @@ -3,3 +3,83 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef IOSTREAM_H +#define IOSTREAM_H + +// We don't care (much) about the actual definition of the various +// iostream classes, but we do need to know the classnames that are +// available. + +// We need to expose one method in each class to force it to publish. +// But we'd like to expose some of these methods anyway, so no +// problem. +class ios_base { +__published: + enum seekdir { + beg = 0, + cur = 1, + end = 2, + }; +}; +class ios : public ios_base { +__published: + typedef long fmtflags; + typedef unsigned long streampos; + typedef long streamoff; + + bool good() const; + bool eof() const; + bool fail() const; + bool bad() const; + void clear(); +}; +class ostream : virtual public ios { +__published: + void put(char c); + void flush(); + streampos tellp(); + void seekp(streampos pos); + void seekp(streamoff off, ios_base::seekdir dir); +}; +class istream : virtual public ios { +__published: + int get(); + streampos tellg(); + void seekg(streampos pos); + void seekg(streamoff off, ios_base::seekdir dir); +}; +class iostream : public istream, public ostream { +__published: + void flush(); +}; + + +class ofstream : public ostream {}; +class ifstream : public istream {}; +class fstream : public iostream {}; +class ostringstream : public ostream {}; +class istringstream : public istream {}; +class stringstream : public iostream {}; +class streambuf {}; + +extern istream cin; +extern ostream cout; +extern ostream cerr; + +typedef int streampos; + +#endif diff --git a/dtool/src/parser-inc/list b/dtool/src/parser-inc/list index 460b67bdef..03b1df796f 100644 --- a/dtool/src/parser-inc/list +++ b/dtool/src/parser-inc/list @@ -3,3 +3,41 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef LIST_H +#define LIST_H + +#include + +template +class list { +public: + typedef element value_type; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; +}; + +#endif diff --git a/dtool/src/parser-inc/map b/dtool/src/parser-inc/map index ac2c5f7756..19611a8696 100644 --- a/dtool/src/parser-inc/map +++ b/dtool/src/parser-inc/map @@ -3,3 +3,51 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef MAP_H +#define MAP_H + +#include +#include +#include + +template > +class map { +public: + typedef key key_type; + typedef element data_type; + typedef element mapped_type; + typedef pair value_type; + typedef compare key_compare; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; +}; + +template > +class multimap : public map { +}; + +#endif diff --git a/dtool/src/parser-inc/memory b/dtool/src/parser-inc/memory index b773855e2e..07f62a9043 100644 --- a/dtool/src/parser-inc/memory +++ b/dtool/src/parser-inc/memory @@ -3,3 +3,46 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef ALLOCATOR_H +#define ALLOCATOR_H + +#include + +#ifdef GCC_STYLE_ALLOCATOR + +class alloc { +public: + static void *allocate(size_t n); + static void deallocate(void *p, size_t n); +}; + +#else // GCC_STYLE_ALLOCATOR + +template +class allocator { +public: + typedef Type *pointer; + typedef const Type *const_pointer; + typedef size_t size_type; + + INLINE pointer allocate(size_type n, allocator::const_pointer hint = 0); + INLINE void deallocate(pointer p, size_type n); +}; + +#endif // GCC_STYLE_ALLOCATOR + +#endif diff --git a/dtool/src/parser-inc/nurbs.hh b/dtool/src/parser-inc/nurbs.hh index 2dace8abcd..80d9010956 100644 --- a/dtool/src/parser-inc/nurbs.hh +++ b/dtool/src/parser-inc/nurbs.hh @@ -3,3 +3,26 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef NURBS_HH +#define NURBS_HH + +namespace PLib { + class NurbsCurvef; +}; + +#endif + diff --git a/dtool/src/parser-inc/pair b/dtool/src/parser-inc/pair index 392a730fa7..3bb1aa509d 100644 --- a/dtool/src/parser-inc/pair +++ b/dtool/src/parser-inc/pair @@ -3,3 +3,29 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef PAIR_H +#define PAIR_H + +template +class pair { +public: + a first; + b second; +}; + +#endif + diff --git a/dtool/src/parser-inc/queue b/dtool/src/parser-inc/queue index a89e065293..9e9c652ff4 100644 --- a/dtool/src/parser-inc/queue +++ b/dtool/src/parser-inc/queue @@ -3,3 +3,59 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef QUEUE_H +#define QUEUE_H + +#include + +template +class queue { +public: + typedef element value_type; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; +}; + +template +class priority_queue { +public: + typedef element value_type; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; +}; + +#endif diff --git a/dtool/src/parser-inc/set b/dtool/src/parser-inc/set index e219b16120..13aa1a02d2 100644 --- a/dtool/src/parser-inc/set +++ b/dtool/src/parser-inc/set @@ -3,3 +3,49 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef SET_H +#define SET_H + +#include +#include + +template > +class set { +public: + typedef key key_type; + typedef key value_type; + typedef compare key_compare; + typedef compare value_compare; + + typedef key *pointer; + typedef const key *const_pointer; + typedef key &reference; + typedef const key &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; +}; + +template > +class multiset : public set { +}; + +#endif diff --git a/dtool/src/parser-inc/stack b/dtool/src/parser-inc/stack index a5724e1844..51ea538071 100644 --- a/dtool/src/parser-inc/stack +++ b/dtool/src/parser-inc/stack @@ -3,3 +3,41 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef STACK_H +#define STACK_H + +#include + +template +class stack { +public: + typedef element value_type; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + class iterator; + class const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t size_type; + class difference_type; +}; + +#endif diff --git a/dtool/src/parser-inc/string b/dtool/src/parser-inc/string index 703b32245f..f2a3c33e9e 100644 --- a/dtool/src/parser-inc/string +++ b/dtool/src/parser-inc/string @@ -3,3 +3,43 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef STRING_H +#define STRING_H + +#include + +template +class basic_string { +public: + basic_string(); + basic_string(const basic_string ©); + void operator = (const basic_string ©); + basic_string(const ctype *string); + ~basic_string(); + + const ctype *c_str() const; + size_t length() const; + + ctype at(size_t pos) const; + ctype operator[](size_t pos) const; + ctype &operator[](size_t pos); +}; + +typedef basic_string string; +typedef basic_string wstring; + +#endif diff --git a/dtool/src/parser-inc/vector b/dtool/src/parser-inc/vector index 772f088ae9..fb27a78c0d 100644 --- a/dtool/src/parser-inc/vector +++ b/dtool/src/parser-inc/vector @@ -3,3 +3,41 @@ // //////////////////////////////////////////////////////////////////// // +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + +// This file, and all the other files in this directory, aren't +// intended to be compiled--they're just parsed by CPPParser (and +// interrogate) in lieu of the actual system headers, to generate the +// interrogate database. + +#ifndef VECTOR_H +#define VECTOR_H + +#include + +template +class vector { +public: + typedef element value_type; + + typedef element *pointer; + typedef const element *const_pointer; + typedef element &reference; + typedef const element &const_reference; + + typedef pointer iterator; + typedef const_pointer const_iterator; + class reverse_iterator; + class const_reverse_iterator; + typedef size_t difference_type; + typedef size_t size_type; +}; + +#endif