PLearn 0.1
Public Member Functions | Public Attributes
PLearn::Symbol Struct Reference

#include <Hash.h>

Collaboration diagram for PLearn::Symbol:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Symbol (int symbol=0)
 Symbol (const Symbol &b)
 operator char * () const
size_t byteLength () const
 operator int ()
bool operator== (const Symbol &o) const
bool operator!= (const Symbol &o) const
Symbol operator++ (int)
 postfix
Symbol operator++ ()
 prefix

Public Attributes

int s

Detailed Description

this class is just an "int" and is created only to avoid conflicts within Array methods (to build Array<Symbol> because Array<int> does not work) It is also useful as a key for Hash tables

Definition at line 630 of file Hash.h.


Constructor & Destructor Documentation

PLearn::Symbol::Symbol ( int  symbol = 0) [inline]

Definition at line 633 of file Hash.h.

: s(symbol) {}
PLearn::Symbol::Symbol ( const Symbol b) [inline]

Definition at line 634 of file Hash.h.

: s(b.s) { }

Member Function Documentation

size_t PLearn::Symbol::byteLength ( ) const [inline]

Definition at line 637 of file Hash.h.

{ return sizeof(int); }
PLearn::Symbol::operator char * ( ) const [inline]

Definition at line 635 of file Hash.h.

References s.

{ return (char*)(&s); }
PLearn::Symbol::operator int ( ) [inline]

Definition at line 638 of file Hash.h.

References s.

{ return s; }
bool PLearn::Symbol::operator!= ( const Symbol o) const [inline]

Definition at line 640 of file Hash.h.

References s.

{ return o.s!=s; }
Symbol PLearn::Symbol::operator++ ( ) [inline]

prefix

Definition at line 642 of file Hash.h.

References s.

Symbol PLearn::Symbol::operator++ ( int  ) [inline]

postfix

Definition at line 641 of file Hash.h.

References s.

bool PLearn::Symbol::operator== ( const Symbol o) const [inline]

Definition at line 639 of file Hash.h.

References s.

{ return o.s==s; }

Member Data Documentation

Definition at line 632 of file Hash.h.

Referenced by operator char *(), operator int(), operator!=(), operator++(), and operator==().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines