Show
Ignore:
Timestamp:
03/21/12 18:36:20 (3 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osg/buffered_value

    r5882 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    2222/** Implements a simple buffered value for values that need to be buffered on 
    2323  * a per graphics context basis. 
    24 */   
     24*/ 
    2525template<class T> 
    2626class buffered_value 
    2727{ 
    2828    public: 
    29      
     29 
    3030        inline buffered_value(): 
    3131            _array(DisplaySettings::instance()->getMaxNumberOfGraphicsContexts(),0) 
     
    4141            return *this; 
    4242        } 
    43          
     43 
    4444        inline void setAllElementsTo(const T& t) { std::fill(_array.begin(),_array.end(),t); } 
    4545 
     
    4949 
    5050        inline unsigned int size() const { return _array.size(); } 
    51          
     51 
    5252        inline void resize(unsigned int newSize) { _array.resize(newSize,0); } 
    5353 
     
    7171 
    7272    protected: 
    73      
     73 
    7474        mutable std::vector<T> _array; 
    7575}; 
     
    7979{ 
    8080    public: 
    81      
     81 
    8282        inline buffered_object(): 
    8383            _array(DisplaySettings::instance()->getMaxNumberOfGraphicsContexts()) 
     
    121121            return _array[pos]; 
    122122        } 
    123          
     123 
    124124 
    125125    protected: 
    126      
     126 
    127127        mutable std::vector<T> _array; 
    128128};