Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PaletteGroups Class Reference

#include <paletteGroups.h>

Inheritance diagram for PaletteGroups:

TypedWritable TypedObject List of all members.

Public Types

typedef Groups::const_pointer pointer
typedef Groups::const_pointer const_pointer
typedef Groups::const_reference reference
typedef Groups::const_reference const_reference
typedef Groups::const_iterator iterator
typedef Groups::const_iterator const_iterator
typedef Groups::const_reverse_iterator reverse_iterator
typedef Groups::const_reverse_iterator const_reverse_iterator
typedef Groups::size_type size_type
typedef Groups::difference_type difference_type

Public Member Functions

 PaletteGroups ()
void insert (PaletteGroup *group)
size_type count (PaletteGroup *group) const
void make_complete (const PaletteGroups &a)
void make_union (const PaletteGroups &a, const PaletteGroups &b)
void make_intersection (const PaletteGroups &a, const PaletteGroups &b)
void clear ()
bool empty () const
size_type size () const
iterator begin () const
iterator end () const
void output (ostream &out) const
void write (ostream &out, int indent_level=0) const
virtual void write_datagram (BamWriter *writer, Datagram &datagram)
virtual int complete_pointers (TypedWritable **p_list, BamReader *manager)
void fillin (DatagramIterator &scan, BamReader *manager)
virtual TypeHandle get_type () const

Static Public Member Functions

void register_with_read_factory ()
TypeHandle get_class_type ()
void init_type ()

Static Protected Member Functions

TypedWritablemake_PaletteGroups (const FactoryParams &params)

Private Types

typedef pset< PaletteGroup * > Groups

Private Member Functions

void r_make_complete (Groups &result, PaletteGroup *group)

Private Attributes

Groups _groups
int _num_groups

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef Groups::const_iterator PaletteGroups::const_iterator
 

Definition at line 47 of file paletteGroups.h.

Referenced by TextureImage::assign_to_groups(), EggFile::build_cross_links(), and TxaLine::output().

typedef Groups::const_pointer PaletteGroups::const_pointer
 

Definition at line 42 of file paletteGroups.h.

typedef Groups::const_reference PaletteGroups::const_reference
 

Definition at line 45 of file paletteGroups.h.

typedef Groups::const_reverse_iterator PaletteGroups::const_reverse_iterator
 

Definition at line 49 of file paletteGroups.h.

typedef Groups::difference_type PaletteGroups::difference_type
 

Definition at line 51 of file paletteGroups.h.

typedef pset<PaletteGroup *> PaletteGroups::Groups [private]
 

Definition at line 37 of file paletteGroups.h.

typedef Groups::const_iterator PaletteGroups::iterator
 

Definition at line 46 of file paletteGroups.h.

Referenced by TextureImage::assign_groups(), PaletteGroup::get_complete_placements(), PaletteGroup::set_dependency_level(), and PaletteGroup::set_dependency_order().

typedef Groups::const_pointer PaletteGroups::pointer
 

Definition at line 41 of file paletteGroups.h.

typedef Groups::const_reference PaletteGroups::reference
 

Definition at line 44 of file paletteGroups.h.

typedef Groups::const_reverse_iterator PaletteGroups::reverse_iterator
 

Definition at line 48 of file paletteGroups.h.

typedef Groups::size_type PaletteGroups::size_type
 

Definition at line 50 of file paletteGroups.h.


Constructor & Destructor Documentation

PaletteGroups::PaletteGroups  ) 
 

Definition at line 38 of file paletteGroups.cxx.


Member Function Documentation

PaletteGroups::iterator PaletteGroups::begin  )  const
 

Definition at line 197 of file paletteGroups.cxx.

References _groups.

Referenced by TextureImage::assign_groups(), TextureImage::assign_to_groups(), EggFile::build_cross_links(), EggFile::choose_placements(), PaletteGroup::get_complete_placements(), TxaLine::output(), PaletteGroup::set_dependency_level(), and PaletteGroup::set_dependency_order().

void PaletteGroups::clear  ) 
 

Definition at line 167 of file paletteGroups.cxx.

References _groups.

Referenced by EggFile::build_cross_links(), PaletteGroup::clear_depends(), and EggFile::match_txa_groups().

int PaletteGroups::complete_pointers TypedWritable **  p_list,
BamReader manager
[virtual]
 

Reimplemented from TypedWritable.

Definition at line 323 of file paletteGroups.cxx.

References _groups, _num_groups, TypedWritable::complete_pointers(), and DCAST_INTO_R.

Referenced by TextureImage::complete_pointers(), PaletteGroup::complete_pointers(), and EggFile::complete_pointers().

PaletteGroups::size_type PaletteGroups::count PaletteGroup group  )  const
 

Definition at line 60 of file paletteGroups.cxx.

References _groups.

bool PaletteGroups::empty  )  const
 

Definition at line 177 of file paletteGroups.cxx.

References _groups.

Referenced by TextureImage::assign_groups(), EggFile::build_cross_links(), EggFile::choose_placements(), TextureImage::note_egg_file(), EggFile::write_description(), and TextureImage::write_source_pathnames().

PaletteGroups::iterator PaletteGroups::end  )  const
 

Definition at line 207 of file paletteGroups.cxx.

References _groups.

Referenced by TextureImage::assign_groups(), TextureImage::assign_to_groups(), EggFile::build_cross_links(), PaletteGroup::get_complete_placements(), TxaLine::output(), PaletteGroup::set_dependency_level(), and PaletteGroup::set_dependency_order().

void PaletteGroups::fillin DatagramIterator scan,
BamReader manager
 

Reimplemented from TypedWritable.

Definition at line 360 of file paletteGroups.cxx.

References _num_groups, TypedWritable::fillin(), DatagramIterator::get_int32(), and BamReader::read_pointers().

Referenced by TextureImage::fillin(), PaletteGroup::fillin(), EggFile::fillin(), and make_PaletteGroups().

TypeHandle PaletteGroups::get_class_type void   )  [inline, static]
 

Reimplemented from TypedObject.

Definition at line 94 of file paletteGroups.h.

References _type_handle.

Referenced by get_type(), and register_with_read_factory().

virtual TypeHandle PaletteGroups::get_type void   )  const [inline, virtual]
 

Reimplemented from TypedWritable.

Definition at line 102 of file paletteGroups.h.

References get_class_type().

void PaletteGroups::init_type void   )  [inline, static]
 

Reimplemented from TypedWritable.

Definition at line 97 of file paletteGroups.h.

References _type_handle, TypedObject::get_class_type(), TypedWritable::init_type(), and register_type().

Referenced by ConfigureFn().

void PaletteGroups::insert PaletteGroup group  ) 
 

Definition at line 48 of file paletteGroups.cxx.

References _groups.

Referenced by TextureImage::assign_groups(), EggFile::build_cross_links(), PaletteGroup::group_with(), and TxaLine::parse().

void PaletteGroups::make_complete const PaletteGroups &  a  ) 
 

Definition at line 74 of file paletteGroups.cxx.

References _groups, a, and r_make_complete().

Referenced by EggFile::build_cross_links(), PaletteGroup::get_complete_placements(), and Palettizer::report_statistics().

void PaletteGroups::make_intersection const PaletteGroups &  a,
const PaletteGroups &  b
 

Definition at line 137 of file paletteGroups.cxx.

References _groups, a, and b.

Referenced by TextureImage::assign_groups(), and EggFile::choose_placements().

TypedWritable * PaletteGroups::make_PaletteGroups const FactoryParams params  )  [static, protected]
 

Definition at line 342 of file paletteGroups.cxx.

References fillin(), params, and parse_params().

Referenced by register_with_read_factory().

void PaletteGroups::make_union const PaletteGroups &  a,
const PaletteGroups &  b
 

Definition at line 93 of file paletteGroups.cxx.

References _groups, a, and b.

Referenced by TextureImage::assign_groups(), and EggFile::match_txa_groups().

void PaletteGroups::output ostream &  out  )  const
 

Definition at line 217 of file paletteGroups.cxx.

References _groups.

Referenced by operator<<().

void PaletteGroups::r_make_complete Groups result,
PaletteGroup group
[private]
 

Definition at line 270 of file paletteGroups.cxx.

References PaletteGroup::_dependent, and _groups.

Referenced by make_complete().

void PaletteGroups::register_with_read_factory  )  [static]
 

Definition at line 290 of file paletteGroups.cxx.

References get_class_type(), BamReader::get_factory(), and make_PaletteGroups().

Referenced by ConfigureFn().

PaletteGroups::size_type PaletteGroups::size  )  const
 

Definition at line 187 of file paletteGroups.cxx.

References _groups.

Referenced by Palettizer::report_statistics().

void PaletteGroups::write ostream &  out,
int  indent_level = 0
const
 

Definition at line 245 of file paletteGroups.cxx.

References _groups, and indent().

Referenced by EggFile::choose_placements().

void PaletteGroups::write_datagram BamWriter writer,
Datagram datagram
[virtual]
 

Reimplemented from TypedWritable.

Definition at line 303 of file paletteGroups.cxx.

References _groups, Datagram::add_uint32(), TypedWritable::write_datagram(), and writer().

Referenced by TextureImage::write_datagram(), PaletteGroup::write_datagram(), and EggFile::write_datagram().


Member Data Documentation

Groups PaletteGroups::_groups [private]
 

Definition at line 73 of file paletteGroups.h.

Referenced by begin(), clear(), complete_pointers(), count(), empty(), end(), insert(), make_complete(), make_intersection(), make_union(), output(), r_make_complete(), size(), write(), and write_datagram().

int PaletteGroups::_num_groups [private]
 

Definition at line 91 of file paletteGroups.h.

Referenced by complete_pointers(), and fillin().

TypeHandle PaletteGroups::_type_handle [static, private]
 

Reimplemented from TypedWritable.

Definition at line 30 of file paletteGroups.cxx.

Referenced by get_class_type(), and init_type().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:19 2003 for Panda-Tool by doxygen1.3