My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
LTagNode Class Reference

#include <f5lists.h>

Public Member Functions

 LTagNode ()
 
 LTagNode (LNode *l)
 
 LTagNode (LNode *l, LTagNode *n)
 
 ~LTagNode ()
 
LTagNodeinsert (LNode *l)
 
LNodegetLNode ()
 
LTagNodegetNext ()
 
LNodeget (int i, int length)
 

Private Attributes

LNodedata
 
LTagNodenext
 

Detailed Description

Definition at line 166 of file f5lists.h.

Constructor & Destructor Documentation

◆ LTagNode() [1/3]

LTagNode::LTagNode ( )

Definition at line 550 of file f5lists.cc.

550 {
551 data = NULL;
552 next = NULL;
553}
LNode * data
Definition: f5lists.h:168
LTagNode * next
Definition: f5lists.h:169
#define NULL
Definition: omList.c:12

◆ LTagNode() [2/3]

LTagNode::LTagNode ( LNode l)

Definition at line 555 of file f5lists.cc.

555 {
556 data = l;
557 next = NULL;
558}
int l
Definition: cfEzgcd.cc:100

◆ LTagNode() [3/3]

LTagNode::LTagNode ( LNode l,
LTagNode n 
)

Definition at line 560 of file f5lists.cc.

560 {
561 data = l;
562 next = n;
563}

◆ ~LTagNode()

LTagNode::~LTagNode ( )

Definition at line 565 of file f5lists.cc.

565 {
566 delete data;
567}

Member Function Documentation

◆ get()

LNode * LTagNode::get ( int  i,
int  length 
)

Definition at line 586 of file f5lists.cc.

586 {
587 if(idx == 1) {
588 return NULL;
589 }
590 else {
591 int j;
592 LTagNode* temp = this; // last
593 for(j=1;j<=length-idx+1;j++) {
594 temp = temp->next;
595 }
596 return temp->data;
597 }
598}
int j
Definition: facHensel.cc:110
static BOOLEAN length(leftv result, leftv arg)
Definition: interval.cc:257

◆ getLNode()

LNode * LTagNode::getLNode ( )

Definition at line 575 of file f5lists.cc.

575 {
576 return this->data;
577}

◆ getNext()

LTagNode * LTagNode::getNext ( )

Definition at line 579 of file f5lists.cc.

579 {
580 return next;
581}

◆ insert()

LTagNode * LTagNode::insert ( LNode l)

Definition at line 570 of file f5lists.cc.

570 {
571 LTagNode* newElement = new LTagNode(l, this);
572 return newElement;
573}
LTagNode()
Definition: f5lists.cc:550

Field Documentation

◆ data

LNode* LTagNode::data
private

Definition at line 168 of file f5lists.h.

◆ next

LTagNode* LTagNode::next
private

Definition at line 169 of file f5lists.h.


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