|
Graphite Version 3
An experimental 3D geometry processing program
|
A template class for strings that need to have a specific type in the GOM system. More...
#include <OGF/scene_graph/types/properties.h>
Public Types | |
| typedef Name< T > | thisclass |
| This class type. | |
Public Member Functions | |
| Name () | |
| Name constructor. | |
| Name (const thisclass &rhs) | |
| Name copy constructor. | |
| Name (const std::string &rhs) | |
| Name copy constructor from std::string. | |
| Name (const char *rhs) | |
| Name copy constructor from const char*. | |
| thisclass & | operator= (const thisclass &rhs) |
| Assignment operator. | |
| thisclass & | operator= (const std::string &rhs) |
| Assignment operator from std::string. | |
| thisclass & | operator= (const char *rhs) |
| Assignment operator from a C string. | |
| operator const std::string & () const | |
| Conversion to a const std::string. | |
| operator std::string & () | |
| Conversion to a modifiable std::string. | |
| bool | operator== (const std::string &rhs) const |
| Tests whether this Name corresponds to a given string. | |
| bool | operator!= (const std::string &rhs) const |
| Tests whether this Name differs from a given string. | |
A template class for strings that need to have a specific type in the GOM system.
This class behaves exactly like std::string. It has a different type, so that GOM can make the difference and use a specific handler for it in the GUI. There are several subclasses for, e.g., image file names, object file names
Definition at line 158 of file properties.h.
This class type.
Definition at line 163 of file properties.h.
Name constructor.
Construts an uninitialized Name, with the empty string.
Definition at line 170 of file properties.h.
|
inline |
Name copy constructor.
| [in] | rhs | the Name to be copied |
Definition at line 177 of file properties.h.
|
inline |
Name copy constructor from std::string.
| [in] | rhs | the std::string to be copied |
Definition at line 184 of file properties.h.
Name copy constructor from const char*.
| [in] | rhs | a pointer to the C string to be copied |
Definition at line 191 of file properties.h.
|
inline |
Conversion to a const std::string.
Definition at line 228 of file properties.h.
Conversion to a modifiable std::string.
Definition at line 236 of file properties.h.
|
inline |
Tests whether this Name differs from a given string.
| [in] | rhs | a const reference to the string to be compared. |
| true | if this Name differs from rhs |
| false | otherwise |
Definition at line 258 of file properties.h.
|
inline |
Assignment operator from a C string.
| [in] | rhs | a pointer to the C string to be copied |
Definition at line 219 of file properties.h.
|
inline |
Assignment operator from std::string.
| [in] | rhs | the std::string to be copied |
Definition at line 209 of file properties.h.
|
inline |
Assignment operator.
| [in] | rhs | the Name to be copied |
Definition at line 199 of file properties.h.
|
inline |
Tests whether this Name corresponds to a given string.
| [in] | rhs | a const reference to the string to be compared. |
| true | if this Name corresponds to rhs |
| false | otherwise |
Definition at line 247 of file properties.h.