Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Ptree Class Reference

#include <ptree-core.h>

Inheritance diagram for Ptree:

Inheritance graph
[legend]
Collaboration diagram for Ptree:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool IsLeaf ()=nil
bool Eq (char)
bool Eq (char *)
bool Eq (const char *, int)
bool Eq (Ptree *p)
void Display ()
void Display2 (std::ostream &)
virtual void Print (std::ostream &, int, int)=nil
int Write (std::ostream &)
virtual int Write (std::ostream &, int)=nil
void PrintIndent (std::ostream &, int)
char * ToString ()
virtual void WritePS (ProgramString &)=nil
char * GetPosition ()
int GetLength ()
PtreeCar ()
PtreeCdr ()
PtreeCadr ()
PtreeCddr ()
PtreeCa_ar ()
void SetCar (Ptree *p)
void SetCdr (Ptree *p)
char * LeftMost ()
char * RightMost ()
virtual int What ()
bool IsA (int)
bool IsA (int, int)
bool IsA (int, int, int)
virtual PtreeTranslate (Walker *)
virtual void Typeof (Walker *, TypeInfo &)
virtual char * GetEncodedType ()
virtual char * GetEncodedName ()
PtreeLast ()
PtreeFirst ()
PtreeRest ()
PtreeSecond ()
PtreeThird ()
PtreeNth (int n)
int Length ()
PtreeListTail (int n)
bool Reify (unsigned int &)
bool Reify (char *&)

Static Public Member Functions

bool Eq (Ptree *, char)
bool Eq (Ptree *, char *)
bool Eq (Ptree *, char *, int)
bool Eq (Ptree *, Ptree *)
bool Equiv (Ptree *, Ptree *)
bool Equal (Ptree *, Ptree *)
PtreeLast (Ptree *)
PtreeFirst (Ptree *)
PtreeRest (Ptree *)
PtreeSecond (Ptree *)
PtreeThird (Ptree *)
PtreeNth (Ptree *, int)
int Length (Ptree *)
PtreeListTail (Ptree *, int)
PtreeCons (Ptree *, Ptree *)
PtreeList ()
PtreeList (Ptree *)
PtreeList (Ptree *, Ptree *)
PtreeList (Ptree *, Ptree *, Ptree *)
PtreeList (Ptree *, Ptree *, Ptree *, Ptree *)
PtreeList (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeList (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeList (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeList (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeCopyList (Ptree *)
PtreeAppend (Ptree *, Ptree *)
PtreeReplaceAll (Ptree *, Ptree *, Ptree *)
PtreeSubst (Ptree *, Ptree *, Ptree *)
PtreeSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeShallowSubst (Ptree *, Ptree *, Ptree *)
PtreeShallowSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeShallowSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeShallowSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
PtreeSubstSublist (Ptree *, Ptree *, Ptree *)
PtreeSnoc (Ptree *, Ptree *)
PtreeNconc (Ptree *, Ptree *)
PtreeNconc (Ptree *, Ptree *, Ptree *)
bool Match (Ptree *, char *,...)
PtreeMake (const char *pat,...)
PtreeMakeStatement (const char *pat,...)
PtreeGenSym ()
PtreeqMake (char *)
PtreeqMakeStatement (char *)
char * IntegerToString (sint, int &)

Static Public Attributes

bool show_encoded = FALSE

Protected Attributes

union {
   struct {
      Ptree *   child
      Ptree *   next
   }   nonleaf
   struct {
      char *   position
      int   length
   }   leaf
data

Static Private Member Functions

char * MatchPat (Ptree *, char *)
char * MatchList (Ptree *, char *)
char * MatchWord (Ptree *, char *)

Member Function Documentation

virtual bool Ptree::IsLeaf  )  [virtual]
 

Reimplemented in Leaf, and NonLeaf.

bool Ptree::Eq char   ) 
 

bool Ptree::Eq char *   ) 
 

bool Ptree::Eq const char *  ,
int 
 

bool Ptree::Eq Ptree p  )  [inline]
 

void Ptree::Display  ) 
 

void Ptree::Display2 std::ostream &   ) 
 

virtual void Ptree::Print std::ostream &  ,
int  ,
int 
[virtual]
 

Reimplemented in Leaf, DupLeaf, NonLeaf, PtreeBrace, PtreeDeclarator, PtreeName, and PtreeFstyleCastExpr.

int Ptree::Write std::ostream &   ) 
 

virtual int Ptree::Write std::ostream &  ,
int 
[virtual]
 

Reimplemented in Leaf, NonLeaf, and PtreeBrace.

void Ptree::PrintIndent std::ostream &  ,
int 
 

char * Ptree::ToString  ) 
 

virtual void Ptree::WritePS ProgramString  )  [virtual]
 

Reimplemented in Leaf, and NonLeaf.

char* Ptree::GetPosition  )  [inline]
 

int Ptree::GetLength  )  [inline]
 

Ptree* Ptree::Car  )  [inline]
 

Ptree* Ptree::Cdr  )  [inline]
 

Ptree* Ptree::Cadr  )  [inline]
 

Ptree* Ptree::Cddr  )  [inline]
 

Ptree * Ptree::Ca_ar  ) 
 

void Ptree::SetCar Ptree p  )  [inline]
 

void Ptree::SetCdr Ptree p  )  [inline]
 

char * Ptree::LeftMost  ) 
 

char * Ptree::RightMost  ) 
 

int Ptree::What  )  [virtual]
 

Reimplemented in LeafThis, PtreeTypedef, PtreeTemplateDecl, PtreeTemplateInstantiation, PtreeExternTemplate, PtreeMetaclassDecl, PtreeLinkageSpec, PtreeNamespaceSpec, PtreeUsing, PtreeDeclaration, PtreeDeclarator, PtreeName, PtreeFstyleCastExpr, PtreeClassSpec, PtreeEnumSpec, PtreeAccessSpec, PtreeAccessDecl, PtreeUserAccessSpec, and PtreeUserdefKeyword.

bool Ptree::IsA int   ) 
 

bool Ptree::IsA int  ,
int 
 

bool Ptree::IsA int  ,
int  ,
int 
 

Ptree * Ptree::Translate Walker  )  [virtual]
 

Reimplemented in LeafName, LeafThis, PtreeBrace, PtreeBlock, PtreeClassBody, PtreeTypedef, PtreeTemplateDecl, PtreeTemplateInstantiation, PtreeExternTemplate, PtreeMetaclassDecl, PtreeLinkageSpec, PtreeNamespaceSpec, PtreeUsing, PtreeDeclaration, PtreeName, PtreeFstyleCastExpr, PtreeClassSpec, PtreeEnumSpec, PtreeAccessSpec, PtreeAccessDecl, and PtreeUserAccessSpec.

void Ptree::Typeof Walker ,
TypeInfo
[virtual]
 

Reimplemented in LeafName, LeafThis, PtreeName, and PtreeFstyleCastExpr.

char * Ptree::GetEncodedType  )  [virtual]
 

Reimplemented in PtreeDeclarator, and PtreeFstyleCastExpr.

char * Ptree::GetEncodedName  )  [virtual]
 

Reimplemented in PtreeUsing, PtreeDeclarator, PtreeName, PtreeClassSpec, and PtreeEnumSpec.

Ptree* Ptree::Last  )  [inline]
 

Ptree* Ptree::First  )  [inline]
 

Ptree* Ptree::Rest  )  [inline]
 

Ptree* Ptree::Second  )  [inline]
 

Ptree* Ptree::Third  )  [inline]
 

Ptree* Ptree::Nth int  n  )  [inline]
 

int Ptree::Length  )  [inline]
 

Ptree* Ptree::ListTail int  n  )  [inline]
 

bool Ptree::Eq Ptree ,
char 
[static]
 

bool Ptree::Eq Ptree ,
char * 
[static]
 

bool Ptree::Eq Ptree ,
char *  ,
int 
[static]
 

bool Ptree::Eq Ptree ,
Ptree
[static]
 

bool Ptree::Equiv Ptree ,
Ptree
[static]
 

bool Ptree::Equal Ptree ,
Ptree
[static]
 

Ptree * Ptree::Last Ptree  )  [static]
 

Ptree * Ptree::First Ptree  )  [static]
 

Ptree * Ptree::Rest Ptree  )  [static]
 

Ptree * Ptree::Second Ptree  )  [static]
 

Ptree * Ptree::Third Ptree  )  [static]
 

Ptree * Ptree::Nth Ptree ,
int 
[static]
 

int Ptree::Length Ptree  )  [static]
 

Ptree * Ptree::ListTail Ptree ,
int 
[static]
 

Ptree * Ptree::Cons Ptree ,
Ptree
[static]
 

Ptree * Ptree::List  )  [static]
 

Ptree * Ptree::List Ptree  )  [static]
 

Ptree * Ptree::List Ptree ,
Ptree
[static]
 

Ptree * Ptree::List Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::List Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::List Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::List Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::List Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::List Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::CopyList Ptree  )  [static]
 

Ptree * Ptree::Append Ptree ,
Ptree
[static]
 

Ptree * Ptree::ReplaceAll Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::Subst Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::Subst Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::Subst Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::ShallowSubst Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::ShallowSubst Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::ShallowSubst Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::ShallowSubst Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::SubstSublist Ptree ,
Ptree ,
Ptree
[static]
 

Ptree * Ptree::Snoc Ptree ,
Ptree
[static]
 

Ptree * Ptree::Nconc Ptree ,
Ptree
[static]
 

Ptree * Ptree::Nconc Ptree ,
Ptree ,
Ptree
[static]
 

bool Ptree::Match Ptree ,
char *  ,
... 
[static]
 

Ptree * Ptree::Make const char *  pat,
... 
[static]
 

Ptree * Ptree::MakeStatement const char *  pat,
... 
[static]
 

Ptree * Ptree::GenSym  )  [static]
 

Ptree * Ptree::qMake char *   )  [static]
 

Ptree * Ptree::qMakeStatement char *   )  [static]
 

bool Ptree::Reify unsigned int &   ) 
 

bool Ptree::Reify char *&   ) 
 

char * Ptree::IntegerToString sint  ,
int & 
[static]
 

char * Ptree::MatchPat Ptree ,
char * 
[static, private]
 

char * Ptree::MatchList Ptree ,
char * 
[static, private]
 

char * Ptree::MatchWord Ptree ,
char * 
[static, private]
 


Member Data Documentation

BEGIN_OPENCXX_NAMESPACE bool Ptree::show_encoded = FALSE [static]
 

Ptree* Ptree::child [protected]
 

Ptree* Ptree::next [protected]
 

struct { ... } Ptree::nonleaf [protected]
 

char* Ptree::position [protected]
 

int Ptree::length [protected]
 

struct { ... } Ptree::leaf [protected]
 

union { ... } Ptree::data [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 11 22:36:20 2004 for IOPC by Doxygen 1.3.6