class TaggedObject


Inheritance:


Public Methods

TaggedObject(int tag)
virtual ~TaggedObject()
inline int getTag(void) const
virtual void Print(ostream &s, int flag =0)
friend ostream& operator<<(ostream &s, TaggedObject &m)
inline int TaggedObject::getTag(void) const

Protected Methods

void setTag(int newTag)

Documentation

TaggedObject is used as a base class to represent all classes that may have a integer identifier, a tag, to identify the object. It is used in the framework as a base class for many classes, for example DomainComponent and Vertex. The class is provided so that container classes can be written to store objects and provide access to them. This saves us rewriting container classes for each type of object. (templates will be able to provide this functionality when they are provided with all compilers).

TaggedObject(int tag)

Constructs a TaggedObject with a tag given by tag. The tag of a component is some unique means of identifying the component among like components, i.e. the tag of a node would be its unique node number.

virtual ~TaggedObject()

Does nothing. Provided so the concrete subclasses destructors will be called.

inline int getTag(void) const

Returns the tag associated with the object. This function is inlined for performance.

virtual void Print(ostream &s, int flag =0)

A pure virtual function. The component is to output itself to the output stream s. The integer flag can be used to select just what should be output, by default 0 is passed.

friend ostream& operator<<(ostream &s, TaggedObject &m)

Invokes Print(s) on the TaggedObject m

void setTag(int newTag)

Sets the tag of the object to be newTag. It is provided so that MovableObjects can set their tag in recvSelf().

inline int TaggedObject::getTag(void) const


Direct child classes:
Vertex
DomainComponent

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us