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

osg::SimpleAttachment< AttachmentDescT > Class Template Reference
[OpenSG Field Container Library]

Template to build simple attachment classes which store only one field. More...

#include <OSGAttachmentImpl.h>

Inheritance diagram for osg::SimpleAttachment< AttachmentDescT >:

Inheritance graph
[legend]
Collaboration diagram for osg::SimpleAttachment< AttachmentDescT >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef AttachmentDescT::FieldTypeT StoredFieldType
typedef SimpleAttachment<
AttachmentDescT > 
Self
typedef FCPtr< AttachmentPtr,
Self
PtrType
enum  { SimpleFieldId = Inherited::NextFieldId, NextFieldId = SimpleFieldId + 1 }

Public Methods

Get
StoredFieldTypegetFieldPtr (void)
StoredFieldTypegetField (void)
 Returns reference to the stored field.

const StoredFieldTypegetField (void) const
 Returns const reference to the stored field.

Binary Access
virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Dump
virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const

Static Public Attributes

const BitVector SimpleFieldMask

Protected Types

typedef Attachment Inherited
 Parent type.


Protected Methods

Constructors
 SimpleAttachment (void)
 SimpleAttachment (const SimpleAttachment &source)
Destructors
virtual ~SimpleAttachment (void)
Sync
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
void executeSyncImpl (SimpleAttachment *pOther, const BitVector &whichField)

Protected Attributes

Fields
StoredFieldType _field

Static Protected Attributes

Type information
FieldDescription_desc []
FieldContainerType _type

Private Methods

SimpleAttachment & operator= (const SimpleAttachment &source)
 prohibit default functions (move to 'public' if needed)


Friends

class FieldContainer

Detailed Description

template<class AttachmentDescT>
class osg::SimpleAttachment< AttachmentDescT >

Template to build simple attachment classes which store only one field.


Member Typedef Documentation

template<class AttachmentDescT>
typedef Attachment osg::SimpleAttachment< AttachmentDescT >::Inherited [protected]
 

Parent type.

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
typedef AttachmentDescT::FieldTypeT osg::SimpleAttachment< AttachmentDescT >::StoredFieldType
 

template<class AttachmentDescT>
typedef SimpleAttachment<AttachmentDescT> osg::SimpleAttachment< AttachmentDescT >::Self
 

template<class AttachmentDescT>
typedef FCPtr<AttachmentPtr, Self > osg::SimpleAttachment< AttachmentDescT >::PtrType
 


Member Enumeration Documentation

template<class AttachmentDescT>
anonymous enum
 

Enumeration values:
SimpleFieldId 
NextFieldId 


Constructor & Destructor Documentation

template<class AttachmentDescT>
osg::SimpleAttachment< AttachmentDescT >::SimpleAttachment void    [inline, protected]
 

template<class AttachmentDescT>
osg::SimpleAttachment< AttachmentDescT >::SimpleAttachment const SimpleAttachment< AttachmentDescT > &    source [inline, protected]
 

template<class AttachmentDescT>
osg::SimpleAttachment< AttachmentDescT >::~SimpleAttachment void    [inline, protected, virtual]
 


Member Function Documentation

template<class AttachmentDescT>
StoredFieldType* osg::SimpleAttachment< AttachmentDescT >::getFieldPtr void   
 

template<class AttachmentDescT>
SimpleAttachment< AttachmentDescT >::StoredFieldType & osg::SimpleAttachment< AttachmentDescT >::getField void    [inline]
 

Returns reference to the stored field.

template<class AttachmentDescT>
const SimpleAttachment< AttachmentDescT >::StoredFieldType & osg::SimpleAttachment< AttachmentDescT >::getField void    const [inline]
 

Returns const reference to the stored field.

template<class AttachmentDescT>
UInt32 osg::SimpleAttachment< AttachmentDescT >::getBinSize const BitVector   whichField [inline, virtual]
 

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
void osg::SimpleAttachment< AttachmentDescT >::copyToBin BinaryDataHandler   pMem,
const BitVector   whichField
[inline, virtual]
 

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
void osg::SimpleAttachment< AttachmentDescT >::copyFromBin BinaryDataHandler   pMem,
const BitVector   whichField
[inline, virtual]
 

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
void osg::SimpleAttachment< AttachmentDescT >::dump UInt32    uiIndent = 0,
const BitVector    bvFlags = 0
const [inline, virtual]
 

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
void osg::SimpleAttachment< AttachmentDescT >::executeSync FieldContainer   other,
const BitVector   whichField
[inline, protected, virtual]
 

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
void osg::SimpleAttachment< AttachmentDescT >::executeSyncImpl SimpleAttachment< AttachmentDescT > *    pOther,
const BitVector   whichField
[inline, protected]
 

template<class AttachmentDescT>
SimpleAttachment& osg::SimpleAttachment< AttachmentDescT >::operator= const SimpleAttachment< AttachmentDescT > &    source [private]
 

prohibit default functions (move to 'public' if needed)


Friends And Related Function Documentation

template<class AttachmentDescT>
friend class FieldContainer [friend]
 

Reimplemented from osg::Attachment.


Member Data Documentation

template<class AttachmentDescT>
const BitVector osg::SimpleAttachment< AttachmentDescT >::SimpleFieldMask [static]
 

Initial value:

 
                                       1 << static_cast<UInt32>(SimpleFieldId)

template<class AttachmentDescT>
FieldDescription * osg::SimpleAttachment< AttachmentDescT >::_desc [static, protected]
 

Initial value:

{
    new FieldDescription(
        StoredFieldType::getClassType(),
        AttachmentDescT::getFieldName(),
        OSG_FC_FIELD_IDM_DESC(SimpleField),
        false,
        (FieldAccessMethod) &SimpleAttachment<AttachmentDescT>::getFieldPtr,
        NULL)
}

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
FieldContainerType osg::SimpleAttachment< AttachmentDescT >::_type [static, protected]
 

Reimplemented from osg::Attachment.

template<class AttachmentDescT>
StoredFieldType osg::SimpleAttachment< AttachmentDescT >::_field [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Jul 3 16:25:55 2002 for OpenSG by doxygen1.2.16