Foxit PDF SDK

Public Member Functions | List of all members
CFX_Stack< TYPE > Class Template Reference
FXCRT

Inherits CFX_Object.

## Public Member Functions
| CFX_Stack ()
| Construct.
void | Clear ()
| Remove all remaining data from stack. More...
FX_BOOL | Empty () const
| Empty the container. More...
void | Pop ()
| Pop the data from stack. More...
void | Push (const TYPE &val)
| Push the data to stack. More...
int | Size () const
| Get size of the container. More...
TYPE & | Top ()
| Get the top byte data. More...

## Detailed Description

### template<class TYPE>
class CFX_Stack< TYPE >

The class represents stack template.

## Member Function Documentation

## ◆ Clear()

template<class TYPE >

void CFX_Stack< TYPE >::Clear | ( |  | ) |
| inline

Remove all remaining data from stack.

Returns
  None.

## ◆ Empty()

template<class TYPE >

FX_BOOL CFX_Stack< TYPE >::Empty | ( |  | ) | const
| inline

Empty the container.

Returns
  true means success, while false means failure.

## ◆ Pop()

template<class TYPE >

void CFX_Stack< TYPE >::Pop | ( |  | ) |
| inline

Pop the data from stack.

Returns
  None.

## ◆ Push()

template<class TYPE >

void CFX_Stack< TYPE >::Push | ( | const TYPE & | val | ) |
| inline

Push the data to stack.

Parameters

  [in] | val | An element to be pushed to the stack.

Returns
  None.

## ◆ Size()

template<class TYPE >

int CFX_Stack< TYPE >::Size | ( |  | ) | const
| inline

Get size of the container.

Returns
  The size of the container.

## ◆ Top()

template<class TYPE >

TYPE& CFX_Stack< TYPE >::Top | ( |  | ) |
| inline

Get the top byte data.

Returns
  The top byte data.