Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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 AsyncTask 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 ShaderBuffer SimpleLru STTerrain STTree TextFont Texture TextureImage Thread XFileAnimationSet XFileMesh XFileNode

Public Member Functions

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

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 

Public Attributes

 get_name
 
 set_name
 

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 26 of file namable.h.

Member Function Documentation

◆ clear_name()

void Namable::clear_name ( )
inline

Resets the Namable's name to empty.

Definition at line 35 of file namable.I.

◆ has_name()

bool Namable::has_name ( ) const
inline

◆ output()

void Namable::output ( std::ostream &  out) const
inline

Outputs the Namable.

This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.

Definition at line 61 of file namable.I.


The documentation for this class was generated from the following files: