Loading...
Searching...
No Matches
SdfPredicateExpression::FnArg Class Reference

Represents a function argument name and value. More...

#include <predicateExpression.h>

Static Public Member Functions

static FnArg Positional (VtValue const &val)
 
static FnArg Keyword (std::string const &name, VtValue const &val)
 

Public Attributes

std::string argName
 
VtValue value
 

Friends

template<class HashState >
void TfHashAppend (HashState &h, FnArg const &arg)
 
bool operator== (FnArg const &l, FnArg const &r)
 
bool operator!= (FnArg const &l, FnArg const &r)
 
void swap (FnArg &l, FnArg &r)
 

Detailed Description

Represents a function argument name and value.

Positional arguments have empty names.

Definition at line 92 of file predicateExpression.h.

Member Function Documentation

◆ Keyword()

static FnArg Keyword ( std::string const &  name,
VtValue const &  val 
)
inlinestatic

Definition at line 96 of file predicateExpression.h.

◆ Positional()

static FnArg Positional ( VtValue const &  val)
inlinestatic

Definition at line 93 of file predicateExpression.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( FnArg const &  l,
FnArg const &  r 
)
friend

Definition at line 110 of file predicateExpression.h.

◆ operator==

bool operator== ( FnArg const &  l,
FnArg const &  r 
)
friend

Definition at line 107 of file predicateExpression.h.

◆ swap

void swap ( FnArg l,
FnArg r 
)
friend

Definition at line 114 of file predicateExpression.h.

◆ TfHashAppend

void TfHashAppend ( HashState &  h,
FnArg const &  arg 
)
friend

Definition at line 103 of file predicateExpression.h.

Member Data Documentation

◆ argName

std::string argName

Definition at line 99 of file predicateExpression.h.

◆ value

VtValue value

Definition at line 100 of file predicateExpression.h.


The documentation for this class was generated from the following file: