Feat C++ API
A feature engineering automation tool
FT::Dat::Stack< type > Class Template Reference

template stack class which holds various stack types for feat More...

#include <state.h>

Collaboration diagram for FT::Dat::Stack< type >:

Public Member Functions

 Stack ()
 < constructor initializing the vector More...
 
void push (type element)
 pops element from back of vector and removes it More...
 
type pop ()
 returns true or false depending on stack is empty or not More...
 
bool empty ()
 returns size of stack More...
 
unsigned int size ()
 returns top element of stack More...
 
type & top ()
 returns element at particular location in stack More...
 
type & at (int i)
 
type & operator[] (int i)
 
void resize (int i)
 
void clear ()
 clears the stack More...
 
vector< type >::iterator begin ()
 returns end iterator of stack More...
 
vector< type >::iterator end ()
 returns const start iterator of stack More...
 
vector< type >::const_iterator begin () const
 returns const iterator of stack More...
 
vector< type >::const_iterator end () const
 
 ~Stack ()
 

Private Attributes

std::vector< type > st
 vector representing the stack More...
 

Detailed Description

template<typename type>
class FT::Dat::Stack< type >

template stack class which holds various stack types for feat

Definition at line 38 of file state.h.

Constructor & Destructor Documentation

◆ Stack()

template<typename type >
FT::Dat::Stack< type >::Stack ( )
inline

< constructor initializing the vector

population pushes element at back of vector

Definition at line 46 of file state.h.

◆ ~Stack()

template<typename type >
FT::Dat::Stack< type >::~Stack ( )
inline

Definition at line 93 of file state.h.

Member Function Documentation

◆ at()

template<typename type >
type& FT::Dat::Stack< type >::at ( int  i)
inline

Definition at line 72 of file state.h.

◆ begin() [1/2]

template<typename type >
vector<type>::iterator FT::Dat::Stack< type >::begin ( )
inline

returns end iterator of stack

Definition at line 82 of file state.h.

◆ begin() [2/2]

template<typename type >
vector<type>::const_iterator FT::Dat::Stack< type >::begin ( ) const
inline

returns const iterator of stack

Definition at line 88 of file state.h.

◆ clear()

template<typename type >
void FT::Dat::Stack< type >::clear ( )
inline

clears the stack

returns start iterator of stack

Definition at line 79 of file state.h.

◆ empty()

template<typename type >
bool FT::Dat::Stack< type >::empty ( )
inline

returns size of stack

Definition at line 63 of file state.h.

◆ end() [1/2]

template<typename type >
vector<type>::iterator FT::Dat::Stack< type >::end ( )
inline

returns const start iterator of stack

Definition at line 85 of file state.h.

◆ end() [2/2]

template<typename type >
vector<type>::const_iterator FT::Dat::Stack< type >::end ( ) const
inline

Definition at line 91 of file state.h.

◆ operator[]()

template<typename type >
type& FT::Dat::Stack< type >::operator[] ( int  i)
inline

Definition at line 74 of file state.h.

◆ pop()

template<typename type >
type FT::Dat::Stack< type >::pop ( )
inline

returns true or false depending on stack is empty or not

Definition at line 55 of file state.h.

◆ push()

template<typename type >
void FT::Dat::Stack< type >::push ( type  element)
inline

pops element from back of vector and removes it

Definition at line 52 of file state.h.

◆ resize()

template<typename type >
void FT::Dat::Stack< type >::resize ( int  i)
inline

Definition at line 76 of file state.h.

◆ size()

template<typename type >
unsigned int FT::Dat::Stack< type >::size ( )
inline

returns top element of stack

Definition at line 66 of file state.h.

◆ top()

template<typename type >
type& FT::Dat::Stack< type >::top ( )
inline

returns element at particular location in stack

Definition at line 69 of file state.h.

Member Data Documentation

◆ st

template<typename type >
std::vector<type> FT::Dat::Stack< type >::st
private

vector representing the stack

Definition at line 41 of file state.h.


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