Ignore:
Timestamp:
08/11/10 11:47:52 (15 years ago)
Author:
seroussi
Message:

Bamg: put some functions in .ccp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Bamg/QuadTree.h

    r5120 r5150  
    1414
    1515        class QuadTree{
     16
    1617                private:
    17                         class QuadTreeBox {
     18
     19                        class QuadTreeBox{
    1820                                public:
    1921                                        long n;
     
    2527                                        };
    2628                        };
    27                         class StorageQuadTreeBox {
     29                        class StorageQuadTreeBox{
    2830                                public:
    2931                                        QuadTreeBox *b,*bc,*be;
     
    4143
    4244                public:
     45
    4346                        //fields
    4447                        QuadTreeBox* root;
    4548                        Mesh*   th;
     49
    4650                        //functions
    4751                        ~QuadTree();
     
    5357                        BamgVertex* NearestVertexWithNormal(Icoor1 i,Icoor1 j);
    5458                        BamgVertex* ToClose(BamgVertex & ,double ,Icoor1,Icoor1);
    55                         long    SizeOf() const {return sizeof(QuadTree)+sb->SizeOf();}
     59                        long    SizeOf() const;
    5660                        void    Add( BamgVertex & w);
    57                         QuadTreeBox* NewQuadTreeBox(){
     61
     62                        /*The following function cannot be in the cpp file because QuadTreeBox is
     63                         * a private class and is declared before QuadTree::*/
     64                        QuadTreeBox* NewQuadTreeBox(void){
    5865                                if(! (sb->bc<sb->be)) sb=new StorageQuadTreeBox(lenStorageQuadTreeBox,sb);
    5966                                if (!sb || (sb->bc->n != 0)){ISSMERROR("!sb || (sb->bc->n != 0)");}
Note: See TracChangeset for help on using the changeset viewer.