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

TDI< T > Class Template Reference

#include <data_item.H>

Inheritance diagram for TDI< T >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TDI (const T &x)
T & get ()
const T & get () const
virtual DATA_ITEMdup () const
virtual CTAGlist & tags () const
virtual STAT_STR_RET class_name () const
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

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 ()

Protected Member Functions

void put_val (TAGformat &d) const
void get_val (TAGformat &d)

Protected Attributes

_x
TAGlist _tags
int _copy
TAGlist _DEFINERtags

Detailed Description

template<class T>
class TDI< T >

Definition at line 242 of file data_item.H.


Constructor & Destructor Documentation

template<class T>
TDI< T >::TDI const T &  x  )  [inline]
 

Definition at line 249 of file data_item.H.

References TDI< T >::_tags, TDI< T >::get_val(), NULL_STR, and TDI< T >::put_val().


Member Function Documentation

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.

template<class T>
virtual STAT_STR_RET TDI< T >::class_name  )  const [inline, virtual]
 

Implements DATA_ITEM.

Definition at line 255 of file data_item.H.

References TDI< T >::_x, and NAME().

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().

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

Definition at line 225 of file data_item.H.

References DATA_ITEM::_hash.

template<class T>
virtual DATA_ITEM* TDI< T >::dup  )  const [inline, virtual]
 

Implements DATA_ITEM.

Definition at line 253 of file data_item.H.

References TDI< T >::_x.

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>
const T& TDI< T >::get  )  const [inline]
 

Definition at line 252 of file data_item.H.

References TDI< T >::_x.

template<class T>
T& TDI< T >::get  )  [inline]
 

Definition at line 251 of file data_item.H.

References TDI< T >::_x.

template<class T>
void TDI< T >::get_val TAGformat d  )  [inline, protected]
 

Definition at line 247 of file data_item.H.

References TDI< T >::_x.

Referenced by TDI< T >::TDI().

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().

template<class T>
void TDI< T >::put_val TAGformat d  )  const [inline, protected]
 

Definition at line 246 of file data_item.H.

References TDI< T >::_x, TAGformat::end_id(), and TAGformat::id().

Referenced by TDI< T >::TDI().

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().

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 CTAGlist& TDI< T >::tags  )  const [inline, virtual]
 

Reimplemented from DATA_ITEM.

Definition at line 254 of file data_item.H.

References TDI< T >::_tags.


Member Data Documentation

int DATA_ITEM::_copy [protected, inherited]
 

Definition at line 197 of file data_item.H.

Referenced by DATA_ITEM::Decode().

TAGlist DATA_ITEM::_DEFINERtags [protected, inherited]
 

Definition at line 198 of file data_item.H.

Referenced by DATA_ITEM::tags().

template<class T>
TAGlist TDI< T >::_tags [protected]
 

Definition at line 245 of file data_item.H.

Referenced by TDI< T >::tags(), and TDI< T >::TDI().

template<class T>
T TDI< T >::_x [protected]
 

Definition at line 244 of file data_item.H.

Referenced by TDI< T >::class_name(), TDI< T >::dup(), TDI< T >::get(), TDI< T >::get_val(), and TDI< T >::put_val().


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