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 607 of file f5lists.cc.

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

§ LTagList() [2/2]

LTagList::LTagList ( LNode l)

Definition at line 613 of file f5lists.cc.

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

§ ~LTagList()

LTagList::~LTagList ( )

Definition at line 618 of file f5lists.cc.

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

Member Function Documentation

§ get()

LNode * LTagList::get ( int  idx)

Definition at line 638 of file f5lists.cc.

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

§ getFirst()

LNode * LTagList::getFirst ( )

Definition at line 642 of file f5lists.cc.

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

§ getFirstCurrentIdx()

LNode * LTagList::getFirstCurrentIdx ( )

Definition at line 646 of file f5lists.cc.

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

§ insert()

void LTagList::insert ( LNode l)

Definition at line 629 of file f5lists.cc.

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

§ setFirstCurrentIdx()

void LTagList::setFirstCurrentIdx ( LNode l)

Definition at line 634 of file f5lists.cc.

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

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: