This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
token.h File Reference

TfToken class for efficient string referencing and hashing, plus conversions to and from stl string containers. More...

+ Include dependency graph for token.h:

Go to the source code of this file.

Classes

class  TfToken
 Token for efficient comparison, assignment, and hashing of known strings. More...
 
struct  TfToken::HashFunctor
 Functor to use for hash maps from tokens to other things. More...
 
struct  TfTokenFastArbitraryLessThan
 Fast but non-lexicographical (in fact, arbitrary) less-than comparison for TfTokens. More...
 

Typedefs

typedef std::vector< TfTokenTfTokenVector
 Convenience types.
 

Functions

TF_API std::vector< TfTokenTfToTokenVector (const std::vector< std::string > &sv)
 Convert the vector of strings sv into a vector of TfToken.
 
TF_API std::vector< std::string > TfToStringVector (const std::vector< TfToken > &tv)
 Convert the vector of TfToken tv into a vector of strings.
 
size_t hash_value (const TfToken &x)
 Overload hash_value for TfToken.
 

Detailed Description

TfToken class for efficient string referencing and hashing, plus conversions to and from stl string containers.

Definition in file token.h.

Typedef Documentation

◆ TfTokenVector

typedef std::vector<TfToken> TfTokenVector

Convenience types.

Definition at line 440 of file token.h.

Function Documentation

◆ hash_value()

size_t hash_value ( const TfToken x)
inline

Overload hash_value for TfToken.

Definition at line 437 of file token.h.

◆ TfToStringVector()

TF_API std::vector< std::string > TfToStringVector ( const std::vector< TfToken > &  tv)

Convert the vector of TfToken tv into a vector of strings.

◆ TfToTokenVector()

TF_API std::vector< TfToken > TfToTokenVector ( const std::vector< std::string > &  sv)

Convert the vector of strings sv into a vector of TfToken.