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

osg::Attachment Class Reference
[OpenSG Field Container Library]

Attachment is the base class for sharable thread safe data stores, which could be attached to other fieldcontainers than Attachments. More...

#include <OSGAttachmentImpl.h>

Inheritance diagram for osg::Attachment:

Inheritance graph
[legend]
Collaboration diagram for osg::Attachment:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { ParentsFieldId = Inherited::NextFieldId, InternalFieldId = ParentsFieldId + 1, NextFieldId = InternalFieldId + 1 }

Public Methods

Parents
MFFieldContainerPtrgetParents (void)
const MFFieldContainerPtrgetParents (void) const
MFFieldContainerPtrgetMFParents (void)
void addParent (FieldContainerPtr parent)
void subParent (FieldContainerPtr parent)
Int32 findParent (FieldContainerPtr parent)
Parents
SFBoolgetInternal (void)
const SFBoolgetInternal (void) const
SFBoolgetSFInternal (void)
void setInternal (bool bVal)
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 InternalFieldMask = (1 << Attachment::InternalFieldId)
const BitVector ParentsFieldMask = (1 << Attachment::ParentsFieldId)

Protected Types

typedef FieldContainer Inherited
 Parent type.


Protected Methods

Constructors
 Attachment (void)
 Attachment (const Attachment &obj)
Destructor
virtual ~Attachment (void)
MT Destruction
virtual void onDestroy (void)
Sync
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
void executeSyncImpl (Attachment *pOther, const BitVector &whichField)

Protected Attributes

Fields
SFBool _sfInternal
MFFieldContainerPtr _parents
 Parents multifield.


Static Protected Attributes

Type information
FieldDescription_desc []
FieldContainerType _type

Private Methods

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


Friends

class FieldContainer

Detailed Description

Attachment is the base class for sharable thread safe data stores, which could be attached to other fieldcontainers than Attachments.


Member Typedef Documentation

Attachment::Inherited [protected]
 

Parent type.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ParentsFieldId 
InternalFieldId 
NextFieldId 


Constructor & Destructor Documentation

Attachment::Attachment void    [protected]
 

Attachment::Attachment const Attachment &    obj [protected]
 

Attachment::~Attachment void    [protected, virtual]
 


Member Function Documentation

MFFieldContainerPtr & Attachment::getParents void   
 

const MFFieldContainerPtr & Attachment::getParents void    const
 

MFFieldContainerPtr * Attachment::getMFParents void   
 

void Attachment::addParent FieldContainerPtr    parent
 

void Attachment::subParent FieldContainerPtr    parent
 

Int32 Attachment::findParent FieldContainerPtr    parent
 

SFBool & Attachment::getInternal void   
 

const SFBool & Attachment::getInternal void    const
 

SFBool * Attachment::getSFInternal void   
 

void Attachment::setInternal bool    bVal
 

UInt32 Attachment::getBinSize const BitVector   whichField [virtual]
 

Reimplemented from osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.

void Attachment::copyToBin BinaryDataHandler   pMem,
const BitVector   whichField
[virtual]
 

Reimplemented from osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.

void Attachment::copyFromBin BinaryDataHandler   pMem,
const BitVector   whichField
[virtual]
 

Reimplemented from osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.

void Attachment::dump UInt32    uiIndent = 0,
const BitVector    bvFlags = 0
const [virtual]
 

Implements osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.

void Attachment::onDestroy void    [protected, virtual]
 

Reimplemented from osg::FieldContainer.

void Attachment::executeSync FieldContainer   other,
const BitVector   whichField
[protected, virtual]
 

Implements osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.

void Attachment::executeSyncImpl Attachment *    pOther,
const BitVector   whichField
[protected]
 

void osg::Attachment::operator= const Attachment &    source [private]
 

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


Friends And Related Function Documentation

friend class FieldContainer [friend]
 

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.


Member Data Documentation

const BitVector Attachment::InternalFieldMask = (1 << Attachment::InternalFieldId) [static]
 

const BitVector Attachment::ParentsFieldMask = (1 << Attachment::ParentsFieldId) [static]
 

FieldDescription * Attachment::_desc [static, protected]
 

Initial value:

{
    new FieldDescription(
        SFBool::getClassType(),
        "internal",
        OSG_FC_FIELD_IDM_DESC(InternalField),
        false,
        (FieldAccessMethod) &Attachment::getSFInternal,
        "true"),

    new FieldDescription(
        MFNodePtr::getClassType(),
        "parents",
        OSG_FC_FIELD_IDM_DESC(ParentsField),
        true,
        (FieldAccessMethod) &Attachment::getMFParents,
        "test")
}

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.

FieldContainerType Attachment::_type [static, protected]
 

Reimplemented from osg::FieldContainer.

Reimplemented in osg::SimpleAttachment< AttachmentDescT >, and osg::SimpleAttachment< NameAttachmentDesc >.

SFBool osg::Attachment::_sfInternal [protected]
 

MFFieldContainerPtr Attachment::_parents [protected]
 

Parents multifield.


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