This commit is contained in:
David Rose 2008-05-28 18:59:43 +00:00
parent f965ed1f43
commit 01ac6a43d0
16 changed files with 654 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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 <stdtypedefs.h>
template<class element>
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

View File

@ -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 <stdtypedefs.h>
#include <stdcompare.h>
#include <pair>
namespace stdext {
template<class key, class element, class compare = hash_compare<key, less<key> > >
class hash_map {
public:
typedef key key_type;
typedef element data_type;
typedef element mapped_type;
typedef pair<const key, element> 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 key, class element, class compare = hash_compare<key, less<key> > >
class hash_multimap : public hash_map<key, element, compare> {
};
};
#endif

View File

@ -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 <stdtypedefs.h>
#include <stdcompare.h>
namespace stdext {
template<class key, class compare = hash_compare<key, less<key> > >
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 key, class compare = hash_compare<key, less<key> > >
class hash_multiset : public hash_set<key, compare> {
};
};
#endif

View File

@ -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

View File

@ -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 <stdtypedefs.h>
template<class element>
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

View File

@ -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 <stdtypedefs.h>
#include <stdcompare.h>
#include <pair>
template<class key, class element, class compare = less<key> >
class map {
public:
typedef key key_type;
typedef element data_type;
typedef element mapped_type;
typedef pair<const key, element> 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 key, class element, class compare = less<key> >
class multimap : public map<key, element, compare> {
};
#endif

View File

@ -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 <stdtypedefs.h>
#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 Type>
class allocator {
public:
typedef Type *pointer;
typedef const Type *const_pointer;
typedef size_t size_type;
INLINE pointer allocate(size_type n, allocator<void>::const_pointer hint = 0);
INLINE void deallocate(pointer p, size_type n);
};
#endif // GCC_STYLE_ALLOCATOR
#endif

View File

@ -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

View File

@ -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 a, class b>
class pair {
public:
a first;
b second;
};
#endif

View File

@ -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 <stdtypedefs.h>
template<class element>
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 element>
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

View File

@ -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 <stdtypedefs.h>
#include <stdcompare.h>
template<class key, class compare = less<key> >
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 key, class compare = less<key> >
class multiset : public set<key, compare> {
};
#endif

View File

@ -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 <stdtypedefs.h>
template<class element>
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

View File

@ -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 <stdtypedefs.h>
template<class ctype>
class basic_string {
public:
basic_string();
basic_string(const basic_string &copy);
void operator = (const basic_string &copy);
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<char> string;
typedef basic_string<wchar_t> wstring;
#endif

View File

@ -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 <stdtypedefs.h>
template<class element>
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