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

NodePathComponent Class Reference

#include <nodePathComponent.h>

Inheritance diagram for NodePathComponent:

ReferenceCount List of all members.

Public Member Functions

INLINE ~NodePathComponent ()
INLINE PandaNodeget_node () const
int get_key () const
bool is_top_node () const
INLINE bool is_collapsed () const
NodePathComponent * get_next () const
int get_length () const
INLINE NodePathComponent * get_collapsed () const
bool fix_length ()
NodePathComponent * uncollapse ()
void output (ostream &out) const

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Private Types

typedef CycleDataReader< CDataCDReader
typedef CycleDataWriter< CDataCDWriter

Private Member Functions

INLINE NodePathComponent (PandaNode *node, NodePathComponent *next=NULL)
INLINE NodePathComponent (const NodePathComponent &copy)
INLINE void operator= (const NodePathComponent &copy)
void set_next (NodePathComponent *next)
void set_top_node ()
void collapse_with (NodePathComponent *next)
 PT (PandaNode) _node

Private Attributes

int _key
PipelineCycler< CData_cycler

Static Private Attributes

int _next_key = 1
TypeHandle _type_handle

Friends

class PandaNode

Member Typedef Documentation

typedef CycleDataReader<CData> NodePathComponent::CDReader [private]
 

Definition at line 94 of file nodePathComponent.h.

typedef CycleDataWriter<CData> NodePathComponent::CDWriter [private]
 

Definition at line 95 of file nodePathComponent.h.


Constructor & Destructor Documentation

INLINE NodePathComponent::NodePathComponent PandaNode node,
NodePathComponent *  next = NULL
[private]
 

INLINE NodePathComponent::NodePathComponent const NodePathComponent &  copy  )  [private]
 

INLINE NodePathComponent::~NodePathComponent  ) 
 


Member Function Documentation

void NodePathComponent::collapse_with NodePathComponent *  next  )  [private]
 

Definition at line 244 of file nodePathComponent.cxx.

References _cycler, _key, is_collapsed(), and NULL.

bool NodePathComponent::fix_length  ) 
 

Definition at line 128 of file nodePathComponent.cxx.

References _cycler, get_length(), get_next(), and is_top_node().

TypeHandle NodePathComponent::get_class_type void   )  [inline, static]
 

Reimplemented from ReferenceCount.

Definition at line 100 of file nodePathComponent.h.

INLINE NodePathComponent* NodePathComponent::get_collapsed  )  const
 

Referenced by get_key(), get_length(), get_next(), is_top_node(), set_next(), set_top_node(), and uncollapse().

int NodePathComponent::get_key  )  const
 

Definition at line 47 of file nodePathComponent.cxx.

References _key, _next_key, get_collapsed(), and is_collapsed().

int NodePathComponent::get_length  )  const
 

Definition at line 83 of file nodePathComponent.cxx.

References _cycler, get_collapsed(), and is_collapsed().

Referenced by NodePath::find_common_ancestor(), fix_length(), and NodePath::verify_complete().

NodePathComponent * NodePathComponent::get_next  )  const
 

Definition at line 97 of file nodePathComponent.cxx.

References _cycler, get_collapsed(), is_collapsed(), NULL, and uncollapse().

Referenced by PandaNode::detach(), NodePath::find_common_ancestor(), fix_length(), NodePath::get_hidden_ancestor(), NodePath::get_node(), NodePath::get_stashed_ancestor(), NodePath::get_top_node(), output(), and NodePath::verify_complete().

INLINE PandaNode* NodePathComponent::get_node  )  const
 

Referenced by PandaNode::detach(), NodePath::get_hidden_ancestor(), NodePath::get_node(), NodePath::get_stashed_ancestor(), NodePath::get_top_node(), output(), PandaNode::reparent(), and NodePath::verify_complete().

void NodePathComponent::init_type void   )  [inline, static]
 

Reimplemented from ReferenceCount.

Definition at line 103 of file nodePathComponent.h.

References ReferenceCount::get_class_type(), ReferenceCount::init_type(), and register_type().

Referenced by init_libpgraph().

INLINE bool NodePathComponent::is_collapsed  )  const
 

Referenced by collapse_with(), get_key(), get_length(), get_next(), is_top_node(), set_next(), set_top_node(), and uncollapse().

bool NodePathComponent::is_top_node  )  const
 

Definition at line 69 of file nodePathComponent.cxx.

References _cycler, get_collapsed(), is_collapsed(), and NULL.

Referenced by PandaNode::detach(), fix_length(), NodePath::get_top_node(), and PandaNode::reparent().

INLINE void NodePathComponent::operator= const NodePathComponent &  copy  )  [private]
 

void NodePathComponent::output ostream &  out  )  const
 

Definition at line 174 of file nodePathComponent.cxx.

References PandaNode::find_parent(), PandaNode::find_stashed(), get_next(), get_node(), PandaNode::get_type(), and NULL.

NodePathComponent::PT PandaNode   )  [private]
 

void NodePathComponent::set_next NodePathComponent *  next  )  [private]
 

Definition at line 208 of file nodePathComponent.cxx.

References _cycler, get_collapsed(), is_collapsed(), and NULL.

Referenced by PandaNode::reparent().

void NodePathComponent::set_top_node  )  [private]
 

Definition at line 225 of file nodePathComponent.cxx.

References _cycler, get_collapsed(), is_collapsed(), and NULL.

NodePathComponent * NodePathComponent::uncollapse  ) 
 

Definition at line 155 of file nodePathComponent.cxx.

References get_collapsed(), and is_collapsed().

Referenced by get_next().


Friends And Related Function Documentation

friend class PandaNode [friend]
 

Definition at line 111 of file nodePathComponent.h.


Member Data Documentation

PipelineCycler<CData> NodePathComponent::_cycler [private]
 

Definition at line 93 of file nodePathComponent.h.

Referenced by collapse_with(), fix_length(), get_length(), get_next(), is_top_node(), set_next(), and set_top_node().

int NodePathComponent::_key [private]
 

Definition at line 80 of file nodePathComponent.h.

Referenced by collapse_with(), and get_key().

int NodePathComponent::_next_key = 1 [static, private]
 

Definition at line 24 of file nodePathComponent.cxx.

Referenced by get_key().

TypeHandle NodePathComponent::_type_handle [static, private]
 

Reimplemented from ReferenceCount.

Definition at line 25 of file nodePathComponent.cxx.


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