Public Member Functions | Private Attributes
LTagList Class Reference

#include <f5lists.h>

Public Member Functions

 LTagList ()
 
 LTagList (LNode *l)
 
 ~LTagList ()
 
void insert (LNode *l)
 
void setFirstCurrentIdx (LNode *l)
 
LNodeget (int idx)
 
LNodegetFirst ()
 
LNodegetFirstCurrentIdx ()
 

Private Attributes

LTagNodefirst
 
LNodefirstCurrentIdx
 
int length
 

Detailed Description

Definition at line 188 of file f5lists.h.

Constructor & Destructor Documentation

◆ LTagList() [1/2]

LTagList::LTagList ( )

Definition at line 606 of file f5lists.cc.

606  {
607  LTagNode* first = new LTagNode();
608 
609  length = 0;
610 }
LTagNode * first
Definition: f5lists.h:190
int length
Definition: f5lists.h:192

◆ LTagList() [2/2]

LTagList::LTagList ( LNode l)

Definition at line 612 of file f5lists.cc.

612  {
613  LTagNode* first = new LTagNode(l);
614  length = 1;
615 }
LTagNode * first
Definition: f5lists.h:190
int length
Definition: f5lists.h:192

◆ ~LTagList()

LTagList::~LTagList ( )

Definition at line 617 of file f5lists.cc.

617  {
618  LTagNode* temp;
619  while(first) {
620  temp = first;
621  first = first->getNext();
622  delete temp;
623  //Print("%p\n",first);
624  }
625 }
LTagNode * first
Definition: f5lists.h:190
LTagNode * getNext()
Definition: f5lists.cc:579

Member Function Documentation

◆ get()

LNode * LTagList::get ( int  idx)

Definition at line 637 of file f5lists.cc.

637  {
638  return first->get(idx, length);
639 }
LTagNode * first
Definition: f5lists.h:190
int length
Definition: f5lists.h:192
LNode * get(int i, int length)
Definition: f5lists.cc:586

◆ getFirst()

LNode * LTagList::getFirst ( )

Definition at line 641 of file f5lists.cc.

641  {
642  return first->getLNode();
643 }
LTagNode * first
Definition: f5lists.h:190
LNode * getLNode()
Definition: f5lists.cc:575

◆ getFirstCurrentIdx()

LNode * LTagList::getFirstCurrentIdx ( )

Definition at line 645 of file f5lists.cc.

645  {
646  return firstCurrentIdx;
647 }
LNode * firstCurrentIdx
Definition: f5lists.h:191

◆ insert()

void LTagList::insert ( LNode l)

Definition at line 628 of file f5lists.cc.

628  {
629  first = first->insert(l);
630  length++;
631 }
LTagNode * first
Definition: f5lists.h:190
int length
Definition: f5lists.h:192
LTagNode * insert(LNode *l)
Definition: f5lists.cc:570

◆ setFirstCurrentIdx()

void LTagList::setFirstCurrentIdx ( LNode l)

Definition at line 633 of file f5lists.cc.

633  {
634  firstCurrentIdx = l;
635 }
LNode * firstCurrentIdx
Definition: f5lists.h:191
int l
Definition: cfEzgcd.cc:93

Field Documentation

◆ first

LTagNode* LTagList::first
private

Definition at line 190 of file f5lists.h.

◆ firstCurrentIdx

LNode* LTagList::firstCurrentIdx
private

Definition at line 191 of file f5lists.h.

◆ length

int LTagList::length
private

Definition at line 192 of file f5lists.h.


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