vector -> pvector, etc.

This commit is contained in:
David Rose 2001-06-25 17:00:50 +00:00
parent a4c5d7f923
commit 196cfd7d16
65 changed files with 167 additions and 167 deletions

View File

@ -26,7 +26,7 @@
#include <pt_Node.h> #include <pt_Node.h>
#include <sceneGraphAnalyzer.h> #include <sceneGraphAnalyzer.h>
#include <vector> #include "pvector.h"
class TypedWritable; class TypedWritable;
@ -49,7 +49,7 @@ private:
void describe_general_object(TypedWritable *object); void describe_general_object(TypedWritable *object);
void list_hierarchy(Node *node, int indent_level); void list_hierarchy(Node *node, int indent_level);
typedef vector<Filename> Filenames; typedef pvector<Filename> Filenames;
Filenames _filenames; Filenames _filenames;
bool _ls; bool _ls;

View File

@ -81,7 +81,7 @@ protected:
CVSSourceDirectory *_model_dir; CVSSourceDirectory *_model_dir;
CVSSourceDirectory *_map_dir; CVSSourceDirectory *_map_dir;
typedef map<string, CVSSourceDirectory *> CopiedFiles; typedef pmap<string, CVSSourceDirectory *> CopiedFiles;
CopiedFiles _copied_files; CopiedFiles _copied_files;
}; };

View File

@ -22,7 +22,7 @@
#include <pandatoolbase.h> #include <pandatoolbase.h>
#include <filename.h> #include <filename.h>
#include <vector> #include "pvector.h"
class CVSSourceTree; class CVSSourceTree;
@ -59,7 +59,7 @@ private:
string _dirname; string _dirname;
int _depth; int _depth;
typedef vector<CVSSourceDirectory *> Children; typedef pvector<CVSSourceDirectory *> Children;
Children _children; Children _children;
}; };

View File

@ -21,8 +21,8 @@
#include <pandatoolbase.h> #include <pandatoolbase.h>
#include <vector> #include "pvector.h"
#include <map> #include "pmap.h"
class CVSSourceDirectory; class CVSSourceDirectory;
@ -58,7 +58,7 @@ public:
void add_file(const string &filename, CVSSourceDirectory *dir); void add_file(const string &filename, CVSSourceDirectory *dir);
private: private:
typedef vector<CVSSourceDirectory *> Directories; typedef pvector<CVSSourceDirectory *> Directories;
CVSSourceDirectory * CVSSourceDirectory *
prompt_user(const string &filename, CVSSourceDirectory *suggested_dir, prompt_user(const string &filename, CVSSourceDirectory *suggested_dir,
@ -81,7 +81,7 @@ private:
string _path; string _path;
CVSSourceDirectory *_root; CVSSourceDirectory *_root;
typedef map<string, Directories> Filenames; typedef pmap<string, Directories> Filenames;
Filenames _filenames; Filenames _filenames;
static bool _got_start_fullpath; static bool _got_start_fullpath;

View File

@ -22,7 +22,7 @@
#include <pandatoolbase.h> #include <pandatoolbase.h>
#include <vector> #include "pvector.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : CharBitmap // Class : CharBitmap
@ -32,8 +32,8 @@
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
class CharBitmap { class CharBitmap {
public: public:
typedef vector<char> Row; typedef pvector<char> Row;
typedef vector<Row> Block; typedef pvector<Row> Block;
CharBitmap(int character, int width, int height, CharBitmap(int character, int width, int height,
int hoff, int voff, double dx, double dy); int hoff, int voff, double dx, double dy);

View File

@ -23,7 +23,7 @@
#include "charPlacement.h" #include "charPlacement.h"
#include <vector> #include "pvector.h"
class CharPlacement; class CharPlacement;
@ -40,7 +40,7 @@ public:
bool place_character(const CharBitmap *bm); bool place_character(const CharBitmap *bm);
typedef vector<CharPlacement> Placements; typedef pvector<CharPlacement> Placements;
Placements _placements; Placements _placements;
int _working_xsize, _working_ysize; int _working_xsize, _working_ysize;

View File

@ -91,7 +91,7 @@ private:
double _small_caps_scale; double _small_caps_scale;
FontFile *_font; FontFile *_font;
typedef map<int, PT(EggGroup)> EggDefs; typedef pmap<int, PT(EggGroup)> EggDefs;
EggDefs _egg_defs; EggDefs _egg_defs;
CharLayout _layout; CharLayout _layout;

View File

@ -56,7 +56,7 @@ protected:
double _vppp; double _vppp;
double _hppp; double _hppp;
typedef vector<CharBitmap *> Chars; typedef pvector<CharBitmap *> Chars;
Chars _chars; Chars _chars;
}; };

View File

@ -58,7 +58,7 @@ private:
bool _extract_all; bool _extract_all;
string _extract_only; string _extract_only;
vector<unsigned char> _pk; pvector<unsigned char> _pk;
}; };
#endif #endif

View File

@ -28,7 +28,7 @@
#include <namable.h> #include <namable.h>
#include <typedWritable.h> #include <typedWritable.h>
#include <set> #include "pset.h"
class SourceTextureImage; class SourceTextureImage;
class EggData; class EggData;
@ -51,7 +51,7 @@ public:
const Filename &dest_filename); const Filename &dest_filename);
void scan_textures(); void scan_textures();
void get_textures(set<TextureImage *> &result) const; void get_textures(pset<TextureImage *> &result) const;
void pre_txa_file(); void pre_txa_file();
void match_txa_groups(const PaletteGroups &groups); void match_txa_groups(const PaletteGroups &groups);
@ -85,7 +85,7 @@ private:
Filename _source_filename; Filename _source_filename;
Filename _dest_filename; Filename _dest_filename;
typedef vector<TextureReference *> Textures; typedef pvector<TextureReference *> Textures;
Textures _textures; Textures _textures;
bool _first_txa_match; bool _first_txa_match;

View File

@ -23,7 +23,7 @@
#include <filename.h> #include <filename.h>
#include <map> #include "pmap.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : FilenameUnifier // Class : FilenameUnifier
@ -52,7 +52,7 @@ private:
static Filename _txa_dir; static Filename _txa_dir;
static Filename _rel_dirname; static Filename _rel_dirname;
typedef map<string, string> CanonicalFilenames; typedef pmap<string, string> CanonicalFilenames;
static CanonicalFilenames _canonical_filenames; static CanonicalFilenames _canonical_filenames;
}; };

View File

@ -27,8 +27,8 @@
#include <namable.h> #include <namable.h>
#include <typedWritable.h> #include <typedWritable.h>
#include <set> #include "pset.h"
#include <vector> #include "pvector.h"
class EggFile; class EggFile;
class TexturePlacement; class TexturePlacement;
@ -59,8 +59,8 @@ public:
void group_with(PaletteGroup *other); void group_with(PaletteGroup *other);
const PaletteGroups &get_groups() const; const PaletteGroups &get_groups() const;
void get_placements(vector<TexturePlacement *> &placements) const; void get_placements(pvector<TexturePlacement *> &placements) const;
void get_complete_placements(vector<TexturePlacement *> &placements) const; void get_complete_placements(pvector<TexturePlacement *> &placements) const;
void reset_dependency_level(); void reset_dependency_level();
void set_dependency_level(int level); void set_dependency_level(int level);
@ -97,10 +97,10 @@ private:
int _dependency_order; int _dependency_order;
int _dirname_order; int _dirname_order;
typedef set<TexturePlacement *> Placements; typedef pset<TexturePlacement *> Placements;
Placements _placements; Placements _placements;
typedef map<TextureProperties, PalettePage *> Pages; typedef pmap<TextureProperties, PalettePage *> Pages;
Pages _pages; Pages _pages;
@ -121,7 +121,7 @@ private:
// don't use them otherwise. // don't use them otherwise.
int _num_placements; int _num_placements;
int _num_pages; int _num_pages;
vector<PalettePage *> _load_pages; pvector<PalettePage *> _load_pages;
public: public:
static TypeHandle get_class_type() { static TypeHandle get_class_type() {

View File

@ -23,7 +23,7 @@
#include <typedWritable.h> #include <typedWritable.h>
#include <set> #include "pset.h"
class PaletteGroup; class PaletteGroup;
@ -35,7 +35,7 @@ class PaletteGroup;
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
class PaletteGroups : public TypedWritable { class PaletteGroups : public TypedWritable {
private: private:
typedef set<PaletteGroup *> Groups; typedef pset<PaletteGroup *> Groups;
public: public:
#ifndef WIN32_VC #ifndef WIN32_VC

View File

@ -86,10 +86,10 @@ private:
int _x_size, _y_size; int _x_size, _y_size;
}; };
typedef vector<ClearedRegion> ClearedRegions; typedef pvector<ClearedRegion> ClearedRegions;
ClearedRegions _cleared_regions; ClearedRegions _cleared_regions;
typedef vector<TexturePlacement *> Placements; typedef pvector<TexturePlacement *> Placements;
Placements _placements; Placements _placements;
PalettePage *_page; PalettePage *_page;

View File

@ -63,10 +63,10 @@ private:
PaletteGroup *_group; PaletteGroup *_group;
TextureProperties _properties; TextureProperties _properties;
typedef vector<TexturePlacement *> Assigned; typedef pvector<TexturePlacement *> Assigned;
Assigned _assigned; Assigned _assigned;
typedef vector<PaletteImage *> Images; typedef pvector<PaletteImage *> Images;
Images _images; Images _images;
// The TypedWritable interface follows. // The TypedWritable interface follows.

View File

@ -25,9 +25,9 @@
#include <typedWritable.h> #include <typedWritable.h>
#include <vector> #include "pvector.h"
#include <set> #include "pset.h"
#include <map> #include "pmap.h"
class PNMFileType; class PNMFileType;
class EggFile; class EggFile;
@ -112,23 +112,23 @@ public:
PNMFileType *_shadow_alpha_type; PNMFileType *_shadow_alpha_type;
private: private:
typedef vector<TexturePlacement *> Placements; typedef pvector<TexturePlacement *> Placements;
void compute_statistics(ostream &out, int indent_level, void compute_statistics(ostream &out, int indent_level,
const Placements &placements) const; const Placements &placements) const;
typedef map<string, EggFile *> EggFiles; typedef pmap<string, EggFile *> EggFiles;
EggFiles _egg_files; EggFiles _egg_files;
typedef vector<EggFile *> CommandLineEggs; typedef pvector<EggFile *> CommandLineEggs;
CommandLineEggs _command_line_eggs; CommandLineEggs _command_line_eggs;
typedef set<TextureImage *> CommandLineTextures; typedef pset<TextureImage *> CommandLineTextures;
CommandLineTextures _command_line_textures; CommandLineTextures _command_line_textures;
typedef map<string, PaletteGroup *> Groups; typedef pmap<string, PaletteGroup *> Groups;
Groups _groups; Groups _groups;
typedef map<string, TextureImage *> Textures; typedef pmap<string, TextureImage *> Textures;
Textures _textures; Textures _textures;

View File

@ -29,8 +29,8 @@
#include <filename.h> #include <filename.h>
#include <pnmImage.h> #include <pnmImage.h>
#include <map> #include "pmap.h"
#include <set> #include "pset.h"
class SourceTextureImage; class SourceTextureImage;
class DestTextureImage; class DestTextureImage;
@ -88,10 +88,10 @@ public:
void write_scale_info(ostream &out, int indent_level = 0); void write_scale_info(ostream &out, int indent_level = 0);
private: private:
typedef set<EggFile *> EggFiles; typedef pset<EggFile *> EggFiles;
typedef vector<EggFile *> WorkingEggs; typedef pvector<EggFile *> WorkingEggs;
typedef map<string, SourceTextureImage *> Sources; typedef pmap<string, SourceTextureImage *> Sources;
typedef map<string, DestTextureImage *> Dests; typedef pmap<string, DestTextureImage *> Dests;
static int compute_egg_count(PaletteGroup *group, static int compute_egg_count(PaletteGroup *group,
const WorkingEggs &egg_files); const WorkingEggs &egg_files);
@ -121,7 +121,7 @@ private:
EggFiles _egg_files; EggFiles _egg_files;
typedef map<PaletteGroup *, TexturePlacement *> Placement; typedef pmap<PaletteGroup *, TexturePlacement *> Placement;
Placement _placement; Placement _placement;
Sources _sources; Sources _sources;

View File

@ -27,8 +27,8 @@ class TextureImage;
class DestTextureImage; class DestTextureImage;
class TexturePlacement; class TexturePlacement;
#include <map> #include "pmap.h"
#include <set> #include "pset.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : TextureMemoryCounter // Class : TextureMemoryCounter
@ -64,10 +64,10 @@ private:
int _duplicate_bytes; int _duplicate_bytes;
int _coverage_bytes; int _coverage_bytes;
typedef map<TextureImage *, int> Textures; typedef pmap<TextureImage *, int> Textures;
Textures _textures; Textures _textures;
typedef set<PaletteImage *> Palettes; typedef pset<PaletteImage *> Palettes;
Palettes _palettes; Palettes _palettes;
}; };

