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

OSGSharePtrGraphOp.cpp File Reference

#include "OSGSharePtrGraphOp.h"
#include <functional>
#include <algorithm>
#include <OSGLog.h>
#include <OSGGeometry.h>
#include <OSGGeoFunctions.h>
#include <OSGVector.h>

Go to the source code of this file.

Namespaces

namespace  osg

Functions

template<typename T>
static bool compareMField (Field *a, Field *b)


Function Documentation

template<typename T>
static bool compareMField Field a,
Field b
[static]
 

Definition at line 386 of file OSGSharePtrGraphOp.cpp.

References osg::MField< FieldTypeT, fieldNameSpace >::size().

00387 {
00388     MField<T> *mfa = dynamic_cast<MField<T> *>(a);
00389     MField<T> *mfb = dynamic_cast<MField<T> *>(b);
00390 
00391     if(mfa == NULL && mfb == NULL)
00392         return true;
00393 
00394     if(mfa == NULL || mfb == NULL)
00395         return false;
00396     
00397     if(mfa->size() != mfb->size())
00398         return false;
00399 
00400     for(UInt32 j=0;j<mfa->size();++j)
00401     {
00402         if((*mfa)[j] != (*mfb)[j])
00403         {
00404             return false;
00405         }
00406     }
00407 
00408     return true;
00409 }


Generated on Thu Aug 25 04:12:22 2005 for OpenSG by  doxygen 1.4.3