My Project  debian-1:4.1.1-p2+ds-4build1
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 187 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 }

◆ 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 }

◆ ~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 }

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 }

◆ getFirst()

LNode * LTagList::getFirst ( )

Definition at line 642 of file f5lists.cc.

642  {
643  return first->getLNode();
644 }

◆ getFirstCurrentIdx()

LNode * LTagList::getFirstCurrentIdx ( )

Definition at line 646 of file f5lists.cc.

646  {
647  return firstCurrentIdx;
648 }

◆ insert()

void LTagList::insert ( LNode l)

Definition at line 629 of file f5lists.cc.

629  {
630  first = first->insert(l);
631  length++;
632 }

◆ setFirstCurrentIdx()

void LTagList::setFirstCurrentIdx ( LNode l)

Definition at line 634 of file f5lists.cc.

634  {
635  firstCurrentIdx = l;
636 }

Field Documentation

◆ first

LTagNode* LTagList::first
private

Definition at line 189 of file f5lists.h.

◆ firstCurrentIdx

LNode* LTagList::firstCurrentIdx
private

Definition at line 190 of file f5lists.h.

◆ length

int LTagList::length
private

Definition at line 191 of file f5lists.h.


The documentation for this class was generated from the following files:
LTagList::firstCurrentIdx
LNode * firstCurrentIdx
Definition: f5lists.h:190
LTagList::length
int length
Definition: f5lists.h:191
LTagNode::insert
LTagNode * insert(LNode *l)
Definition: f5lists.cc:571
LTagNode::get
LNode * get(int i, int length)
Definition: f5lists.cc:587
LTagList::first
LTagNode * first
Definition: f5lists.h:189
LTagNode::getNext
LTagNode * getNext()
Definition: f5lists.cc:580
l
int l
Definition: cfEzgcd.cc:93
LTagNode
Definition: f5lists.h:165
LTagNode::getLNode
LNode * getLNode()
Definition: f5lists.cc:576