View File

@ -27,7 +27,7 @@
#include <typedWritable.h> #include <typedWritable.h>
#include <luse.h> #include <luse.h>
#include <set> #include "pset.h"
class TextureImage; class TextureImage;
class DestTextureImage; class DestTextureImage;
@ -112,7 +112,7 @@ private:
TexturePosition _placed; TexturePosition _placed;
OmitReason _omit_reason; OmitReason _omit_reason;
typedef set<TextureReference *> References; typedef pset<TextureReference *> References;
References _references; References _references;
// The TypedWritable interface follows. // The TypedWritable interface follows.

View File

@ -26,7 +26,7 @@
#include <filename.h> #include <filename.h>
#include <vector_string.h> #include <vector_string.h>
#include <vector> #include "pvector.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : TxaFile // Class : TxaFile
@ -56,7 +56,7 @@ private:
bool parse_remap_line(const vector_string &words); bool parse_remap_line(const vector_string &words);
bool parse_remapchar_line(const vector_string &words); bool parse_remapchar_line(const vector_string &words);
typedef vector<TxaLine> Lines; typedef pvector<TxaLine> Lines;
Lines _lines; Lines _lines;
}; };

View File

@ -26,7 +26,7 @@
#include <globPattern.h> #include <globPattern.h>
#include <eggTexture.h> #include <eggTexture.h>
#include <vector> #include "pvector.h"
class PNMFileType; class PNMFileType;
class EggFile; class EggFile;
@ -51,7 +51,7 @@ public:
void output(ostream &out) const; void output(ostream &out) const;
private: private:
typedef vector<GlobPattern> Patterns; typedef pvector<GlobPattern> Patterns;
Patterns _texture_patterns; Patterns _texture_patterns;
Patterns _egg_patterns; Patterns _egg_patterns;
@ -82,7 +82,7 @@ private:
KW_cont KW_cont
}; };
typedef vector<Keyword> Keywords; typedef pvector<Keyword> Keywords;
Keywords _keywords; Keywords _keywords;
PaletteGroups _palette_groups; PaletteGroups _palette_groups;

View File

@ -50,7 +50,7 @@ protected:
bool _got_coordinate_system; bool _got_coordinate_system;
CoordinateSystem _coordinate_system; CoordinateSystem _coordinate_system;
typedef vector<PT(EggData)> Eggs; typedef pvector<PT(EggData)> Eggs;
Eggs _eggs; Eggs _eggs;
bool _force_complete; bool _force_complete;

View File

@ -66,15 +66,15 @@ public:
class EggInfo { class EggInfo {
public: public:
PT(EggData) _egg; PT(EggData) _egg;
typedef vector<PT(EggNode)> Models; typedef pvector<PT(EggNode)> Models;
Models _models; Models _models;
int _first_model_index; int _first_model_index;
}; };
typedef vector<EggInfo> Eggs; typedef pvector<EggInfo> Eggs;
Eggs _eggs; Eggs _eggs;
typedef vector<EggCharacterData *> Characters; typedef pvector<EggCharacterData *> Characters;
Characters _characters; Characters _characters;
Characters _characters_by_model_index; Characters _characters_by_model_index;
@ -92,9 +92,9 @@ private:
void add_morph_back_pointers(EggAttributes *attrib, EggObject *egg_object, void add_morph_back_pointers(EggAttributes *attrib, EggObject *egg_object,
int model_index, EggCharacterData *char_data); int model_index, EggCharacterData *char_data);
typedef vector<EggNode *> EggNodeList; typedef pvector<EggNode *> EggNodeList;
typedef map<EggNode *, EggNodeList> TopEggNodes; typedef pmap<EggNode *, EggNodeList> TopEggNodes;
typedef map<string, TopEggNodes> TopEggNodesByName; typedef pmap<string, TopEggNodes> TopEggNodesByName;
TopEggNodesByName _top_egg_nodes; TopEggNodesByName _top_egg_nodes;
int _next_model_index; int _next_model_index;

View File

@ -27,7 +27,7 @@
#include <pointerTo.h> #include <pointerTo.h>
#include <namable.h> #include <namable.h>
#include <map> #include "pmap.h"
class EggCharacterCollection; class EggCharacterCollection;
class EggSliderData; class EggSliderData;
@ -82,13 +82,13 @@ protected:
int _model_index; int _model_index;
PT(EggNode) _model_root; PT(EggNode) _model_root;
}; };
typedef vector<Model> Models; typedef pvector<Model> Models;
Models _models; Models _models;
EggCharacterCollection *_collection; EggCharacterCollection *_collection;
EggJointData *_root_joint; EggJointData *_root_joint;
typedef map<string, EggSliderData *> Sliders; typedef pmap<string, EggSliderData *> Sliders;
Sliders _sliders; Sliders _sliders;
}; };

View File

@ -57,7 +57,7 @@ protected:
// This points back to all the egg structures that reference this // This points back to all the egg structures that reference this
// particular table or slider. // particular table or slider.
typedef vector<EggBackPointer *> BackPointers; typedef pvector<EggBackPointer *> BackPointers;
BackPointers _back_pointers; BackPointers _back_pointers;

View File

@ -53,7 +53,7 @@ public:
virtual void write(ostream &out, int indent_level = 0) const; virtual void write(ostream &out, int indent_level = 0) const;
protected: protected:
typedef vector<EggJointData *> Children; typedef pvector<EggJointData *> Children;
Children _children; Children _children;
EggJointData *_parent; EggJointData *_parent;

View File

@ -48,7 +48,7 @@ public:
virtual void optimize(); virtual void optimize();
protected: protected:
typedef vector<LMatrix4d> RebuildFrames; typedef pvector<LMatrix4d> RebuildFrames;
RebuildFrames _rebuild_frames; RebuildFrames _rebuild_frames;
public: public:

View File

@ -24,7 +24,7 @@
#include <eggCharacterFilter.h> #include <eggCharacterFilter.h>
#include <luse.h> #include <luse.h>
#include <vector> #include "pvector.h"
class EggJointData; class EggJointData;
class EggJointPointer; class EggJointPointer;

View File

@ -68,7 +68,7 @@ private:
bool _has_transform; bool _has_transform;
LMatrix4d _transform; LMatrix4d _transform;
typedef vector<PT(FltTransformRecord)> Transforms; typedef pvector<PT(FltTransformRecord)> Transforms;
Transforms _transform_steps; Transforms _transform_steps;
int _replicate_count; int _replicate_count;

View File

@ -40,7 +40,7 @@ public:
CT_bezier = 6 CT_bezier = 6
}; };
typedef vector<LPoint3d> ControlPoints; typedef pvector<LPoint3d> ControlPoints;
CurveType _curve_type; CurveType _curve_type;
ControlPoints _control_points; ControlPoints _control_points;

View File

@ -240,18 +240,18 @@ private:
// Instance subtrees. These are standalone subtrees, which may be // Instance subtrees. These are standalone subtrees, which may be
// referenced by various points in the hierarchy, stored by instance // referenced by various points in the hierarchy, stored by instance
// ID number. // ID number.
typedef map<int, PT(FltInstanceDefinition)> Instances; typedef pmap<int, PT(FltInstanceDefinition)> Instances;
Instances _instances; Instances _instances;
// Support for the vertex palette. // Support for the vertex palette.
int update_vertex_lookups(); int update_vertex_lookups();
typedef vector<PT(FltVertex)> Vertices; typedef pvector<PT(FltVertex)> Vertices;
typedef set<FltVertex *> UniqueVertices; typedef pset<FltVertex *> UniqueVertices;
typedef map<int, FltVertex *> VerticesByOffset; typedef pmap<int, FltVertex *> VerticesByOffset;
typedef map<FltVertex *, int> OffsetsByVertex; typedef pmap<FltVertex *, int> OffsetsByVertex;
Vertices _vertices; Vertices _vertices;
UniqueVertices _unique_vertices; UniqueVertices _unique_vertices;
@ -267,26 +267,26 @@ private:
// Support for the color palette. // Support for the color palette.
bool _got_color_palette; bool _got_color_palette;
typedef vector<FltPackedColor> Colors; typedef pvector<FltPackedColor> Colors;
typedef map<int, string> ColorNames; typedef pmap<int, string> ColorNames;
Colors _colors; Colors _colors;
ColorNames _color_names; ColorNames _color_names;
// Support for the material palette. // Support for the material palette.
bool _got_14_material_palette; bool _got_14_material_palette;
typedef map<int, PT(FltMaterial)> Materials; typedef pmap<int, PT(FltMaterial)> Materials;
Materials _materials; Materials _materials;
// Support for the texture palette. // Support for the texture palette.
AttrUpdate _auto_attr_update; AttrUpdate _auto_attr_update;
typedef map<int, PT(FltTexture)> Textures; typedef pmap<int, PT(FltTexture)> Textures;
Textures _textures; Textures _textures;
// Support for the light source palette. // Support for the light source palette.
typedef map<int, PT(FltLightSourceDefinition)> LightSources; typedef pmap<int, PT(FltLightSourceDefinition)> LightSources;
LightSources _light_sources; LightSources _light_sources;

