Stg::Ancestor Class Reference

#include <stage.hh>

Inheritance diagram for Stg::Ancestor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void AddChild (Model *mod)
 Ancestor ()
void ForEachDescendant (stg_model_callback_t func, void *arg)
ModelPtrVecGetChildren ()
virtual Pose GetGlobalPose ()
void Lock ()
virtual void RemoveChild (Model *mod)
void SetToken (const std::string &str)
const char * Token ()
void Unlock ()
virtual ~Ancestor ()

Public Attributes

std::map< std::string,
unsigned int > 
child_type_counts

Protected Member Functions

void Load (Worldfile *wf, int section)
void Save (Worldfile *wf, int section)

Protected Attributes

pthread_mutex_t access_mutex
 Used by Lock() and Unlock() to prevent parallel access to this model.
ModelPtrVec children
bool debug
std::string token

Friends

class Canvas

Detailed Description

Base class for Model and World

Definition at line 637 of file stage.hh.


Constructor & Destructor Documentation

Stg::Ancestor::Ancestor (  ) 
virtual Stg::Ancestor::~Ancestor (  )  [virtual]

Member Function Documentation

virtual void Stg::Ancestor::AddChild ( Model mod  )  [virtual]
void Stg::Ancestor::ForEachDescendant ( stg_model_callback_t  func,
void *  arg 
)

recursively call func( model, arg ) for each descendant

ModelPtrVec& Stg::Ancestor::GetChildren (  )  [inline]

get the children of the this element

Definition at line 655 of file stage.hh.

virtual Pose Stg::Ancestor::GetGlobalPose (  )  [virtual]
void Stg::Ancestor::Load ( Worldfile *  wf,
int  section 
) [protected]

Reimplemented in Stg::Model.

void Stg::Ancestor::Lock (  )  [inline]

Definition at line 676 of file stage.hh.

virtual void Stg::Ancestor::RemoveChild ( Model mod  )  [virtual]

Reimplemented in Stg::WorldGui.

void Stg::Ancestor::Save ( Worldfile *  wf,
int  section 
) [protected]
void Stg::Ancestor::SetToken ( const std::string &  str  )  [inline]

Definition at line 673 of file stage.hh.

const char* Stg::Ancestor::Token (  )  [inline]

Definition at line 670 of file stage.hh.

void Stg::Ancestor::Unlock (  )  [inline]

Definition at line 677 of file stage.hh.


Friends And Related Function Documentation

friend class Canvas [friend]

Reimplemented in Stg::World, Stg::WorldGui, Stg::Model, and Stg::ModelPosition.

Definition at line 639 of file stage.hh.


Member Data Documentation

pthread_mutex_t Stg::Ancestor::access_mutex [protected]

Used by Lock() and Unlock() to prevent parallel access to this model.

Reimplemented in Stg::Model.

Definition at line 645 of file stage.hh.

std::map<std::string,unsigned int> Stg::Ancestor::child_type_counts

array contains the number of each type of child model

Definition at line 661 of file stage.hh.

Definition at line 642 of file stage.hh.

bool Stg::Ancestor::debug [protected]

Definition at line 643 of file stage.hh.

std::string Stg::Ancestor::token [protected]

Definition at line 644 of file stage.hh.


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


stage
Author(s): Richard Vaughan, with contributions from many others. See web page for a full credits list.
autogenerated on Fri Jan 11 10:03:39 2013