Jive reference manual
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
jem::NamedObject Class Reference

#include <jem/base/NamedObject.h>

Inherits jem::Object.

Inherited by jem::gl::GfxNode, jem::Member, jive::algebra::GramSchmidt, jive::algebra::MatrixBuilder, jive::app::DataPrinter, jive::app::Module, jive::geom::ShapeTable, jive::gl::DataSet, jive::gl::Plugin, jive::graph::Optimizer, jive::graph::Partitioner, jive::implict::TimeStepper, jive::mesh::Geometry, jive::model::Model, jive::solver::EigenSolver, jive::util::Database, and jive::util::Table.

Public Member Functions

 NamedObject (const String &name="")
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
String getName () const
 
virtual String getContext () const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Member Functions

static String makeContext (const String &kind, const String &name)
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Protected Member Functions

virtual ~NamedObject ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Protected Attributes

String myName_
 

Constructor & Destructor Documentation

jem::NamedObject::NamedObject ( const String name = "")
explicit
virtual jem::NamedObject::~NamedObject ( )
protectedvirtual

Member Function Documentation

virtual String jem::NamedObject::toString ( ) const
virtual

Returns a short textual description of this object. The toString method of the class Object returns:

getClass()->getName() + "@" + String( hashValue() )

Returns
A String representing this object.

Reimplemented from jem::Object.

String jem::NamedObject::getName ( ) const
virtual String jem::NamedObject::getContext ( ) const
virtual
static String jem::NamedObject::makeContext ( const String kind,
const String name 
)
static

Member Data Documentation

String jem::NamedObject::myName_
protected