View File

@ -53,7 +53,7 @@ public:
AM_has_uv_7 = 0x00100000 AM_has_uv_7 = 0x00100000
}; };
typedef vector<PT(FltVertex)> Vertices; typedef pvector<PT(FltVertex)> Vertices;
Vertices _vertices; Vertices _vertices;
public: public:

View File

@ -94,7 +94,7 @@ protected:
FltHeader *_header; FltHeader *_header;
private: private:
typedef vector<PT(FltRecord)> Records; typedef pvector<PT(FltRecord)> Records;
Records _children; Records _children;
Records _subfaces; Records _subfaces;
Records _extensions; Records _extensions;

View File

@ -55,7 +55,7 @@ private:
Datagram _datagram; Datagram _datagram;
FltOpcode _opcode; FltOpcode _opcode;
typedef set<int> Instances; typedef pset<int> Instances;
Instances _instances_written; Instances _instances_written;
}; };

View File

@ -156,7 +156,7 @@ public:
LPoint2d _real_earth; LPoint2d _real_earth;
}; };
typedef vector<GeospecificControlPoint> GeospecificControlPoints; typedef pvector<GeospecificControlPoint> GeospecificControlPoints;
struct SubtextureDef { struct SubtextureDef {
string _name; string _name;
@ -165,7 +165,7 @@ public:
int _right; int _right;
int _top; int _top;
}; };
typedef vector<SubtextureDef> SubtextureDefs; typedef pvector<SubtextureDef> SubtextureDefs;
int _num_texels_u; int _num_texels_u;
int _num_texels_v; int _num_texels_v;

View File

@ -48,7 +48,7 @@ protected:
virtual bool build_record(FltRecordWriter &writer) const; virtual bool build_record(FltRecordWriter &writer) const;
private: private:
typedef vector<PT(FltVertex)> Vertices; typedef pvector<PT(FltVertex)> Vertices;
Vertices _vertices; Vertices _vertices;
public: public:

View File

@ -70,7 +70,7 @@ public:
private: private:
void cleanup(); void cleanup();
typedef vector< PT_EggVertex > EggVertices; typedef pvector< PT_EggVertex > EggVertices;
void convert_record(const FltRecord *flt_record, FltToEggLevelState &state); void convert_record(const FltRecord *flt_record, FltToEggLevelState &state);
void dispatch_record(const FltRecord *flt_record, FltToEggLevelState &state); void dispatch_record(const FltRecord *flt_record, FltToEggLevelState &state);
@ -102,7 +102,7 @@ private:
PT(EggVertexPool) _main_egg_vpool; PT(EggVertexPool) _main_egg_vpool;
typedef map<const FltTexture *, PT(EggTexture) > Textures; typedef pmap<const FltTexture *, PT(EggTexture) > Textures;
Textures _textures; Textures _textures;
}; };

View File

@ -56,7 +56,7 @@ private:
EggGroup *_plain; EggGroup *_plain;
}; };
typedef map<LMatrix4d, ParentNodes *> Parents; typedef pmap<LMatrix4d, ParentNodes *> Parents;
Parents _parents; Parents _parents;
}; };

View File

@ -26,7 +26,7 @@
#include <dSearchPath.h> #include <dSearchPath.h>
#include <pointerTo.h> #include <pointerTo.h>
#include <set> #include "pset.h"
class FltRecord; class FltRecord;
class FltTexture; class FltTexture;
@ -68,8 +68,8 @@ private:
bool new_file); bool new_file);
typedef set<PT(FltExternalReference)> Refs; typedef pset<PT(FltExternalReference)> Refs;
typedef set<PT(FltTexture)> Textures; typedef pset<PT(FltTexture)> Textures;
void scan_flt(FltRecord *record, Refs &refs, Textures &textures); void scan_flt(FltRecord *record, Refs &refs, Textures &textures);

View File

@ -24,7 +24,7 @@
#include <pStatMonitor.h> #include <pStatMonitor.h>
#include <pointerTo.h> #include <pointerTo.h>
#include <set> #include "pset.h"
class GtkStatsWindow; class GtkStatsWindow;
@ -58,7 +58,7 @@ public:
void add_window(GtkStatsWindow *window); void add_window(GtkStatsWindow *window);
void remove_window(GtkStatsWindow *window); void remove_window(GtkStatsWindow *window);
typedef set<GtkStatsWindow *> Windows; typedef pset<GtkStatsWindow *> Windows;
Windows _windows; Windows _windows;
bool _destructing; bool _destructing;

View File

