My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
Voice Class Reference

#include <fevoices.h>

Public Member Functions

 Voice ()
 
feBufferTypes Typ ()
 
void Next ()
 

Data Fields

Voicenext
 
Voiceprev
 
char * filename
 
procinfopi
 
void * oldb
 
FILE * files
 
char * buffer
 
long fptr
 
long ftellptr
 
int buff_size
 
int start_lineno
 
int curr_lineno
 
feBufferInputs sw
 
char ifsw
 
feBufferTypes typ
 

Detailed Description

Definition at line 58 of file fevoices.h.

Constructor & Destructor Documentation

◆ Voice()

Voice::Voice ( )
inline

Definition at line 87 of file fevoices.h.

87{ memset(this,0,sizeof(*this));}

Member Function Documentation

◆ Next()

void Voice::Next ( )

Definition at line 94 of file fevoices.cc.

95{
96 Voice *p=new Voice;
97 // OB: ???
98 // Hmm... when Singular is used as batch file
99 // then this voice is never freed
101 if (currentVoice != NULL)
102 {
105 }
106 p->prev=currentVoice;
108 //PrintS("Next:");
109}
int p
Definition: cfModGcd.cc:4078
Definition: fevoices.h:59
int curr_lineno
Definition: fevoices.h:76
Voice * next
Definition: fevoices.h:61
Voice()
Definition: fevoices.h:87
EXTERN_VAR Voice * currentVoice
Definition: fevoices.h:92
EXTERN_VAR int yylineno
Definition: fevoices.h:45
#define NULL
Definition: omList.c:12
#define omMarkAsStaticAddr(A)
Definition: xalloc.h:245

◆ Typ()

feBufferTypes Voice::Typ ( )

Definition at line 111 of file fevoices.cc.

112{
113 switch(typ)
114 {
115 case BT_proc:
116 case BT_example:
117 case BT_file:
118 return typ;
119 default:
120 if (prev==NULL) return (feBufferTypes)0;
121 return prev->Typ();
122 }
123}
feBufferTypes Typ()
Definition: fevoices.cc:111
Voice * prev
Definition: fevoices.h:62
feBufferTypes typ
Definition: fevoices.h:85
feBufferTypes
Definition: fevoices.h:17
@ BT_example
Definition: fevoices.h:21
@ BT_proc
Definition: fevoices.h:20
@ BT_file
Definition: fevoices.h:22

Field Documentation

◆ buff_size

int Voice::buff_size

Definition at line 73 of file fevoices.h.

◆ buffer

char* Voice::buffer

Definition at line 69 of file fevoices.h.

◆ curr_lineno

int Voice::curr_lineno

Definition at line 76 of file fevoices.h.

◆ filename

char* Voice::filename

Definition at line 63 of file fevoices.h.

◆ files

FILE* Voice::files

Definition at line 67 of file fevoices.h.

◆ fptr

long Voice::fptr

Definition at line 70 of file fevoices.h.

◆ ftellptr

long Voice::ftellptr

Definition at line 71 of file fevoices.h.

◆ ifsw

char Voice::ifsw

Definition at line 80 of file fevoices.h.

◆ next

Voice* Voice::next

Definition at line 61 of file fevoices.h.

◆ oldb

void* Voice::oldb

Definition at line 65 of file fevoices.h.

◆ pi

procinfo* Voice::pi

Definition at line 64 of file fevoices.h.

◆ prev

Voice* Voice::prev

Definition at line 62 of file fevoices.h.

◆ start_lineno

int Voice::start_lineno

Definition at line 75 of file fevoices.h.

◆ sw

feBufferInputs Voice::sw

Definition at line 77 of file fevoices.h.

◆ typ

feBufferTypes Voice::typ

Definition at line 85 of file fevoices.h.


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