Back to Top page.

EGTAbstractNode< T > Class Template Reference

Base class template of EGTSubGraph and EGTNode. More...

#include <EGTAbstractNode.h>

Inheritance diagram for EGTAbstractNode< T >:

Inheritance graph
[legend]
Collaboration diagram for EGTAbstractNode< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T Term
typedef EGTVector< T * > Terms
typedef EGTAbstractNode< T > Self

Public Methods

 EGTAbstractNode (UInt uNumIn, UInt uNumOut)
 Constructor.

 EGTAbstractNode (const Self &rhs)
 Constructor.

virtual ~EGTAbstractNode ()
 Destructor.

UInt GetNumInTerms () const
 Returns the number of input Terminals.

UInt GetNumOutTerms () const
 Returns the number of output Terminals.

TermGetInTerm (UInt uTermNum)
 Returns the input Terminal with the specified ID number.

TermGetOutTerm (UInt uTermNum)
 Returns the output Terminal with the specified ID number.

const TermGetInTerm (UInt uTermNum) const
 Returns the input Terminal with the specified ID number (const version).

const TermGetOutTerm (UInt uTermNum) const
 Returns the output Terminal with the specified ID number (const version).

void ConnectSrc (UInt uTermNum, Term *src)
 Interconnects the input Terminal with the source (output) Terminal.

void ConnectDest (UInt uTermNum, Term *dest)
 Interconnects the output Terminal with the destination (input) Terminal.

virtual void Display (std::ostream &out) const
 Outputs the data of input/output Terminals.


Protected Methods

void CheckNumInTerms (UInt uNum, char *filename, UInt uLine) const
 Checks whether the input Terminal with the specified ID number exists. If not exists, throws an exception.

void CheckNumOutTerms (UInt uNum, char *filename, UInt uLine) const
 Checks whether the output Terminal with the specified ID number exists. If not exists, throws an exception.


Protected Attributes

Terms m_tInTerms
 Array of input Terminals.

Terms m_tOutTerms
 Array of output Terminals.


Detailed Description

template<class T>
class EGTAbstractNode< T >

Base class template of EGTSubGraph and EGTNode.

It is assumed that <T> is a subclass of EGTTerminal.


Member Typedef Documentation

template<class T>
typedef EGTAbstractNode<T> EGTAbstractNode< T >::Self
 

Reimplemented in EGTNode< T >, and EGTSubGraph< TN >.

template<class T>
typedef T EGTAbstractNode< T >::Term
 

Reimplemented in EGTNode< T >, and EGTSubGraph< TN >.

template<class T>
typedef EGTVector<T*> EGTAbstractNode< T >::Terms
 

Reimplemented in EGTNode< T >, and EGTSubGraph< TN >.


Constructor & Destructor Documentation

template<class T>
EGTAbstractNode< T >::EGTAbstractNode UInt    uNumIn,
UInt    uNumOut
[inline]
 

Constructor.

template<class T>
EGTAbstractNode< T >::EGTAbstractNode const Self   rhs [inline]
 

Constructor.

template<class T>
virtual EGTAbstractNode< T >::~EGTAbstractNode   [inline, virtual]
 

Destructor.


Member Function Documentation

template<class T>
void EGTAbstractNode< T >::CheckNumInTerms UInt    uNum,
char *    filename,
UInt    uLine
const [protected]
 

Checks whether the input Terminal with the specified ID number exists. If not exists, throws an exception.

Parameters:
uNum  [in] ID number of the Terminal to be checked
filename  [in] Filename
uLine  [in] Line number

template<class T>
void EGTAbstractNode< T >::CheckNumOutTerms UInt    uNum,
char *    filename,
UInt    uLine
const [protected]
 

Checks whether the output Terminal with the specified ID number exists. If not exists, throws an exception.

Parameters:
uNum  [in] ID number of the Terminal to be checked
filename  [in] Filename
uLine  [in] Line number

template<class T>
void EGTAbstractNode< T >::ConnectDest UInt    uTermNum,
Term   dest
 

Interconnects the output Terminal with the destination (input) Terminal.

Parameters:
uTermNum  [in] ID number of the output Terminal.
dest  [i/o] Pointer to the destination (input) Terminal.

template<class T>
void EGTAbstractNode< T >::ConnectSrc UInt    uTermNum,
Term   src
 

Interconnects the input Terminal with the source (output) Terminal.

Parameters:
uTermNum  [in] ID number of the input Terminal.
src  [i/o] Pointer to the source (output) Terminal.

template<class T>
void EGTAbstractNode< T >::Display std::ostream &    out const [virtual]
 

Outputs the data of input/output Terminals.

Parameters:
out  [out] Output stream

Reimplemented in EGTNode< T >, and EGTSubGraph< TN >.

template<class T>
const Term* EGTAbstractNode< T >::GetInTerm UInt    uTermNum const [inline]
 

Returns the input Terminal with the specified ID number (const version).

template<class T>
Term* EGTAbstractNode< T >::GetInTerm UInt    uTermNum [inline]
 

Returns the input Terminal with the specified ID number.

template<class T>
UInt EGTAbstractNode< T >::GetNumInTerms   const [inline]
 

Returns the number of input Terminals.

template<class T>
UInt EGTAbstractNode< T >::GetNumOutTerms   const [inline]
 

Returns the number of output Terminals.

template<class T>
const Term* EGTAbstractNode< T >::GetOutTerm UInt    uTermNum const [inline]
 

Returns the output Terminal with the specified ID number (const version).

template<class T>
Term* EGTAbstractNode< T >::GetOutTerm UInt    uTermNum [inline]
 

Returns the output Terminal with the specified ID number.


Member Data Documentation

template<class T>
Terms EGTAbstractNode< T >::m_tInTerms [protected]
 

Array of input Terminals.

template<class T>
Terms EGTAbstractNode< T >::m_tOutTerms [protected]
 

Array of output Terminals.


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