Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
adjList Class Reference

#include <adj.h>

Inheritance diagram for adjList:
Collaboration diagram for adjList:

Public Member Functions

 adjList ()
 
 ~adjList ()
 
int getLength (void) const
 
bool hasFace (const face *test) const
 
bool hasLoc (const face *test, const blockLoc &l) const
 
void addFace (face *b, const blockLoc &l)
 
const blockLocgetLoc (const face *b) const
 
bool isExternal (void) const
 
void print (void) const
 

Protected Attributes

adjRecnext
 

Detailed Description

Definition at line 123 of file adj.h.

Constructor & Destructor Documentation

adjList ( )
inline

Definition at line 127 of file adj.h.

References next.

127  {
128  next=NULL;
129  }
adjRec * next
Definition: adj.h:125
~adjList ( )

Definition at line 79 of file adj.cpp.

References adjRec::getNext(), and next.

79  {
80  adjRec *cur=next;
81  while (cur!=NULL) {
82  adjRec *old=cur;
83  cur=cur->getNext();
84  delete old;
85  }
86 }
adjRec * getNext(void)
Definition: adj.h:117
Definition: adj.h:103
adjRec * next
Definition: adj.h:125

Here is the call graph for this function:

Member Function Documentation

void addFace ( face b,
const blockLoc l 
)

Definition at line 105 of file adj.cpp.

References hasLoc(), and next.

Referenced by face::face().

106 {
107  if (!hasLoc(b,l))
108  next=new adjRec(b,l,next);
109 }
bool hasLoc(const face *test, const blockLoc &l) const
Definition: adj.cpp:99
Definition: adj.h:103
adjRec * next
Definition: adj.h:125

Here is the call graph for this function:

Here is the caller graph for this function:

int getLength ( void  ) const

Definition at line 87 of file adj.cpp.

References adjRec::getNext(), and next.

Referenced by face::face().

87  {
88  int ret=0;
89  for (adjRec *cur=next;cur!=NULL;cur=cur->getNext())
90  ret++;
91  return ret;
92 }
adjRec * getNext(void)
Definition: adj.h:117
Definition: adj.h:103
adjRec * next
Definition: adj.h:125

Here is the call graph for this function:

Here is the caller graph for this function:

const blockLoc & getLoc ( const face b) const

Definition at line 111 of file adj.cpp.

References adjRec::getNext(), and next.

Referenced by node::getLoc().

112 {
113  for (adjRec *cur=next;cur!=NULL;cur=cur->getNext())
114  if (in==cur->getFace())
115  return cur->getLoc();
116  static blockLoc badLoc(-1,-1,-1);
117  return badLoc;
118 }
adjRec * getNext(void)
Definition: adj.h:117
Definition: adj.h:103
adjRec * next
Definition: adj.h:125

Here is the call graph for this function:

Here is the caller graph for this function:

bool hasFace ( const face test) const

Definition at line 93 of file adj.cpp.

References adjRec::getNext(), and next.

93  {
94  for (adjRec *cur=next;cur!=NULL;cur=cur->getNext())
95  if (test==cur->getFace())
96  return true;
97  return false;
98 }
adjRec * getNext(void)
Definition: adj.h:117
Definition: adj.h:103
adjRec * next
Definition: adj.h:125

Here is the call graph for this function:

bool hasLoc ( const face test,
const blockLoc l 
) const

Definition at line 99 of file adj.cpp.

References adjRec::getNext(), and next.

Referenced by addFace(), and face::nodesMatch().

99  {
100  for (adjRec *cur=next;cur!=NULL;cur=cur->getNext())
101  if (test==cur->getFace() && l==cur->getLoc())
102  return true;
103  return false;
104 }
adjRec * getNext(void)
Definition: adj.h:117
Definition: adj.h:103
adjRec * next
Definition: adj.h:125

Here is the call graph for this function:

Here is the caller graph for this function:

bool isExternal ( void  ) const

Definition at line 76 of file buildface.cpp.

References adjRec::getFace(), adjRec::getLoc(), adjRec::getNext(), patch::isExternal(), next, and face::patchForCoord().

Referenced by buildFaces().

77 {
78  adjRec *cur=next;
79  while (cur!=NULL) {
80  patch *p=cur->getFace()->patchForCoord(cur->getLoc());
81  if (p->isExternal())
82  return true;
83  cur=cur->getNext();
84  }
85  return false;
86 }
const blockLoc & getLoc(void) const
Definition: adj.h:116
face * getFace(void)
Definition: adj.h:114
patch * patchForCoord(const blockLoc &at)
Definition: face.cpp:120
Definition: patch.h:74
adjRec * getNext(void)
Definition: adj.h:117
Definition: adj.h:103
adjRec * next
Definition: adj.h:125
virtual bool isExternal(void) const
Definition: buildface.cpp:63

Here is the call graph for this function:

Here is the caller graph for this function:

void print ( void  ) const

Definition at line 120 of file adj.cpp.

References next, and adjRec::print().

Referenced by face::face().

120  {
121  if (next) next->print();
122  else printf("Empty.\n");
123 }
adjRec * next
Definition: adj.h:125
void print(void)
Definition: adj.cpp:68

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

adjRec* next
protected

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