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. More... | |
Name (const thisclass &rhs) | |
Name copy constructor. More... | |
Name (const std::string &rhs) | |
Name copy constructor from std::string. More... | |
Name (const char *rhs) | |
Name copy constructor from const char*. More... | |
thisclass & | operator= (const thisclass &rhs) |
Assignment operator. More... | |
thisclass & | operator= (const std::string &rhs) |
Assignment operator from std::string. More... | |
thisclass & | operator= (const char *rhs) |
Assignment operator from a C string. More... | |
operator const std::string & () const | |
Conversion to a const std::string. More... | |
operator std::string & () | |
Conversion to a modifiable std::string. More... | |
bool | operator== (const std::string &rhs) const |
Tests whether this Name corresponds to a given string. More... | |
bool | operator!= (const std::string &rhs) const |
Tests whether this Name differs from a given string. More... | |
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 218 of file properties.h.
Name constructor.
Construts an uninitialized Name, with the empty string.
Definition at line 230 of file properties.h.
|
inline |
Name copy constructor.
[in] | rhs | the Name to be copied |
Definition at line 237 of file properties.h.
|
inline |
Name copy constructor from std::string.
[in] | rhs | the std::string to be copied |
Definition at line 244 of file properties.h.
Name copy constructor from const char*.
[in] | rhs | a pointer to the C string to be copied |
Definition at line 251 of file properties.h.
|
inline |
Conversion to a const std::string.
Definition at line 288 of file properties.h.
|
inline |
Conversion to a modifiable std::string.
Definition at line 296 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 318 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 279 of file properties.h.
|
inline |
Assignment operator from std::string.
[in] | rhs | the std::string to be copied |
Definition at line 269 of file properties.h.
|
inline |
Assignment operator.
[in] | rhs | the Name to be copied |
Definition at line 259 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 307 of file properties.h.