libcommonc++  0.7
Array< T, SIZE > Class Template Reference

A simple object wrapper for arrays. More...

#include <Array.h++>

Public Types

typedef T value_type
 
typedef T * iterator
 
typedef const T * const_iterator
 
typedef T & reference
 
typedef const T & const_reference
 

Public Member Functions

 Array ()
 
 ~Array ()
 
T & operator[] (int index)
 Index operator. More...
 
const T & operator[] (int index) const
 Index operator. More...
 
 operator T* ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
uint_t size () const
 

Detailed Description

template<typename T, uint_t SIZE>
class ccxx::Array< T, SIZE >

A simple object wrapper for arrays.

See section 17.5.4 of The C++ Programming Language.

Author
Mark Lindner

Member Typedef Documentation

◆ const_iterator

typedef const T* const_iterator

◆ const_reference

typedef const T& const_reference

◆ iterator

typedef T* iterator

◆ reference

typedef T& reference

◆ value_type

typedef T value_type

Constructor & Destructor Documentation

◆ Array()

Array ( )
inline

◆ ~Array()

~Array ( )
inline

Member Function Documentation

◆ begin() [1/2]

iterator begin ( )
inline

◆ begin() [2/2]

const_iterator begin ( ) const
inline

◆ end() [1/2]

iterator end ( )
inline

◆ end() [2/2]

const_iterator end ( ) const
inline

◆ operator T*()

operator T* ( )
inline

◆ operator[]() [1/2]

T& operator[] ( int  index)
inline

Index operator.

Exceptions
OutOfBoundsExceptionIf the index is invalid.

◆ operator[]() [2/2]

const T& operator[] ( int  index) const
inline

Index operator.

Exceptions
OutOfBoundsExceptionIf the index is invalid.

◆ size()

uint_t size ( ) const
inline

The documentation for this class was generated from the following file: