Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FindApproxPath Class Reference

#include <findApproxPath.h>

List of all members.

Public Member Functions

INLINE FindApproxPath ()
bool add_string (const string &str_path)
bool add_flags (const string &str_flags)
bool add_component (string str_component)
INLINE void add_match_name (const string &name, int flags)
INLINE void add_match_name_glob (const string &glob, int flags)
INLINE void add_match_exact_type (TypeHandle type, int flags)
INLINE void add_match_inexact_type (TypeHandle type, int flags)
INLINE void add_match_one (int flags)
INLINE void add_match_many (int flags)
INLINE void add_match_pointer (PandaNode *pointer, int flags)
INLINE int get_num_components () const
INLINE bool is_component_match_many (int index) const
INLINE bool matches_component (int index, PandaNode *node) const
INLINE bool matches_stashed (int index) const
INLINE bool return_hidden () const
INLINE bool return_stashed () const
void output (ostream &out) const
INLINE void output_component (ostream &out, int index) const

Private Types

typedef pvector< ComponentPath
enum  ComponentType {
  CT_match_name, CT_match_name_glob, CT_match_exact_type, CT_match_inexact_type,
  CT_match_one, CT_match_many, CT_match_pointer
}
enum  ComponentFlags { CF_stashed = 0x001 }

Private Attributes

Path _path
bool _return_hidden
bool _return_stashed

Friends

ostream & operator<< (ostream &, FindApproxPath::ComponentType)
INLINE ostream & operator<< (ostream &, const FindApproxPath::Component &)


Member Typedef Documentation

typedef pvector<Component> FindApproxPath::Path [private]
 

Definition at line 93 of file findApproxPath.h.


Member Enumeration Documentation

enum FindApproxPath::ComponentFlags [private]
 

Enumeration values:
CF_stashed 

Definition at line 77 of file findApproxPath.h.

enum FindApproxPath::ComponentType [private]
 

Enumeration values:
CT_match_name 
CT_match_name_glob 
CT_match_exact_type 
CT_match_inexact_type 
CT_match_one 
CT_match_many 
CT_match_pointer 

Definition at line 68 of file findApproxPath.h.


Constructor & Destructor Documentation

INLINE FindApproxPath::FindApproxPath  ) 
 


Member Function Documentation

bool FindApproxPath::add_component string  str_component  ) 
 

Definition at line 196 of file findApproxPath.cxx.

References add_match_exact_type(), add_match_inexact_type(), add_match_many(), add_match_name_glob(), add_match_one(), CF_stashed, TypeHandle::none(), and TypeRegistry::ptr().

Referenced by add_string().

bool FindApproxPath::add_flags const string &  str_flags  ) 
 

Definition at line 141 of file findApproxPath.cxx.

References _return_hidden, and _return_stashed.

Referenced by add_string().

INLINE void FindApproxPath::add_match_exact_type TypeHandle  type,
int  flags
 

Referenced by add_component().

INLINE void FindApproxPath::add_match_inexact_type TypeHandle  type,
int  flags
 

Referenced by add_component().

INLINE void FindApproxPath::add_match_many int  flags  ) 
 

Referenced by add_component(), NodePath::find_all_paths_to(), and NodePath::find_path_to().

INLINE void FindApproxPath::add_match_name const string &  name,
int  flags
 

INLINE void FindApproxPath::add_match_name_glob const string &  glob,
int  flags
 

Referenced by add_component().

INLINE void FindApproxPath::add_match_one int  flags  ) 
 

Referenced by add_component().

INLINE void FindApproxPath::add_match_pointer PandaNode pointer,
int  flags
 

Referenced by NodePath::find_all_paths_to(), and NodePath::find_path_to().

bool FindApproxPath::add_string const string &  str_path  ) 
 

Definition at line 100 of file findApproxPath.cxx.

References add_component(), add_flags(), and start.

Referenced by NodePathCollection::find_all_matches(), and NodePath::find_matches().

INLINE int FindApproxPath::get_num_components  )  const
 

Referenced by FindApproxLevelEntry::consider_next_step(), and FindApproxLevelEntry::consider_node().

INLINE bool FindApproxPath::is_component_match_many int  index  )  const
 

Referenced by FindApproxLevelEntry::consider_next_step(), and FindApproxLevelEntry::consider_node().

INLINE bool FindApproxPath::matches_component int  index,
PandaNode node
const
 

Referenced by FindApproxLevelEntry::consider_next_step().

INLINE bool FindApproxPath::matches_stashed int  index  )  const
 

void FindApproxPath::output ostream &  out  )  const
 

Definition at line 265 of file findApproxPath.cxx.

References _path.

Referenced by operator<<().

INLINE void FindApproxPath::output_component ostream &  out,
int  index
const
 

Referenced by FindApproxLevelEntry::output().

INLINE bool FindApproxPath::return_hidden  )  const
 

Referenced by FindApproxLevelEntry::consider_next_step().

INLINE bool FindApproxPath::return_stashed  )  const
 

Referenced by FindApproxLevelEntry::consider_node().


Friends And Related Function Documentation

INLINE ostream& operator<< ostream &  out,
const FindApproxPath::Component component
[friend]
 

Definition at line 107 of file findApproxPath.h.

ostream& operator<< ostream &  ,
FindApproxPath::ComponentType 
[friend]
 

Definition at line 280 of file findApproxPath.cxx.


Member Data Documentation

Path FindApproxPath::_path [private]
 

Definition at line 94 of file findApproxPath.h.

Referenced by output().

bool FindApproxPath::_return_hidden [private]
 

Definition at line 96 of file findApproxPath.h.

Referenced by add_flags().

bool FindApproxPath::_return_stashed [private]
 

Definition at line 97 of file findApproxPath.h.

Referenced by add_flags().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:16 2003 for Panda by doxygen1.3