MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

TLista Class Reference

Bidimensional funbction storing. More...

#include <TLista.h>

Collaboration diagram for TLista:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TLista ()
 Costructor, initializes the head (first) and the bottom (last).
 ~TLista ()
 Dstructor, empties the list.
void NewNode (wxColour color, char *fx, rif *pointstructure, int drawflag, int width)
 Add a new node to the list.
void RemoveNode (int position)
 Add a new node to the list.
color ExtractColor (int position)
 Extract a color from the list.
char * ExtractFunction (int position)
 Extract a function text from the list.
rifExtractStructure (int position)
 Extract a function scomposed by TParserScomponi from the list.
int ExtractWidth (int position)
 Extract a width from the list.
int ExtractDrawFlag (int position)
 Extract a drawing flag from the list.
void ModifyNode (int position, wxColour color, char *fx, rif *_pointstructure, int drawflag, int width)
 Modifies an existing node of the list.

Public Attributes

int nelements
 Number of nodes(pr) in the list.

Private Types

typedef TLista::function pr
 Node of the list, conains a single function.

Private Attributes

prfirst
 Head of list.
prlast
 Bottom of the list.

Classes

struct  function
 Node of the list, conains a single function. More...

Detailed Description

Bidimensional funbction storing.

Tlista contains a monodirectional list with monodimensianal function scoposed by TParserScomponi and their options

Definition at line 17 of file TLista.h.


Member Typedef Documentation

typedef struct TLista::function TLista::pr [private]
 

Node of the list, conains a single function.


Constructor & Destructor Documentation

TLista::TLista  ) 
 

Costructor, initializes the head (first) and the bottom (last).

Definition at line 10 of file TLista.cpp.

References first, last, and nelements.

TLista::~TLista  ) 
 

Dstructor, empties the list.

Definition at line 3 of file TLista.cpp.

References nelements, and RemoveNode().


Member Function Documentation

color TLista::ExtractColor int  position  ) 
 

Extract a color from the list.

Parameters:
position the position of the node to delete.
Returns:
the wxColor of the function
See also:
ExtractFunction(), ExtractStructure(), ExtractWidth() and EstraiFlagDisegno()

Definition at line 92 of file TLista.cpp.

References TLista::function::colore, first, and TLista::function::next.

Referenced by DlgOpzioni::BtnOkClick1(), DlgOpzioni::LstFunzioniEnter(), and PnlGraph::OnPaint().

int TLista::ExtractDrawFlag int  position  ) 
 

Extract a drawing flag from the list.

Parameters:
position the position of the node to delete.
Returns:
a drawing flag
See also:
ExtractFunction(), ExtractColor(), ExtractWidth() and ExtractStructure()

Definition at line 130 of file TLista.cpp.

References TLista::function::drawflag, first, and TLista::function::next.

Referenced by DlgOpzioni::AggiornaList(), DlgOpzioni::BtnModificaClick(), PnlObjTree::FillFunction(), and PnlGraph::OnPaint().

char * TLista::ExtractFunction int  position  ) 
 

Extract a function text from the list.

Parameters:
position the position of the node to delete.
Returns:
the text of the function
See also:
ExtractColor(), ExtractStructure(), ExtractWidth() and EstraiFlagDisegno()

Definition at line 106 of file TLista.cpp.

References first, TLista::function::fx, and TLista::function::next.

Referenced by DlgOpzioni::AggiornaList(), DlgOpzioni::BtnOkClick1(), and PnlObjTree::FillFunction().

rif * TLista::ExtractStructure int  position  ) 
 

Extract a function scomposed by TParserScomponi from the list.

Parameters:
position the position of the node to delete.
Returns:
function scomposed by TParserScomponi
See also:
ExtractFunction(), ExtractColor(), ExtractWidth() and EstraiFlagDisegno()

Definition at line 118 of file TLista.cpp.

References first, TLista::function::next, and TLista::function::pointstructure.

Referenced by DlgOpzioni::BtnOkClick1(), and PnlGraph::OnPaint().

int TLista::ExtractWidth int  position  ) 
 

Extract a width from the list.

Parameters:
position the position of the node to delete.
Returns:
a width
See also:
ExtractFunction(), ExtractColor(), ExtractStructure() and EstraiFlagDisegno()

Definition at line 142 of file TLista.cpp.

References first, TLista::function::next, and TLista::function::width.

Referenced by DlgOpzioni::BtnOkClick1(), DlgOpzioni::LstFunzioniEnter(), and PnlGraph::OnPaint().

void TLista::ModifyNode int  position,
wxColour  color,
char *  fx,
rif _pointstructure,
int  drawflag,
int  width
 

Modifies an existing node of the list.

Parameters:
position the position of the node to delete.
color the color of the function.
*fx the text of the function.
_pointstructure the function scomposed by TParserScomponi.
drawflag show/hide the function.
drawing width of the function.
See also:
RemoveNode() and NewNode()

Definition at line 155 of file TLista.cpp.

References TLista::function::colore, TLista::function::drawflag, first, TLista::function::fx, TParserScomponi::Libera_Memoria(), TLista::function::next, TLista::function::pointstructure, and TLista::function::width.

Referenced by DlgOpzioni::BtnModificaClick(), and DlgOpzioni::BtnOkClick1().

void TLista::NewNode wxColour  color,
char *  fx,
rif pointstructure,
int  drawflag,
int  width
 

Add a new node to the list.

Parameters:
color the color of the function.
*fx the text of the function.
pointstructure the function scomposed by TParserScomponi.
drawflag show/hide the function.
drawing width of the function.
See also:
RemoveNode() and ModifyNode()

Definition at line 21 of file TLista.cpp.

References TLista::function::colore, TLista::function::drawflag, first, TLista::function::fx, last, nelements, TLista::function::next, TLista::function::pointstructure, and TLista::function::width.

Referenced by DlgOpzioni::BtnInserisciClick().

void TLista::RemoveNode int  position  ) 
 

Add a new node to the list.

Parameters:
position,the position of the node to delete.
See also:
NewNode() and ModifyNode()

Definition at line 50 of file TLista.cpp.

References first, last, TParserScomponi::Libera_Memoria(), nelements, TLista::function::next, and TLista::function::pointstructure.

Referenced by DlgOpzioni::BtnRimuoviClick(), and ~TLista().


Member Data Documentation

pr* TLista::first [private]
 

Head of list.

Definition at line 44 of file TLista.h.

Referenced by ExtractColor(), ExtractDrawFlag(), ExtractFunction(), ExtractStructure(), ExtractWidth(), ModifyNode(), NewNode(), RemoveNode(), and TLista().

pr* TLista::last [private]
 

Bottom of the list.

Definition at line 47 of file TLista.h.

Referenced by NewNode(), RemoveNode(), and TLista().

int TLista::nelements
 

Number of nodes(pr) in the list.

Definition at line 58 of file TLista.h.

Referenced by DlgOpzioni::BtnRimuoviClick(), PnlObjTree::FillFunction(), NewNode(), PnlGraph::OnPaint(), RemoveNode(), TLista(), and ~TLista().


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

 

SourceForge Logo