FnUsdAbstractionLib 15.1.6
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
usg::Token Class Reference

A wrapper for TfToken. More...

#include <Token.h>

Classes

class  Lazy
 Lazily contruct a Token when requested. Primarily used for the static Token structs. More...
 

Public Member Functions

 Token ()
 Abstraction handle for casting to underlying implementation type.
 
 Token (const char *text)
 
 Token (const std::string &text)
 
 Token (const Token::Handle &handle)
 
 Token (Token &&rhs) noexcept
 
Tokenoperator= (Token &&rhs) noexcept
 
 Token (const Token &rhs)
 
Tokenoperator= (const Token &rhs)
 
const char * text () const
 
const std::string & asString () const
 
bool empty () const
 
bool operator== (const Token &rhs) const
 
bool operator!= (const Token &rhs) const
 
bool operator< (const Token &rhs) const
 
bool operator> (const Token &rhs) const
 
bool operator<= (const Token &rhs) const
 
bool operator>= (const Token &rhs) const
 
Token::Handle & getToken (int usd_version)
 Get the underlying TfToken.
 
const Token::Handle & getToken (int usd_version) const
 
uint64_t hash () const
 Get the hash of the underlying TfToken.
 
int handleIndex () const
 Returns the index of the underlying handle. For internal use only!
 
 Token (int handleIndex)
 Assign from a pre-known handle index. For internal use only!
 

Friends

std::ostream & operator<< (std::ostream &o, const Token &t)
 

Detailed Description

A wrapper for TfToken.



©2025 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com