Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@@ -21,12 +21,12 @@ namespace osg {
|
||||
|
||||
/** Implements a simple buffered value for values that need to be buffered on
|
||||
* a per graphics context basis.
|
||||
*/
|
||||
*/
|
||||
template<class T>
|
||||
class buffered_value
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
inline buffered_value():
|
||||
_array(DisplaySettings::instance()->getMaxNumberOfGraphicsContexts(),0)
|
||||
{}
|
||||
@@ -40,7 +40,7 @@ class buffered_value
|
||||
_array = rhs._array;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
inline void setAllElementsTo(const T& t) { std::fill(_array.begin(),_array.end(),t); }
|
||||
|
||||
inline void clear() { _array.clear(); }
|
||||
@@ -48,7 +48,7 @@ class buffered_value
|
||||
inline bool empty() const { return _array.empty(); }
|
||||
|
||||
inline unsigned int size() const { return _array.size(); }
|
||||
|
||||
|
||||
inline void resize(unsigned int newSize) { _array.resize(newSize,0); }
|
||||
|
||||
inline T& operator[] (unsigned int pos)
|
||||
@@ -70,7 +70,7 @@ class buffered_value
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
mutable std::vector<T> _array;
|
||||
};
|
||||
|
||||
@@ -78,7 +78,7 @@ template<class T>
|
||||
class buffered_object
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
inline buffered_object():
|
||||
_array(DisplaySettings::instance()->getMaxNumberOfGraphicsContexts())
|
||||
{}
|
||||
@@ -120,10 +120,10 @@ class buffered_object
|
||||
|
||||
return _array[pos];
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
mutable std::vector<T> _array;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user