#include <Tag.h>
A Tag is a string (internally converted to an integer), attached to objects in order to define subsets to process by specific visitors. More...
A Tag is a string (internally converted to an integer), attached to objects in order to define subsets to process by specific visitors.
Protected Attributes | |
int | id |
Public Member Functions | |
Tag () | |
Tag (const std::string &s) | |
A tag is constructed from a string and appears like one after, without actually storing a string. More... | |
Tag (int id) | |
This constructor should be used only if really necessary. More... | |
operator std::string () const | |
Any operation requiring a string can be used on a tag using this conversion. More... | |
bool | operator== (const Tag &t) const |
bool | operator!= (const Tag &t) const |
bool | operator< (const Tag &t) const |
bool | operator> (const Tag &t) const |
bool | operator<= (const Tag &t) const |
bool | operator>= (const Tag &t) const |
bool | operator! () const |
bool | negative () const |
Tag | operator- () const |
Friends | |
SOFA_CORE_API friend std::ostream & | operator<< (std::ostream &o, const Tag &t) |
SOFA_CORE_API friend std::istream & | operator>> (std::istream &i, Tag &t) |
|
protected |
|
inline |
sofa::core::objectmodel::Tag::Tag | ( | const std::string & | s | ) |
A tag is constructed from a string and appears like one after, without actually storing a string.
|
inlineexplicit |
This constructor should be used only if really necessary.
|
inline |
sofa::core::objectmodel::Tag::operator std::string | ( | ) | const |
Any operation requiring a string can be used on a tag using this conversion.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |