dsalglib  1.0.0
dsalglib is a ready to use data structures and algorithms library written in C++ . Object Oriented Template implementations are written.
Public Member Functions | List of all members
dsa::array< type > Class Template Reference

#include <array.h>

Public Member Functions

 array (long long int size=0)
 
 array (long long int size, type param)
 
void resize (long long int newsize)
 
type & operator[] (long long int index)
 
void operator= (array< type > from)
 
void push_back (type param)
 
void pop_back ()
 
void reverse (long long int start, long long int end)
 
long long int size ()
 
void traverse (void(fun)(type obj))
 
bool isempty ()
 
void clear ()
 

Detailed Description

template<class type>
class dsa::array< type >

Definition at line 10 of file array.h.

Constructor & Destructor Documentation

template<class type>
dsa::array< type >::array ( long long int  size = 0)
inline

Definition at line 17 of file array.h.

template<class type>
dsa::array< type >::array ( long long int  size,
type  param 
)
inline

Definition at line 24 of file array.h.

Member Function Documentation

template<class type>
void dsa::array< type >::clear ( )
inline

Definition at line 115 of file array.h.

template<class type>
bool dsa::array< type >::isempty ( )
inline

Definition at line 110 of file array.h.

template<class type>
void dsa::array< type >::operator= ( array< type >  from)
inline

Definition at line 58 of file array.h.

template<class type>
type& dsa::array< type >::operator[] ( long long int  index)
inline

Definition at line 50 of file array.h.

template<class type>
void dsa::array< type >::pop_back ( )
inline

Definition at line 78 of file array.h.

template<class type>
void dsa::array< type >::push_back ( type  param)
inline

Definition at line 69 of file array.h.

template<class type>
void dsa::array< type >::resize ( long long int  newsize)
inline

Definition at line 33 of file array.h.

template<class type>
void dsa::array< type >::reverse ( long long int  start,
long long int  end 
)
inline

Definition at line 85 of file array.h.

template<class type>
long long int dsa::array< type >::size ( )
inline

Definition at line 98 of file array.h.

template<class type>
void dsa::array< type >::traverse ( void(fun)(type obj)  )
inline

Definition at line 103 of file array.h.


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