@ -27,7 +27,7 @@
#include <pointerTo.h> #include <pointerTo.h>
#include <gtk--.h> #include <gtk--.h>
#include <map> #include "pmap.h"
class PStatView; class PStatView;
class GtkStatsGuide; class GtkStatsGuide;
@ -74,7 +74,7 @@ private:
Gdk_GC _light_gc; Gdk_GC _light_gc;
// Table of graphics contexts for our various collectors. // Table of graphics contexts for our various collectors.
typedef map<int, Gdk_GC> GCs; typedef pmap<int, Gdk_GC> GCs;
GCs _gcs; GCs _gcs;
// Table of Y-positions for each of our rows, measured from the // Table of Y-positions for each of our rows, measured from the

View File

@ -27,7 +27,7 @@
#include <pointerTo.h> #include <pointerTo.h>
#include <gtk--.h> #include <gtk--.h>
#include <map> #include "pmap.h"
class PStatView; class PStatView;
class GtkStatsGuide; class GtkStatsGuide;
@ -83,7 +83,7 @@ private:
Gdk_GC _light_gc; Gdk_GC _light_gc;
// Table of graphics contexts for our various collectors. // Table of graphics contexts for our various collectors.
typedef map<int, Gdk_GC> GCs; typedef pmap<int, Gdk_GC> GCs;
GCs _gcs; GCs _gcs;
Gtk::Alignment *_label_align; Gtk::Alignment *_label_align;

View File

@ -45,8 +45,8 @@ public:
virtual void write(ostream &out, int indent_level = 0) const; virtual void write(ostream &out, int indent_level = 0) const;
private: private:
typedef map<int, PTA_float> VMap; typedef pmap<int, PTA_float> VMap;
typedef map<int, VMap> VMad; typedef pmap<int, VMap> VMad;
VMad _vmad; VMad _vmad;
public: public:

View File

@ -26,7 +26,7 @@
#include <pointerTo.h> #include <pointerTo.h>
#include <vector> #include "pvector.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : LwoGroupChunk // Class : LwoGroupChunk
@ -43,7 +43,7 @@ protected:
bool read_subchunks_iff(IffInputFile *in, size_t stop_at); bool read_subchunks_iff(IffInputFile *in, size_t stop_at);
void write_chunks(ostream &out, int indent_level) const; void write_chunks(ostream &out, int indent_level) const;
typedef vector< PT(IffChunk) > Chunks; typedef pvector< PT(IffChunk) > Chunks;
Chunks _chunks; Chunks _chunks;
public: public:

View File

@ -40,7 +40,7 @@ public:
virtual void write(ostream &out, int indent_level = 0) const; virtual void write(ostream &out, int indent_level = 0) const;
private: private:
typedef vector<LPoint3f> Points; typedef pvector<LPoint3f> Points;
Points _points; Points _points;
public: public:

View File

@ -42,7 +42,7 @@ public:
virtual void write(ostream &out, int indent_level = 0) const; virtual void write(ostream &out, int indent_level = 0) const;
private: private:
typedef map<int, int> TMap; typedef pmap<int, int> TMap;
TMap _tmap; TMap _tmap;
public: public:

View File

@ -68,7 +68,7 @@ public:
virtual void write(ostream &out, int indent_level = 0) const; virtual void write(ostream &out, int indent_level = 0) const;
private: private:
typedef vector< PT(Polygon) > Polygons; typedef pvector< PT(Polygon) > Polygons;
Polygons _polygons; Polygons _polygons;
public: public:

View File

@ -45,7 +45,7 @@ public:
virtual void write(ostream &out, int indent_level = 0) const; virtual void write(ostream &out, int indent_level = 0) const;
private: private:
typedef map<int, PTA_float> VMap; typedef pmap<int, PTA_float> VMap;
VMap _vmap; VMap _vmap;
public: public:

View File

@ -25,7 +25,7 @@
#include <eggVertexPool.h> #include <eggVertexPool.h>
#include <pointerTo.h> #include <pointerTo.h>
#include <map> #include "pmap.h"
class LwoToEggConverter; class LwoToEggConverter;
class LwoVertexMap; class LwoVertexMap;
@ -55,7 +55,7 @@ public:
// A number of vertex maps of different types may be associated, but // A number of vertex maps of different types may be associated, but
// we only care about some of the types here. // we only care about some of the types here.
typedef map<string, const LwoVertexMap *> VMap; typedef pmap<string, const LwoVertexMap *> VMap;
VMap _txuv; VMap _txuv;
VMap _pick; VMap _pick;
}; };

View File

@ -25,7 +25,7 @@
#include <eggGroup.h> #include <eggGroup.h>
#include <pointerTo.h> #include <pointerTo.h>
#include <map> #include "pmap.h"
class LwoToEggConverter; class LwoToEggConverter;
class CLwoPoints; class CLwoPoints;
@ -61,14 +61,14 @@ public:
PT(EggGroup) _egg_group; PT(EggGroup) _egg_group;
const LwoTags *_tags; const LwoTags *_tags;
typedef map<IffId, const LwoPolygonTags *> PTags; typedef pmap<IffId, const LwoPolygonTags *> PTags;
PTags _ptags; PTags _ptags;
const LwoPolygonTags *_surf_ptags; const LwoPolygonTags *_surf_ptags;
// There might be named maps associated with the polygons to bring a // There might be named maps associated with the polygons to bring a
// per-polygon mapping to the UV's. // per-polygon mapping to the UV's.
typedef map<string, const LwoDiscontinuousVertexMap *> VMad; typedef pmap<string, const LwoDiscontinuousVertexMap *> VMad;
VMad _txuv; VMad _txuv;
private: private:

View File

@ -31,7 +31,7 @@
#include <pt_EggMaterial.h> #include <pt_EggMaterial.h>
#include <vector_PT_EggVertex.h> #include <vector_PT_EggVertex.h>
#include <map> #include "pmap.h"
class LwoToEggConverter; class LwoToEggConverter;
class LwoSurfaceBlock; class LwoSurfaceBlock;

View File

@ -25,8 +25,8 @@
#include <lwoHeader.h> #include <lwoHeader.h>
#include <pointerTo.h> #include <pointerTo.h>
#include <vector> #include "pvector.h"
#include <map> #include "pmap.h"
class CLwoLayer; class CLwoLayer;
class CLwoClip; class CLwoClip;
@ -77,19 +77,19 @@ private:
CPT(LwoHeader) _lwo_header; CPT(LwoHeader) _lwo_header;
CLwoLayer *_generic_layer; CLwoLayer *_generic_layer;
typedef vector<CLwoLayer *> Layers; typedef pvector<CLwoLayer *> Layers;
Layers _layers; Layers _layers;
typedef vector<CLwoClip *> Clips; typedef pvector<CLwoClip *> Clips;
Clips _clips; Clips _clips;
typedef vector<CLwoPoints *> Points; typedef pvector<CLwoPoints *> Points;
Points _points; Points _points;
typedef vector<CLwoPolygons *> Polygons; typedef pvector<CLwoPolygons *> Polygons;
Polygons _polygons; Polygons _polygons;
typedef map<string, CLwoSurface *> Surfaces; typedef pmap<string, CLwoSurface *> Surfaces;
Surfaces _surfaces; Surfaces _surfaces;
}; };

View File

@ -63,7 +63,7 @@ private:
EggGroup *get_egg_group(const string &name, EggData &data); EggGroup *get_egg_group(const string &name, EggData &data);
typedef map<string, EggGroup *> Groups; typedef pmap<string, EggGroup *> Groups;
Groups _groups; Groups _groups;
public: public:

View File

@ -21,7 +21,7 @@
#include <pandatoolbase.h> #include <pandatoolbase.h>
#include <map> #include "pmap.h"
#include <string> #include <string>
class MayaShader; class MayaShader;
@ -34,7 +34,7 @@ public:
protected: protected:
typedef map<string, MayaShader *> Shaders; typedef pmap<string, MayaShader *> Shaders;
Shaders _shaders; Shaders _shaders;
}; };

View File

@ -26,9 +26,9 @@
#include <vector_string.h> #include <vector_string.h>
#include <string> #include <string>
#include <vector> #include "pvector.h"
#include <deque> #include "pdeque.h"
#include <map> #include "pmap.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : ProgramBase // Class : ProgramBase
@ -51,7 +51,7 @@ public:
virtual void parse_command_line(int argc, char *argv[]); virtual void parse_command_line(int argc, char *argv[]);
typedef deque<string> Args; typedef pdeque<string> Args;
Filename _program_name; Filename _program_name;
Args _program_args; Args _program_args;
@ -129,14 +129,14 @@ private:
typedef vector_string Runlines; typedef vector_string Runlines;
Runlines _runlines; Runlines _runlines;
typedef map<string, Option> OptionsByName; typedef pmap<string, Option> OptionsByName;
typedef vector<const Option *> OptionsByIndex; typedef pvector<const Option *> OptionsByIndex;
OptionsByName _options_by_name; OptionsByName _options_by_name;
OptionsByIndex _options_by_index; OptionsByIndex _options_by_index;
int _next_sequence; int _next_sequence;
bool _sorted_options; bool _sorted_options;
typedef map<string, string> GotOptions; typedef pmap<string, string> GotOptions;
GotOptions _got_options; GotOptions _got_options;
bool _last_newline; bool _last_newline;

View File

@ -27,7 +27,7 @@
#include <referenceCount.h> #include <referenceCount.h>
#include <pointerTo.h> #include <pointerTo.h>
#include <vector> #include "pvector.h"
class PStatReader; class PStatReader;
@ -80,7 +80,7 @@ private:
bool _is_level; bool _is_level;
}; };
typedef vector<Collector> Collectors; typedef pvector<Collector> Collectors;
Collectors _collectors; Collectors _collectors;
class Thread { class Thread {
@ -88,7 +88,7 @@ private:
string _name; string _name;
PT(PStatThreadData) _data; PT(PStatThreadData) _data;
}; };
typedef vector<Thread> Threads; typedef pvector<Thread> Threads;
Threads _threads; Threads _threads;
static PStatCollectorDef _null_collector; static PStatCollectorDef _null_collector;

View File

@ -27,7 +27,7 @@
#include <luse.h> #include <luse.h>
#include <vector_int.h> #include <vector_int.h>
#include <map> #include "pmap.h"
class PStatView; class PStatView;
@ -104,7 +104,7 @@ protected:
typedef vector_int Labels; typedef vector_int Labels;
Labels _labels; Labels _labels;
typedef vector<GuideBar> GuideBars; typedef pvector<GuideBar> GuideBars;
GuideBars _guide_bars; GuideBars _guide_bars;
int _guide_bar_units; int _guide_bar_units;
string _unit_name; string _unit_name;

View File

