Changeset 255


Ignore:
Timestamp:
06/13/14 13:50:49 (11 years ago)
Author:
epyon
Message:
  • range, range2d and index power iterators added
  • noncopyable added
  • const correctness
Location:
trunk/nv
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/array2d.hh

    r202 r255  
    1818#include <nv/common.hh>
    1919#include <nv/math.hh>
     20#include <nv/range.hh>
    2021
    2122namespace nv
  • trunk/nv/common.hh

    r242 r255  
    175175
    176176        template < int a, int b, int c, int d >
     177
    177178        struct four_cc
    178179        {
    179180                static const unsigned int value = (((((d << 8) | c) << 8) | b) << 8) | a;
     181        };
     182
     183        class noncopyable
     184        {
     185        protected:
     186//              noncopyable() = default;
     187//              ~noncopyable() = default;
     188//              noncopyable( const noncopyable& ) = delete;
     189//              noncopyable& operator=( const noncopyable& ) = delete;
     190                noncopyable() {}
     191                ~noncopyable() {}
     192        private:
     193                noncopyable( const noncopyable& );
     194                noncopyable& operator=( const noncopyable& );
    180195        };
    181196
  • trunk/nv/interface/uniform.hh

    r235 r255  
    7070                }
    7171
    72                 const T* get_value() { return m_value; }
     72                const T* get_value() const { return m_value; }
    7373                virtual ~uniform()
    7474                {
  • trunk/nv/position.hh

    r172 r255  
    1616#include <nv/common.hh>
    1717#include <nv/math.hh>
     18#include <nv/range.hh>
    1819#include <utility>
    1920
Note: See TracChangeset for help on using the changeset viewer.