Panda3D
Public Member Functions | Static Public Member Functions

Namable Class Reference

A base class for all things which can have a name. More...

#include "namable.h"

Inheritance diagram for Namable:
MemoryBase AdaptiveLru AnimControl AnimGroup AsyncTaskBase AsyncTaskChain AsyncTaskManager CardMaker CollisionTraverser DXFLayer EggCharacterData EggComponentData EggFile EggMorph< Parameter > EggNamedObject FisheyeMaker HeightfieldTesselator LineSegs Loader Material MaxNodeDesc MayaBlendDesc MayaNodeDesc MayaShader MouseWatcherRegion MovieAudio MovieVideo PaletteGroup PalettePage PandaNode PartGroup Pipeline SimpleLru SoftNodeDesc STTerrain STTree TextFont Texture TextureImage Thread XFileAnimationSet XFileMesh XFileNode

List of all members.

Public Member Functions

 Namable (const string &initial_name="")
 Namable (const Namable &copy)
void clear_name ()
 Resets the Namable's name to empty.
const string & get_name () const
bool has_name () const
 Returns true if the Namable has a nonempty name set, false if the name is empty.
Namableoperator= (const Namable &other)
void output (ostream &out) const
 Outputs the Namable.
void set_name (const string &name)

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Detailed Description

A base class for all things which can have a name.

The name is either empty or nonempty, but it is never NULL.

Definition at line 29 of file namable.h.


Member Function Documentation

void Namable::clear_name ( ) [inline]

Resets the Namable's name to empty.

Reimplemented in AsyncTask.

Definition at line 64 of file namable.I.

bool Namable::has_name ( ) const [inline]
void Namable::output ( ostream &  out) const [inline]

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations