tetgenmesh::list Class Reference

#include <tetgen.h>

Public Member Functions

 list (int itbytes, compfunc pcomp, int mitems=256, int exsize=128)
 
 ~list ()
 
void * operator[] (int i)
 
void listinit (int itbytes, compfunc pcomp, int mitems, int exsize)
 
void setcomp (compfunc compf)
 
void clear ()
 
int len ()
 
void * append (void *appitem)
 
void * insert (int pos, void *insitem)
 
void del (int pos, int order)
 
int hasitem (void *checkitem)
 

Public Attributes

charbase
 
int itembytes
 
int items
 
int maxitems
 
int expandsize
 
compfunc comp
 

Constructor & Destructor Documentation

◆ list()

tetgenmesh::list::list ( int  itbytes,
compfunc  pcomp,
int  mitems = 256,
int  exsize = 128 
)
inline
1465  {
1466  listinit(itbytes, pcomp, mitems, exsize);
1467  }
void listinit(int itbytes, compfunc pcomp, int mitems, int exsize)

References listinit().

◆ ~list()

tetgenmesh::list::~list ( )
inline
1468 { free(base); }
char * base
Definition: tetgen.h:1460

References base.

Member Function Documentation

◆ append()

void* tetgenmesh::list::append ( void *  appitem)

◆ clear()

void tetgenmesh::list::clear ( )
inline
1474 { items = 0; }
int items
Definition: tetgen.h:1462

References items.

◆ del()

void tetgenmesh::list::del ( int  pos,
int  order 
)

◆ hasitem()

int tetgenmesh::list::hasitem ( void *  checkitem)

◆ insert()

void* tetgenmesh::list::insert ( int  pos,
void *  insitem 
)

◆ len()

int tetgenmesh::list::len ( )
inline
1475 { return items; }

References items.

◆ listinit()

void tetgenmesh::list::listinit ( int  itbytes,
compfunc  pcomp,
int  mitems,
int  exsize 
)

Referenced by list().

◆ operator[]()

void* tetgenmesh::list::operator[] ( int  i)
inline
1470 { return (void *) (base + i * itembytes); }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
int itembytes
Definition: tetgen.h:1461

References base, i, and itembytes.

◆ setcomp()

void tetgenmesh::list::setcomp ( compfunc  compf)
inline
1473 { comp = compf; }
compfunc comp
Definition: tetgen.h:1463

References comp.

Member Data Documentation

◆ base

char* tetgenmesh::list::base

Referenced by operator[](), and ~list().

◆ comp

compfunc tetgenmesh::list::comp

Referenced by setcomp().

◆ expandsize

int tetgenmesh::list::expandsize

◆ itembytes

int tetgenmesh::list::itembytes

Referenced by operator[]().

◆ items

int tetgenmesh::list::items

Referenced by clear(), and len().

◆ maxitems

int tetgenmesh::list::maxitems

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