OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::Array< Object > Class Template Reference

Allows to allocate and manage several instances of Object at the same time. More...

#include </home/chochlik/devel/oglplus/include/oglplus/object/array.hpp>

Inherits oglplus::ObjGenDelOps< ObjTag >.

Public Types

typedef Reference< Object > reference
 Reference to elements.
 
typedef const reference const_reference
 Reference to const elements.
 
typedef SeqIterator< Object > iterator
 Iterator type.
 
typedef iterator const_iterator
 Const-iterator type.
 

Public Member Functions

 Array (Array &&temp)
 Array is moveable.
 
 Array (std::size_t count)
 Constructs an an array of count instances of Object.
 
 Array (std::size_t n, typename ObjectSubtype< ObjTag >::Type type)
 Constructs an an array of n instances of Object with type.
 
bool empty (void) const
 Returns true if the array is empty.
 
std::size_t size (void) const
 Returns the number of instances in the array.
 
reference at (std::size_t index)
 Returns a reference to the i-th instance in the array.
 
const_reference at (NameT index) const
 Returns a const reference to the i-th instance in the array.
 
reference operator[] (std::size_t index)
 Returns a reference to the i-th instance in the array.
 
const_reference operator[] (std::size_t index) const
 Returns a const reference to the i-th instance in the array.
 
const_iterator begin (void) const
 Returns an iterator pointing to the first element.
 
const_iterator end (void) const
 Returns an iterator pointing past the last element.
 

Detailed Description

template<typename Object>
class oglplus::Array< Object >

Allows to allocate and manage several instances of Object at the same time.

This class is non-copyable.


The documentation for this class was generated from the following files:
  • /home/chochlik/devel/oglplus/include/oglplus/fwd.hpp
  • /home/chochlik/devel/oglplus/include/oglplus/object/array.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).