Sha256: e0282874e768d9888f94ca1ea980cac06c24716d8f1656bc59e585c139c9d54c

Contents?: true

Size: 1.33 KB

Versions: 21

Compression:

Stored size: 1.33 KB

Contents

///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Image Copyright (c) 2008 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2008-12-19
// Updated : 2005-06-13
// Licence : This source is under MIT License
// File    : gli/shared_array.hpp
///////////////////////////////////////////////////////////////////////////////////////////////////

#ifndef GLI_SHARED_ARRAY_INCLUDED
#define GLI_SHARED_ARRAY_INCLUDED

namespace gli
{
    template <typename T>
    class shared_array
    {
    public:

        shared_array();
        shared_array(shared_array const & SharedArray);
		shared_array(T * Pointer);
        virtual ~shared_array();

		void reset();
		void reset(T * Pointer);

        T & operator*();
        T * operator->();
        T const & operator*() const;
        T const * const operator->() const;

		T * get();
		T const * const get() const;

        shared_array & operator=(shared_array const & SharedArray);
	    bool operator==(shared_array const & SharedArray) const;
	    bool operator!=(shared_array const & SharedArray) const;

    private:
        int * Counter;
        T * Pointer;
    };
}//namespace gli

#include "shared_array.inl"

#endif //GLI_SHARED_ARRAY_INCLUDED

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.4.4 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.4.3 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.4.2 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.4.1 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.4.0 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.3.2 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.3.1 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.3.0 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.2.6 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.2.5 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.2.4 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.2.3 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.2.2 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.2.1 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.2.0 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.1.4 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.1.3 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.1.2 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp
pixo-0.1.1 ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp