Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

hashenum< T > Class Template Reference

#include <hash_types.H>

Inheritance diagram for hashenum< T >:

Inheritance graph
[legend]
Collaboration diagram for hashenum< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 hashenum (Cstr_ptr &var, T val, int dist=0, int dup=0)
 ~hashenum ()
get (CGELptr &g) const
void set (GELptr g, T v)
virtual T str_to_enum (Cstr_ptr &s) const
virtual void put_var (TAGformat &d, CGELptr &gel) const
virtual void get_var (TAGformat &d)
virtual void notify_dup (CGELptr &old, CGELptr &newg)
void del (CGELptr &g)
int is_default (CGELptr &g) const
CHASH & hash () const
virtual CTAGlist & tags () const
virtual DATA_ITEMdup () const
virtual STAT_STR_RET class_name () const
virtual void put_dummy (TAGformat &) const
virtual void notify_exist (CGELptr &g, int f)
virtual void notify_distrib (STDdstream &ds, CGELptr &g)
virtual void add_tags () const
virtual STDdstreamformat (STDdstream &d) const
virtual STDdstreamdecode (STDdstream &d)
virtual void recompute ()
virtual int is_of_type (Cstr_ptr &t) const
void distrib_obs ()
void unobs_distrib ()
void exist_obs ()
void unobs_exist ()
void dup_obs ()
void unobs_dup ()

Static Public Member Functions

static STAT_STR_RET static_name ()
static int add_decoder (Cstr_ptr &d, DATA_ITEM *di, int copy=-1)
static void set_default_decoder (DATA_ITEM *(*d)(STDdstream &, Cstr_ptr &, DATA_ITEM *))
static DATA_ITEMDecode (STDdstream &d, int DelayDecoding=0)
static DATA_ITEMlookup (Cstr_ptr &d)
static HASHdi_hash ()
static void notify_distrib_obs (STDdstream &d, CGELptr &gel)
static void notify_exist_obs (CGELptr &o, int f)
static void notify_dup_obs (CGELptr &o, CGELptr &newg)

Protected Member Functions

void * find (CGELptr &g) const
void add (CGELptr &g, void *v)
void del_hash_items ()
DUPobs_listdupobs_list ()

Static Protected Member Functions

static GELdistobs_listdistobs_list ()
static EXISTobs_listexistobs_list ()

Protected Attributes

str_ptr _str
const int _dist
HASH _dhash
const int _dup
TAGlist _tags
int _copy
TAGlist _DEFINERtags

Static Protected Attributes

static GELdistobs_list_dist_obs = 0
static GELlist _created
static EXISTobs_list_exist_obs = 0
static DUPobs_list_dup_obs = 0

Private Member Functions

virtual void del_item (void *item)

Private Attributes

_val

Detailed Description

template<class T>
class hashenum< T >

Definition at line 132 of file hash_types.H.


Constructor & Destructor Documentation

template<class T>
hashenum< T >::hashenum Cstr_ptr &  var,
val,
int  dist = 0,
int  dup = 0
[inline]
 

Definition at line 136 of file hash_types.H.

template<class T>
hashenum< T >::~hashenum  )  [inline]
 

Definition at line 138 of file hash_types.H.


Member Function Documentation

void hashdist::add CGELptr g,
void *  v
[inline, protected, inherited]
 

Definition at line 36 of file hash_types.H.

References hashdist::_dhash, and HASH::add().

Referenced by hashenum< GEOM::cons >::set(), hashptr< T >::set(), and hashvar< int >::set().

int DATA_ITEM::add_decoder Cstr_ptr &  d,
DATA_ITEM di,
int  copy = -1
[static, inherited]
 

Definition at line 41 of file data_item.C.

References DATA_ITEM::_hash, and HASH::add().

Referenced by JOTvar< OBJ, TYPE >::check_inst_name(), FUNC_ITEM::FUNC_ITEM(), hashdist::hashdist(), JOTvar< OBJ, TYPE >::JOTvar(), and DISTRIB::notify_exist().

virtual void DATA_ITEM::add_tags  )  const [inline, virtual, inherited]
 

Definition at line 205 of file data_item.H.

virtual STAT_STR_RET hashdist::class_name  )  const [inline, virtual, inherited]
 

Implements DATA_ITEM.

Definition at line 68 of file hash_types.H.

References hashdist::_str.

Referenced by hashdist::notify_distrib(), and hashenum< GEOM::cons >::put_var().

DATA_ITEM * DATA_ITEM::Decode STDdstream d,
int  DelayDecoding = 0
[static, inherited]
 

Definition at line 57 of file data_item.C.

References DATA_ITEM::_copy, DATA_ITEM::_decode_unknown, DATA_ITEM::class_name(), DATA_ITEM::decode(), DATA_ITEM::dup(), Config::get_var_bool(), and DATA_ITEM::lookup().

Referenced by JOThash::get(), DISTRIB::interpret(), and operator>>().

STDdstream & DATA_ITEM::decode STDdstream d  )  [virtual, inherited]
 

Reimplemented in JOTsend_geom, and BMESH.

Definition at line 145 of file data_item.C.

References DATA_ITEM::class_name(), COMMENT::decode(), j, COMMENT::name(), TAGformat::read_end_id(), TAGformat::read_id(), DATA_ITEM::recompute(), and DATA_ITEM::tags().

Referenced by DATA_ITEM::Decode(), BMESH::decode(), JOTio::get(), BMESH::get_patches(), Patch::get_texture(), VIEW::get_view_animator(), and VIEW::get_view_data_file().

void hashdist::del CGELptr g  )  [inline, inherited]
 

Definition at line 59 of file hash_types.H.

References hashdist::_dhash, HASH::del(), hashdist::del_item(), and hashdist::find().

Referenced by JOTcreate::get(), hashptr< T >::notify_exist(), hashdist::notify_exist(), hashenum< GEOM::cons >::set(), hashptr< T >::set(), and hashvar< int >::set().

void hashdist::del_hash_items  )  [inline, protected, inherited]
 

Definition at line 38 of file hash_types.H.

References hashdist::_dhash, HASH::del(), hashdist::del_item(), HASH::get_items(), and ARRAY< T >::num().

Referenced by hashenum< GEOM::cons >::~hashenum(), hashptr< T >::~hashptr(), and hashvar< int >::~hashvar().

template<class T>
virtual void hashenum< T >::del_item void *  item  )  [inline, private, virtual]
 

Implements hashdist.

Definition at line 134 of file hash_types.H.

static HASH* DATA_ITEM::di_hash  )  [inline, static, inherited]
 

Definition at line 225 of file data_item.H.

References DATA_ITEM::_hash.

static GELdistobs_list* GELdistobs::distobs_list  )  [inline, static, protected, inherited]
 

Definition at line 19 of file gel_obs.H.

References GELdistobs::_dist_obs.

Referenced by GELdistobs::distrib_obs(), GELdistobs::notify_distrib_obs(), and GELdistobs::unobs_distrib().

void GELdistobs::distrib_obs  )  [inline, inherited]
 

Definition at line 28 of file gel_obs.H.

References ARRAY< T >::add_uniquely(), and GELdistobs::distobs_list().

Referenced by hashdist::hashdist().

virtual DATA_ITEM* hashdist::dup  )  const [inline, virtual, inherited]
 

Implements DATA_ITEM.

Definition at line 67 of file hash_types.H.

void DUPobs::dup_obs  )  [inline, inherited]
 

Definition at line 119 of file gel_obs.H.

References DUPobs::dupobs_list().

Referenced by hashdist::hashdist().

DUPobs_list* DUPobs::dupobs_list  )  [inline, protected, inherited]
 

Definition at line 110 of file gel_obs.H.

References DUPobs::_dup_obs.

Referenced by DUPobs::dup_obs(), and DUPobs::unobs_dup().

void EXISTobs::exist_obs  )  [inline, inherited]
 

Definition at line 58 of file gel_obs.H.

References EXISTobs::existobs_list().

Referenced by DISTRIB::DISTRIB(), hashdist::hashdist(), and VisRefImage::observe().

static EXISTobs_list* EXISTobs::existobs_list  )  [inline, static, protected, inherited]
 

Definition at line 47 of file gel_obs.H.

References EXISTobs::_exist_obs.

Referenced by EXISTobs::exist_obs(), EXISTobs::notify_exist_obs(), and EXISTobs::unobs_exist().

void* hashdist::find CGELptr g  )  const [inline, protected, inherited]
 

Definition at line 35 of file hash_types.H.

References hashdist::_dhash, and HASH::find().

Referenced by hashdist::del(), hashenum< GEOM::cons >::get(), hashptr< T >::get(), hashvar< int >::get(), hashdist::is_default(), hashenum< GEOM::cons >::notify_dup(), hashptr< T >::notify_dup(), hashvar< int >::notify_dup(), hashenum< GEOM::cons >::put_var(), and hashvar< int >::put_var().

STDdstream & DATA_ITEM::format STDdstream d  )  const [virtual, inherited]
 

Reimplemented in Animator, JOTdone, JOTsend_geom, and BMESH.

Definition at line 194 of file data_item.C.

References DATA_ITEM::class_name(), TAGformat::end_id(), Config::get_var_bool(), TAGformat::id(), DATA_ITEM::tags(), and STDdstream::write_newline().

Referenced by JOTdone::format(), BMESH::format(), Animator::format(), JOTio::put(), and VIEW::put_view_data_file().

template<class T>
T hashenum< T >::get CGELptr g  )  const [inline]
 

Definition at line 139 of file hash_types.H.

Referenced by FilmTrans::down(), hashenum< GEOM::cons >::notify_dup(), and hashenum< GEOM::cons >::put_var().

template<class T>
virtual void hashenum< T >::get_var TAGformat d  )  [inline, virtual]
 

Implements hashdist.

Definition at line 155 of file hash_types.H.

CHASH& hashdist::hash  )  const [inline, inherited]
 

Definition at line 65 of file hash_types.H.

References hashdist::_dhash.

int hashdist::is_default CGELptr g  )  const [inline, inherited]
 

Definition at line 64 of file hash_types.H.

References hashdist::find().

virtual int DATA_ITEM::is_of_type Cstr_ptr &  t  )  const [inline, virtual, inherited]
 

Definition at line 214 of file data_item.H.

References IS.

Referenced by BMESH::operator=().

static DATA_ITEM* DATA_ITEM::lookup Cstr_ptr &  d  )  [inline, static, inherited]
 

Definition at line 222 of file data_item.H.

References DATA_ITEM::_hash, and HASH::find().

Referenced by DATA_ITEM::Decode(), FUNC_ITEM::FUNC_ITEM(), Patch::get_tex(), and BMESH::read_jot_stream().

virtual void hashdist::notify_distrib STDdstream ds,
CGELptr g
[inline, virtual, inherited]
 

Implements GELdistobs.

Definition at line 74 of file hash_types.H.

References hashdist::class_name(), and hashdist::put_var().

Referenced by JOThash::put().

static void GELdistobs::notify_distrib_obs STDdstream d,
CGELptr gel
[inline, static, inherited]
 

Definition at line 23 of file gel_obs.H.

References GELdistobs::distobs_list().

Referenced by JOTsend_geom::format().

template<class T>
virtual void hashenum< T >::notify_dup CGELptr old,
CGELptr newg
[inline, virtual]
 

Implements hashdist.

Definition at line 159 of file hash_types.H.

static void DUPobs::notify_dup_obs CGELptr o,
CGELptr newg
[inline, static, inherited]
 

Definition at line 114 of file gel_obs.H.

References DUPobs::_dup_obs.

Referenced by GEL::GEL().

virtual void hashdist::notify_exist CGELptr g,
int  f
[inline, virtual, inherited]
 

Implements EXISTobs.

Reimplemented in hashptr< T >.

Definition at line 71 of file hash_types.H.

References hashdist::del().

static void EXISTobs::notify_exist_obs CGELptr o,
int  f
[inline, static, inherited]
 

Definition at line 52 of file gel_obs.H.

References EXISTobs::_exist_obs, and EXISTobs::existobs_list().

virtual void hashdist::put_dummy TAGformat  )  const [inline, virtual, inherited]
 

Definition at line 69 of file hash_types.H.

Referenced by hashdist::hashdist().

template<class T>
virtual void hashenum< T >::put_var TAGformat d,
CGELptr gel
const [inline, virtual]
 

Implements hashdist.

Definition at line 150 of file hash_types.H.

virtual void DATA_ITEM::recompute  )  [inline, virtual, inherited]
 

Reimplemented in Patch.

Definition at line 208 of file data_item.H.

Referenced by DATA_ITEM::decode().

template<class T>
void hashenum< T >::set GELptr  g,
v
[inline]
 

Definition at line 141 of file hash_types.H.

Referenced by TestSPSapp::create_grid(), hashenum< GEOM::cons >::get_var(), TestSPSapp::load_scene(), and hashenum< GEOM::cons >::notify_dup().

static void DATA_ITEM::set_default_decoder DATA_ITEM *(*)(STDdstream &, Cstr_ptr &, DATA_ITEM *)  d  )  [inline, static, inherited]
 

Definition at line 218 of file data_item.H.

References DATA_ITEM::_decode_unknown.

STAT_STR_RET DATA_ITEM::static_name  )  [static, inherited]
 

Definition at line 31 of file data_item.C.

References RET_STAT_STR.

Referenced by BALLwidget_anchor::BALLwidget_anchor(), CAMwidget_anchor::CAMwidget_anchor(), Patch::cur_tex(), OGLTexture::draw_id_ref(), OGLTexture::draw_id_triangles(), OGLTexture::draw_vis_ref(), VIEW::get_view_animator(), GRIDwidget_anchor::GRIDwidget_anchor(), and toggle_sil_frame().

template<class T>
virtual T hashenum< T >::str_to_enum Cstr_ptr &  s  )  const [inline, virtual]
 

Reimplemented in XformConstraint.

Definition at line 149 of file hash_types.H.

Referenced by hashenum< GEOM::cons >::get_var().

virtual CTAGlist& hashdist::tags  )  const [inline, virtual, inherited]
 

Reimplemented from DATA_ITEM.

Definition at line 66 of file hash_types.H.

References hashdist::_tags.

void GELdistobs::unobs_distrib  )  [inline, inherited]
 

Definition at line 29 of file gel_obs.H.

References GELdistobs::distobs_list(), and ARRAY< T >::rem().

void DUPobs::unobs_dup  )  [inline, inherited]
 

Definition at line 120 of file gel_obs.H.

References DUPobs::dupobs_list().

void EXISTobs::unobs_exist  )  [inline, inherited]
 

Definition at line 59 of file gel_obs.H.

References EXISTobs::existobs_list().

Referenced by VisRefImage::unobserve().


Member Data Documentation

int DATA_ITEM::_copy [protected, inherited]
 

Definition at line 197 of file data_item.H.

Referenced by DATA_ITEM::Decode().

GELlist EXISTobs::_created [static, protected, inherited]
 

Definition at line 44 of file gel_obs.H.

TAGlist DATA_ITEM::_DEFINERtags [protected, inherited]
 

Definition at line 198 of file data_item.H.

Referenced by DATA_ITEM::tags().

HASH hashdist::_dhash [protected, inherited]
 

Definition at line 32 of file hash_types.H.

Referenced by hashdist::add(), hashdist::del(), hashdist::del_hash_items(), hashdist::find(), and hashdist::hash().

const int hashdist::_dist [protected, inherited]
 

Definition at line 31 of file hash_types.H.

Referenced by hashdist::hashdist(), hashvar< int >::put_var(), hashenum< GEOM::cons >::set(), hashptr< T >::set(), and hashvar< int >::set().

GELdistobs_list * GELdistobs::_dist_obs = 0 [static, protected, inherited]
 

Definition at line 18 of file gel_obs.H.

Referenced by GELdistobs::distobs_list().

const int hashdist::_dup [protected, inherited]
 

Definition at line 33 of file hash_types.H.

Referenced by hashdist::hashdist().

DUPobs_list * DUPobs::_dup_obs = 0 [static, protected, inherited]
 

Definition at line 109 of file gel_obs.H.

Referenced by DUPobs::dupobs_list(), and DUPobs::notify_dup_obs().

EXISTobs_list * EXISTobs::_exist_obs = 0 [static, protected, inherited]
 

Definition at line 46 of file gel_obs.H.

Referenced by EXISTobs::existobs_list(), and EXISTobs::notify_exist_obs().

str_ptr hashdist::_str [protected, inherited]
 

Definition at line 30 of file hash_types.H.

Referenced by hashdist::class_name(), and hashdist::hashdist().

TAGlist hashdist::_tags [protected, inherited]
 

Definition at line 34 of file hash_types.H.

Referenced by hashdist::hashdist(), and hashdist::tags().

template<class T>
T hashenum< T >::_val [private]
 

Definition at line 133 of file hash_types.H.

Referenced by hashenum< GEOM::cons >::get().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:45:58 2006 for jot by  doxygen 1.4.4