@ -28,7 +28,7 @@
#include <pointerTo.h> #include <pointerTo.h>
#include <luse.h> #include <luse.h>
#include <map> #include "pmap.h"
class PStatCollectorDef; class PStatCollectorDef;
@ -101,12 +101,12 @@ private:
string _client_hostname; string _client_hostname;
string _client_progname; string _client_progname;
typedef map<int, PStatView> Views; typedef pmap<int, PStatView> Views;
Views _views; Views _views;
typedef map<int, Views> LevelViews; typedef pmap<int, Views> LevelViews;
LevelViews _level_views; LevelViews _level_views;
typedef map<int, RGBColorf> Colors; typedef pmap<int, RGBColorf> Colors;
Colors _colors; Colors _colors;
}; };

View File

@ -28,7 +28,7 @@
#include <luse.h> #include <luse.h>
#include <vector_int.h> #include <vector_int.h>
#include <map> #include "pmap.h"
class PStatFrameData; class PStatFrameData;
@ -83,7 +83,7 @@ private:
float _start; float _start;
float _end; float _end;
}; };
typedef vector<ColorBar> ColorBars; typedef pvector<ColorBar> ColorBars;
class BarBuilder { class BarBuilder {
public: public:
@ -96,7 +96,7 @@ private:
ColorBars _color_bars; ColorBars _color_bars;
}; };
typedef map<int, BarBuilder> PageData; typedef pmap<int, BarBuilder> PageData;
PageData _page_data; PageData _page_data;
int _current_frame; int _current_frame;
}; };

View File

@ -25,8 +25,8 @@
#include <connectionManager.h> #include <connectionManager.h>
#include <map> #include "pmap.h"
#include <deque> #include "pdeque.h"
class PStatReader; class PStatReader;
@ -68,13 +68,13 @@ private:
PStatListener *_listener; PStatListener *_listener;
typedef map<PT(Connection), PStatReader *> Readers; typedef pmap<PT(Connection), PStatReader *> Readers;
Readers _readers; Readers _readers;
typedef vector<PStatReader *> LostReaders; typedef pvector<PStatReader *> LostReaders;
LostReaders _lost_readers; LostReaders _lost_readers;
LostReaders _removed_readers; LostReaders _removed_readers;
typedef deque<int> Ports; typedef pdeque<int> Ports;
Ports _available_udp_ports; Ports _available_udp_ports;
int _next_udp_port; int _next_udp_port;
}; };

View File

@ -28,7 +28,7 @@
#include <luse.h> #include <luse.h>
#include <vector_int.h> #include <vector_int.h>
#include <map> #include "pmap.h"
class PStatView; class PStatView;
@ -78,8 +78,8 @@ protected:
int _collector_index; int _collector_index;
float _net_value; float _net_value;
}; };
typedef vector<ColorData> FrameData; typedef pvector<ColorData> FrameData;
typedef map<int, FrameData> Data; typedef pmap<int, FrameData> Data;
const FrameData &get_frame_data(int frame_number); const FrameData &get_frame_data(int frame_number);

View File

@ -23,7 +23,7 @@
#include <referenceCount.h> #include <referenceCount.h>
#include <deque> #include "pdeque.h"
class PStatCollectorDef; class PStatCollectorDef;
class PStatFrameData; class PStatFrameData;
@ -71,7 +71,7 @@ public:
private: private:
const PStatClientData *_client_data; const PStatClientData *_client_data;
typedef deque<PStatFrameData *> Frames; typedef pdeque<PStatFrameData *> Frames;
Frames _frames; Frames _frames;
int _first_frame_number; int _first_frame_number;
float _history; float _history;

View File

@ -72,7 +72,7 @@ private:
bool _show_level; bool _show_level;
bool _all_collectors_known; bool _all_collectors_known;
typedef map<int, PStatViewLevel *> Levels; typedef pmap<int, PStatViewLevel *> Levels;
Levels _levels; Levels _levels;
int _level_index; int _level_index;

View File

@ -21,7 +21,7 @@
#include <pandatoolbase.h> #include <pandatoolbase.h>
#include <vector> #include "pvector.h"
class PStatClientData; class PStatClientData;
@ -50,7 +50,7 @@ private:
float _value_alone; float _value_alone;
PStatViewLevel *_parent; PStatViewLevel *_parent;
typedef vector<PStatViewLevel *> Children; typedef pvector<PStatViewLevel *> Children;
Children _children; Children _children;
friend class PStatView; friend class PStatView;

View File

@ -27,8 +27,8 @@
#include <vector_string.h> #include <vector_string.h>
#include <filename.h> #include <filename.h>
#include <vector> #include "pvector.h"
#include <set> #include "pset.h"
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : SoftCVS // Class : SoftCVS
@ -43,8 +43,8 @@ public:
void run(); void run();
private: private:
typedef vector<SoftFilename> SceneFiles; typedef pvector<SoftFilename> SceneFiles;
typedef multiset<SoftFilename> ElementFiles; typedef pmultipset<SoftFilename> ElementFiles;
void traverse_root(); void traverse_root();
void traverse_subdir(const Filename &directory); void traverse_subdir(const Filename &directory);
@ -54,7 +54,7 @@ private:
void remove_unused_elements(); void remove_unused_elements();
bool rename_file(SceneFiles::iterator begin, SceneFiles::iterator end); bool rename_file(SceneFiles::iterator begin, SceneFiles::iterator end);
bool scan_cvs(const string &dirname, set<string> &cvs_elements); bool scan_cvs(const string &dirname, pset<string> &cvs_elements);
void scan_scene_file(istream &in); void scan_scene_file(istream &in);